biomes

package
v0.0.0-...-16954dc Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 1, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Load

func Load() (err error)

Types

type Biome

type Biome struct {
	ID                     int32         `json:"id" nbt:"-"`
	Name                   string        `json:"name" nbt:"-"`
	Category               string        `json:"category" nbt:"category"`
	Temperature            float32       `json:"temperature" nbt:"temperature"`
	Precipitation          string        `json:"precipitation" nbt:"precipitation"`
	Depth                  float32       `json:"depth" nbt:"depth"`
	Scale                  float32       `json:"scale" nbt:"scale"`
	Dimension              mc.Identifier `json:"dimension" nbt:"-"`
	DisplayName            string        `json:"displayName" nbt:"-"`
	Color                  int32         `json:"color" nbt:"-"`
	Rainfall               float32       `json:"rainfall" nbt:"downfall"`
	Parent                 string        `json:"parent,omitempty" nbt:"-"`
	ChildID                int32         `json:"child,omitempty" nbt:"-"`
	Climates               []Climate     `json:"climates,omitempty" nbt:"-"`
	HasTemperatureModifier bool          `json:"has_temperature_modifier" nbt:"-"`
	TemperatureModifier    string        `json:"temperature_modifier,omitempty" nbt:"temperature_modifier" optional:"HasTemperatureModifier"`
	Effects                BiomeEffect   `json:"effects,omitempty" nbt:"effects"`
	HasParticle            bool          `json:"has_particle" nbt:"-"`
	Particle               BiomeParticle `json:"particle,omitempty" nbt:"particle" optional:"HasParticle"`
}

func ByName

func ByName(name string) *Biome

func (*Biome) DimensionType

func (b *Biome) DimensionType() *dimensions.Dimension

type BiomeAdditionsSound

type BiomeAdditionsSound struct {
	Sound      string  `json:"sound" nbt:"sound"`
	TickChance float64 `json:"tick_chance" nbt:"tick_chance"`
}

type BiomeEffect

type BiomeEffect struct {
	SkyColor              int32               `json:"sky_color" nbt:"sky_color"`
	WaterFogColor         int32               `json:"water_fog_color" nbt:"water_fog_color"`
	FogColor              int32               `json:"fog_color" nbt:"fog_color"`
	WaterColor            int32               `json:"water_color" nbt:"water_color"`
	HasFoliageColor       bool                `json:"has_foliage_color,omitempty" nbt:"-"`
	FoliageColor          int32               `json:"foliage_color,omitempty" nbt:"foliage_color" optional:"HasFoliageColor"`
	HasGrassColor         bool                `json:"has_grass_color,omitempty" nbt:"-"`
	GrassColor            int32               `json:"grass_color,omitempty" nbt:"grass_color" optional:"HasGrassColor"`
	HasGrassColorModifier bool                `json:"has_grass_color_modifier,omitempty" nbt:"-"`
	GrassColorModifier    string              `json:"grass_color_modifier" nbt:"grass_color_modifier" optional:"HasGrassColorModifier"`
	HasMusic              bool                `json:"has_music,omitempty" nbt:"-"`
	Music                 BiomeMusic          `json:"music,omitempty" nbt:"music" optional:"HasMusic"`
	HasAmbientSound       bool                `json:"has_ambient_sound,omitempty" nbt:"-"`
	AmbientSound          string              `json:"ambient_sound,omitempty" nbt:"ambient_sound" optional:"HasAmbientSound"`
	HasAdditionsSound     bool                `json:"has_additions_sound,omitempty" nbt:"-"`
	AdditionsSound        BiomeAdditionsSound `json:"additions_sound,omitempty" nbt:"additions_sound" optional:"HasAdditionsSound"`
	HasMoodSound          bool                `json:"has_mood_sound" nbt:"-"`
	MoodSound             BiomeMoodSound      `json:"mood_sound" nbt:"mood_sound" optional:"HasMoodSound"`
}

type BiomeEntry

type BiomeEntry struct {
	Name    string `json:"name" nbt:"name"`
	ID      int32  `json:"id" nbt:"id"`
	Element Biome  `json:"element" nbt:"element"`
}

type BiomeMoodSound

type BiomeMoodSound struct {
	Sound             string  `json:"sound" nbt:"sound"`
	TickDelay         int32   `json:"tick_delay" nbt:"tick_delay"`
	Offset            float64 `json:"offset" nbt:"offset"`
	BlockSearchExtent int32   `json:"block_search_extent" nbt:"block_search_extent"`
}

type BiomeMusic

type BiomeMusic struct {
	ReplaceCurrentMusic bool          `json:"replace_current_music" nbt:"replace_current_music"`
	Sound               mc.Identifier `json:"sound" nbt:"sound"`
	MaxDelay            int32         `json:"max_delay" nbt:"max_delay"`
	MinDelay            int32         `json:"min_delay" nbt:"min_delay"`
}

type BiomeParticle

type BiomeParticle struct {
	Probability float32              `json:"probability" nbt:"probability"`
	Options     BiomeParticleOptions `json:"options" nbt:"options"`
}

type BiomeParticleOptions

type BiomeParticleOptions struct {
	Type string `json:"type" nbt:"type"`
}

type BiomeStorage

type BiomeStorage struct {
	Type    string       `json:"type" nbt:"type"`
	Entries []BiomeEntry `json:"value" nbt:"value"`
}

func Store

func Store() BiomeStorage

type Climate

type Climate struct {
	Temperature float32 `json:"temperature"`
	Humidity    float32 `json:"humidity"`
	Altitude    float32 `json:"altitude"`
	Weirdness   float32 `json:"weirdness"`
	Offset      float32 `json:"offset"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL