Files
mc/server/world/biome/beach.go
T
TarnaWijaya 26ed99fda6
Build and deploy / Build (push) Has been cancelled
Build and deploy / Update Contributors (push) Has been cancelled
Build and deploy / Deploy (push) Has been cancelled
up3
2026-07-09 08:33:57 +08:00

47 lines
675 B
Go

package biome
import "image/color"
// Beach ...
type Beach struct{}
// Temperature ...
func (Beach) Temperature() float64 {
return 0.8
}
// Rainfall ...
func (Beach) Rainfall() float64 {
return 0.4
}
// Depth ...
func (Beach) Depth() float64 {
return 0
}
// Scale ...
func (Beach) Scale() float64 {
return 0.025
}
// WaterColour ...
func (Beach) WaterColour() color.RGBA {
return color.RGBA{R: 0x15, G: 0x7c, B: 0xab, A: 0xa5}
}
// Tags ...
func (Beach) Tags() []string {
return []string{"beach", "monster", "overworld", "warm"}
}
// String ...
func (Beach) String() string {
return "beach"
}
// EncodeBiome ...
func (Beach) EncodeBiome() int {
return 16
}