Documentation ¶
Index ¶
- type DummyBlock
- type EntityRuntimeID
- type EntityState
- type EntityUniqueID
- type World
- func (w *World) AddEntityLink(el protocol.EntityLink)
- func (w *World) Dimension() world.Dimension
- func (w *World) Finish(playerData map[string]any, excludedMobs []string, spawn cube.Pos, ...) error
- func (w *World) GetEntity(id EntityRuntimeID) (*EntityState, bool)
- func (w *World) IsDeferred() bool
- func (m *World) LoadChunk(pos world.ChunkPos) (*chunk.Chunk, bool, error)
- func (w *World) Open(name string, folder string, dim world.Dimension, deferred bool) (err error)
- func (w *World) PauseCapture()
- func (w *World) ProcessAddActor(pk *packet.AddActor, ignoreCB func(*EntityState) bool, ...)
- func (w *World) Rename(name, folder string) error
- func (w *World) SetBlockNBT(pos cube.Pos, nbt map[string]any, merge bool)
- func (w *World) SetDimension(dim world.Dimension)
- func (w *World) SetTime(real time.Time, ingame int)
- func (w *World) StoreChunk(pos world.ChunkPos, ch *chunk.Chunk, blockNBT map[cube.Pos]DummyBlock)
- func (w *World) StoreEntity(id EntityRuntimeID, es *EntityState)
- func (w *World) UnpauseCapture(around cube.Pos, radius int32, cf func(world.ChunkPos, *chunk.Chunk))
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DummyBlock ¶
func (*DummyBlock) Color ¶
func (d *DummyBlock) Color() color.RGBA
func (*DummyBlock) EncodeBlock ¶
func (d *DummyBlock) EncodeBlock() (string, map[string]any)
func (*DummyBlock) EncodeNBT ¶
func (d *DummyBlock) EncodeNBT() map[string]any
func (*DummyBlock) Hash ¶
func (d *DummyBlock) Hash() uint64
func (*DummyBlock) Model ¶
func (d *DummyBlock) Model() world.BlockModel
type EntityRuntimeID ¶
type EntityRuntimeID = uint64
type EntityState ¶
type EntityState struct { RuntimeID uint64 UniqueID int64 EntityType string Position mgl32.Vec3 Pitch, Yaw float32 HeadYaw, BodyYaw float32 Velocity mgl32.Vec3 Metadata protocol.EntityMetadata Inventory map[byte]map[byte]protocol.ItemInstance Helmet *protocol.ItemInstance Chestplate *protocol.ItemInstance Leggings *protocol.ItemInstance Boots *protocol.ItemInstance }
func (*EntityState) ToServerEntity ¶
func (s *EntityState) ToServerEntity(links []int64) serverEntity
type EntityUniqueID ¶
type EntityUniqueID = int64
type World ¶
type World struct { StoredChunks map[world.ChunkPos]bool VoidGen bool Name string Folder string // contains filtered or unexported fields }
func (*World) AddEntityLink ¶
func (w *World) AddEntityLink(el protocol.EntityLink)
func (*World) GetEntity ¶
func (w *World) GetEntity(id EntityRuntimeID) (*EntityState, bool)
func (*World) IsDeferred ¶
func (*World) PauseCapture ¶
func (w *World) PauseCapture()
func (*World) ProcessAddActor ¶
func (w *World) ProcessAddActor(pk *packet.AddActor, ignoreCB func(*EntityState) bool, bpCB func(behaviourpack.EntityIn))
func (*World) SetBlockNBT ¶
func (*World) SetDimension ¶
func (*World) StoreChunk ¶
func (*World) StoreEntity ¶
func (w *World) StoreEntity(id EntityRuntimeID, es *EntityState)
Click to show internal directories.
Click to hide internal directories.