Documentation ¶
Index ¶
- Constants
- Variables
- func NewWorldsHandler(ui ui.UI, settings WorldSettings) *proxy.Handler
- type MapUI
- func (m *MapUI) ChangeZoom()
- func (m *MapUI) GetBounds() (Min, Max protocol.ChunkPos)
- func (m *MapUI) Redraw()
- 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 ¶
View Source
var MapItemPacket = packet.InventoryContent{ WindowID: 119, Content: []protocol.ItemInstance{ { StackNetworkID: 1, Stack: protocol.ItemStack{ ItemType: protocol.ItemType{ NetworkID: 420, MetadataValue: 0, }, BlockRuntimeID: 0, Count: 1, NBTData: map[string]interface{}{ "map_name_index": int64(1), "map_uuid": int64(ViewMapID), }, }, }, }, }
MapItemPacket tells the client that it has a map with id 0x424242 in the offhand
Functions ¶
func NewWorldsHandler ¶
func NewWorldsHandler(ui ui.UI, settings WorldSettings) *proxy.Handler
Types ¶
type MapUI ¶
type MapUI struct {
// 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.