Documentation ¶
Index ¶
- type Chunk
- type Map
- type World
- func (w *World) AddEntityLink(el protocol.EntityLink)
- func (w *World) AddPlayer(pk *packet.AddPlayer)
- func (w *World) BlockByID(rid uint32) (runtimeID uint32, name string, properties map[string]any, found bool)
- func (w *World) Dimension() world.Dimension
- func (w *World) EntityCount() int
- func (w *World) FinalizePacks(addBehaviorPack func(fs utils.WriterFS) (*resource.Header, error)) error
- func (w *World) Finish(playerData map[string]any, excludedMobs []string, withPlayers bool, ...) error
- func (w *World) GetEntity(id entity.RuntimeID) *entity.Entity
- func (w *World) GetEntityUniqueID(id entity.UniqueID) *entity.Entity
- func (w *World) IsPaused() bool
- func (w *World) LoadChunk(pos world.ChunkPos) (*Chunk, bool, error)
- func (w *World) Open(name string, folder string, deferred bool)
- func (w *World) PauseCapture()
- func (w *World) QueueBlockUpdate(pos protocol.BlockPos, ridTo uint32, layer uint8)
- func (w *World) Range() cube.Range
- func (w *World) Rename(name, folder string) error
- func (w *World) SetBlockNBT(pos cube.Pos, nbt map[string]any, merge bool) error
- 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) (err error)
- func (w *World) StoreEntity(id entity.RuntimeID, es *entity.Entity)
- func (w *World) StoreMap(m *packet.ClientBoundMapItemData)
- func (w *World) UnpauseCapture(around cube.Pos, radius int32)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Map ¶ added in v1.37.0
type Map struct { Decorations []any `nbt:"decorations"` Dimension uint8 `nbt:"dimension"` Height int16 `nbt:"height"` Width int16 `nbt:"width"` MapID int64 `nbt:"mapId"` Scale uint8 `nbt:"scale"` UnlimitedTracking bool `nbt:"unlimitedTracking"` ZCenter int32 `nbt:"zCenter"` XCenter int32 `nbt:"xCenter"` FullyExplored bool `nbt:"fullyExplored"` ParentMapId int64 `nbt:"parentMapId"` Colors [0xffff + 1]byte `nbt:"colors"` MapLocked bool `nbt:"mapLocked"` }
type World ¶
type World struct { // called when a chunk is added ChunkFunc func(world.ChunkPos, *chunk.Chunk) BlockRegistry world.BlockRegistry BiomeRegistry *world.BiomeRegistry StoredChunks map[world.ChunkPos]bool ResourcePacks []resource.Pack VoidGen bool Name string Folder string UseHashedRids bool IgnoredChunks map[world.ChunkPos]bool // contains filtered or unexported fields }
func (*World) AddEntityLink ¶
func (w *World) AddEntityLink(el protocol.EntityLink)
func (*World) EntityCount ¶ added in v1.33.0
func (*World) FinalizePacks ¶ added in v1.39.1
func (*World) GetEntityUniqueID ¶ added in v1.39.1
func (*World) PauseCapture ¶
func (w *World) PauseCapture()
func (*World) QueueBlockUpdate ¶ added in v1.39.0
func (*World) SetBlockNBT ¶
func (*World) SetDimension ¶
func (*World) StoreMap ¶ added in v1.37.0
func (w *World) StoreMap(m *packet.ClientBoundMapItemData)
Click to show internal directories.
Click to hide internal directories.