Documentation
¶
Index ¶
- type ChatType
- type DamageType
- type Dimension
- type Registries
- type Registry
- func (r *Registry[E]) Clear()
- func (r *Registry[E]) ClearTags()
- func (r *Registry[E]) Get(key string) (int32, *E)
- func (r *Registry[E]) GetByID(id int32) *E
- func (r *Registry[E]) Put(key string, data E) (id int32, val *E)
- func (reg *Registry[E]) ReadFrom(r io.Reader) (int64, error)
- func (reg *Registry[E]) ReadTagsFrom(r io.Reader) (int64, error)
- func (r *Registry[E]) Tag(tag string) []*E
- type RegistryCodec
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ChatType ¶
type ChatType struct {
Chat chat.Decoration `nbt:"chat"`
Narration chat.Decoration `nbt:"narration"`
}
type DamageType ¶
type Dimension ¶
type Dimension struct {
FixedTime int64 `nbt:"fixed_time,omitempty"`
HasSkylight bool `nbt:"has_skylight"`
HasCeiling bool `nbt:"has_ceiling"`
Ultrawarm bool `nbt:"ultrawarm"`
Natural bool `nbt:"natural"`
CoordinateScale float64 `nbt:"coordinate_scale"`
BedWorks bool `nbt:"bed_works"`
RespawnAnchorWorks byte `nbt:"respawn_anchor_works"`
MinY int32 `nbt:"min_y"`
Height int32 `nbt:"height"`
LogicalHeight int32 `nbt:"logical_height"`
InfiniteBurn string `nbt:"infiniburn"`
Effects string `nbt:"effects"`
AmbientLight float64 `nbt:"ambient_light"`
PiglinSafe byte `nbt:"piglin_safe"`
HasRaids byte `nbt:"has_raids"`
MonsterSpawnLightLevel nbt.RawMessage `nbt:"monster_spawn_light_level"` // Tag_Int or {type:"minecraft:uniform", value:{min_inclusive: Tag_Int, max_inclusive: Tag_Int}}
MonsterSpawnBlockLightLimit int32 `nbt:"monster_spawn_block_light_limit"`
}
type Registries ¶
type Registries struct {
ChatType Registry[ChatType] `registry:"minecraft:chat_type"`
DamageType Registry[DamageType] `registry:"minecraft:damage_type"`
DimensionType Registry[Dimension] `registry:"minecraft:dimension_type"`
TrimMaterial Registry[nbt.RawMessage] `registry:"minecraft:trim_material"`
TrimPattern Registry[nbt.RawMessage] `registry:"minecraft:trim_pattern"`
WorldGenBiome Registry[nbt.RawMessage] `registry:"minecraft:worldgen/biome"`
Wolfvariant Registry[nbt.RawMessage] `registry:"minecraft:wolf_variant"`
PaintingVariant Registry[nbt.RawMessage] `registry:"minecraft:painting_variant"`
BannerPattern Registry[nbt.RawMessage] `registry:"minecraft:banner_pattern"`
Enchantment Registry[nbt.RawMessage] `registry:"minecraft:enchantment"`
JukeboxSong Registry[nbt.RawMessage] `registry:"minecraft:jukebox_song"`
}
func NewNetworkCodec ¶
func NewNetworkCodec() Registries
func (*Registries) Registry ¶
func (c *Registries) Registry(id string) RegistryCodec
type Registry ¶
type Registry[E any] struct { // contains filtered or unexported fields }
func NewRegistry ¶
type RegistryCodec ¶
Click to show internal directories.
Click to hide internal directories.