Documentation ¶
Index ¶
- Variables
- func DefaultDowngrade(conn *minecraft.Conn, pk packet.Packet, mapping mappings.MVMapping) (packet.Packet, bool)
- func DefaultUpgrade(conn *minecraft.Conn, pk packet.Packet, mapping mappings.MVMapping) (packet.Packet, bool)
- func DowngradeBlockRuntimeID(input uint32, mappings mappings.MVMapping) uint32
- func DowngradeItem(input protocol.ItemStack, mappings mappings.MVMapping) protocol.ItemStack
- func UpgradeBlockRuntimeID(input uint32, mappings mappings.MVMapping) uint32
- func UpgradeItem(input protocol.ItemStack, mappings mappings.MVMapping) protocol.ItemStack
Constants ¶
This section is empty.
Variables ¶
View Source
var LatestAirRID, _ = latest.StateToRuntimeID("minecraft:air", nil)
LatestAirRID is the runtime ID of the air block in the latest version of the game.
Functions ¶
func DefaultDowngrade ¶
func DefaultDowngrade(conn *minecraft.Conn, pk packet.Packet, mapping mappings.MVMapping) (packet.Packet, bool)
DefaultDowngrade translates a packet from the latest version to the legacy version.
func DefaultUpgrade ¶
func DefaultUpgrade(conn *minecraft.Conn, pk packet.Packet, mapping mappings.MVMapping) (packet.Packet, bool)
DefaultUpgrade translates a packet from the legacy version to the latest version.
func DowngradeBlockRuntimeID ¶
DowngradeBlockRuntimeID downgrades a latest block runtime ID to a legacy block runtime ID.
func DowngradeItem ¶
DowngradeItem downgrades the input item stack to a legacy item stack. It returns a boolean indicating if the item was downgraded successfully.
func UpgradeBlockRuntimeID ¶
UpgradeBlockRuntimeID upgrades a legacy block runtime ID to a latest block runtime ID.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.