Documentation ¶
Index ¶
- Constants
- func NewWorldsHandler(settings WorldSettings) *proxy.Handler
- type MapUI
- func (m *MapUI) ChangeZoom()
- func (m *MapUI) GetBounds() (Min, Max protocol.ChunkPos)
- func (m *MapUI) Reset()
- func (m *MapUI) SchedRedraw()
- func (m *MapUI) SetChunk(pos world.ChunkPos, ch *chunk.Chunk, isDeferredState bool)
- func (m *MapUI) Start(ctx context.Context)
- func (m *MapUI) Stop()
- func (m *MapUI) ToImage() *image.RGBA
- type WorldSettings
Constants ¶
View Source
const ViewMapID = 0x424242
Variables ¶
This section is empty.
Functions ¶
func NewWorldsHandler ¶
func NewWorldsHandler(settings WorldSettings) *proxy.Handler
Types ¶
type MapUI ¶
type MapUI struct { ChunkRenderer *utils.ChunkRenderer // contains filtered or unexported fields }
func (*MapUI) ChangeZoom ¶
func (m *MapUI) ChangeZoom()
ChangeZoom adds to the zoom value and goes around to 32 once it hits 128
func (*MapUI) SchedRedraw ¶
func (m *MapUI) SchedRedraw()
SchedRedraw tells the map to redraw the next time its sent
Source Files ¶
Click to show internal directories.
Click to hide internal directories.