dimensions

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: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Load

func Load() (err error)

Types

type Dimension

type Dimension struct {
	PiglinSafe         bool          `json:"piglin_safe" nbt:"piglin_safe"`
	Natural            bool          `json:"natural" nbt:"natural"`
	AmbientLight       float32       `json:"ambient_light" nbt:"ambient_light"`
	IsFixedTime        bool          `json:"is_fixed_time" nbt:"-"`
	FixedTime          int64         `json:"fixed_time,omitempty" nbt:"fixed_time" optional:"IsFixedTime""`
	Infiburn           mc.Identifier `json:"infiburn" nbt:"infiniburn"`
	RespawnAnchorWorks bool          `json:"respawn_anchor_works" nbt:"respawn_anchor_works"`
	HasSkylight        bool          `json:"has_skylight" nbt:"has_skylight"`
	BedWorks           bool          `json:"bed_works" nbt:"bed_works"`
	Effects            mc.Identifier `json:"effects" nbt:"effects"`
	HasRaids           bool          `json:"has_raids" nbt:"has_raids"`
	LogicalHeight      int32         `json:"logical_height" nbt:"logical_height"`
	CoodinateScale     float32       `json:"coordinate_scale" nbt:"coordinate_scale"`
	Ultrawarm          bool          `json:"ultrawarm" nbt:"ultrawarm"`
	HasCeiling         bool          `json:"has_ceiling" nbt:"has_ceiling"`
}

func ByName

func ByName(name mc.Identifier) (dimension *Dimension, ok bool)

type DimensionEntry

type DimensionEntry struct {
	Name      mc.Identifier `json:"name" nbt:"name"`
	ID        int32         `json:"id" nbt:"id"`
	Dimension Dimension     `json:"element" nbt:"element"`
}

type DimensionStorage

type DimensionStorage struct {
	Type    string           `json:"type" nbt:"type"`
	Entries []DimensionEntry `json:"value" nbt:"value"`
}

func Store

func Store() DimensionStorage

Jump to

Keyboard shortcuts

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