Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrIncomplete = errors.New("incomplete chunk found")
View Source
var ErrNotFound = errors.New("chunk not found")
Functions ¶
func GetBlockId ¶
func RegisterBlock ¶
Types ¶
type Block ¶
type Block interface { EncodedName() string New(string, map[string]string) Block Properties() map[string]string }
func DefaultBlock ¶
type Chunk ¶
type Chunk struct { Entities []Entity // contains filtered or unexported fields }
func NewAnvilChunk ¶
func (*Chunk) RandomTick ¶
func (*Chunk) SetPosition ¶
type Entity ¶
type Entity struct { //Attributes []map[string]interface{} `nbt:"Attributes"` IsBaby int8 `nbt:"IsBaby"` AbsorptionAmount float32 `nbt:"AbsorptionAmount"` HandDropChances []float32 `nbt:"HandDropChances"` Motion []float64 `nbt:"Motion"` Fire int16 `nbt:"Fire"` CanPickUpLoot int8 `nbt:"CanPickUpLoot"` OnGround int8 `nbt:"OnGround"` //HandItems []map[string]interface{} `nbt:"HandItems"` Health float32 `nbt:"Health"` Air int16 `nbt:"Air"` HurtTime int16 `nbt:"HurtTime"` DrownedConversionTime int32 `nbt:"DrownedConversionTime"` FallDistance float32 `nbt:"FallDistance"` UUID []int32 `nbt:"UUID"` ArmorDropChances []float32 `nbt:"ArmorDropChances"` Pos []float64 `nbt:"Pos"` DeathTime int16 `nbt:"DeathTime"` LeftHanded int8 `nbt:"LeftHanded"` Rotation []float32 `nbt:"Rotation"` HurtByTimestamp int32 `nbt:"HurtByTimestamp"` FallFlying int8 `nbt:"FallFlying"` PortalCooldown int32 `nbt:"PortalCooldown"` InWaterTime int32 `nbt:"InWaterTime"` Id string `nbt:"id"` Brain struct { Memories struct { } `nbt:"memories"` } `nbt:"Brain"` Invulnerable int8 `nbt:"Invulnerable"` PersistenceRequired int8 `nbt:"PersistenceRequired"` CanBreakDoors int8 `nbt:"CanBreakDoors"` }
type UnknownBlock ¶
type UnknownBlock struct {
// contains filtered or unexported fields
}
func NewUnknownBlock ¶
func NewUnknownBlock(name string) *UnknownBlock
func (UnknownBlock) EncodedName ¶
func (u UnknownBlock) EncodedName() string
func (UnknownBlock) Properties ¶
func (u UnknownBlock) Properties() map[string]string
Click to show internal directories.
Click to hide internal directories.