Documentation
¶
Index ¶
- type Dimension
- func (d *Dimension) Block(x, y, z int32) (section.AnvilBlock, error)
- func (d *Dimension) BlockEntity(x, y, z int32) (*chunk.BlockEntity, bool)
- func (d *Dimension) GetChunk(x, z int32) (*chunk.Chunk, error)
- func (d *Dimension) GetChunkBuf(x, z int32, buf *bytes.Buffer) (*chunk.Chunk, error)
- func (d *Dimension) LoadedChunks() int32
- func (d *Dimension) Name() string
- func (d *Dimension) Save()
- func (d *Dimension) SetBlock(pos pos.BlockPosition, b section.AnvilBlock, placeSound bool) (state int64, err error)
- func (d *Dimension) SetBlockEntity(pos pos.BlockPosition, be chunk.BlockEntity) error
- func (d *Dimension) Type() string
- type DimensionManager
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Dimension ¶
type Dimension struct { Level level.Level WindowManager *window.WindowManager // contains filtered or unexported fields }
func (*Dimension) BlockEntity ¶
func (d *Dimension) BlockEntity(x, y, z int32) (*chunk.BlockEntity, bool)
func (*Dimension) GetChunkBuf ¶
func (*Dimension) LoadedChunks ¶
func (*Dimension) SetBlock ¶
func (d *Dimension) SetBlock(pos pos.BlockPosition, b section.AnvilBlock, placeSound bool) (state int64, err error)
func (*Dimension) SetBlockEntity ¶
func (d *Dimension) SetBlockEntity(pos pos.BlockPosition, be chunk.BlockEntity) error
type DimensionManager ¶
type DimensionManager struct {
// contains filtered or unexported fields
}
func NewDimensionManager ¶
func NewDimensionManager(dimensions map[string]*Dimension) DimensionManager
func (*DimensionManager) Dimension ¶
func (w *DimensionManager) Dimension(name string) *Dimension
Dimension returns the dimension struct for the dimension name
func (*DimensionManager) LoadedChunks ¶
func (w *DimensionManager) LoadedChunks() int32
func (*DimensionManager) RegisterDimension ¶
func (w *DimensionManager) RegisterDimension(name string, dim *Dimension)
func (*DimensionManager) Save ¶
func (w *DimensionManager) Save()
Click to show internal directories.
Click to hide internal directories.