74 lines
3.9 KiB
Go
74 lines
3.9 KiB
Go
// Code generated by "stringer -type ServerboundPacketID"; DO NOT EDIT.
|
|
|
|
package packetid
|
|
|
|
import "strconv"
|
|
|
|
func _() {
|
|
// An "invalid array index" compiler error signifies that the constant values have changed.
|
|
// Re-run the stringer command to generate them again.
|
|
var x [1]struct{}
|
|
_ = x[ServerboundAcceptTeleportation-0]
|
|
_ = x[ServerboundBlockEntityTagQuery-1]
|
|
_ = x[ServerboundChangeDifficulty-2]
|
|
_ = x[ServerboundChatAck-3]
|
|
_ = x[ServerboundChatCommand-4]
|
|
_ = x[ServerboundChat-5]
|
|
_ = x[ServerboundChatSessionUpdate-6]
|
|
_ = x[ServerboundClientCommand-7]
|
|
_ = x[ServerboundClientInformation-8]
|
|
_ = x[ServerboundCommandSuggestion-9]
|
|
_ = x[ServerboundContainerButtonClick-10]
|
|
_ = x[ServerboundContainerClick-11]
|
|
_ = x[ServerboundContainerClose-12]
|
|
_ = x[ServerboundCustomPayload-13]
|
|
_ = x[ServerboundEditBook-14]
|
|
_ = x[ServerboundEntityTagQuery-15]
|
|
_ = x[ServerboundInteract-16]
|
|
_ = x[ServerboundJigsawGenerate-17]
|
|
_ = x[ServerboundKeepAlive-18]
|
|
_ = x[ServerboundLockDifficulty-19]
|
|
_ = x[ServerboundMovePlayerPos-20]
|
|
_ = x[ServerboundMovePlayerPosRot-21]
|
|
_ = x[ServerboundMovePlayerRot-22]
|
|
_ = x[ServerboundMovePlayerStatusOnly-23]
|
|
_ = x[ServerboundMoveVehicle-24]
|
|
_ = x[ServerboundPaddleBoat-25]
|
|
_ = x[ServerboundPickItem-26]
|
|
_ = x[ServerboundPlaceRecipe-27]
|
|
_ = x[ServerboundPlayerAbilities-28]
|
|
_ = x[ServerboundPlayerAction-29]
|
|
_ = x[ServerboundPlayerCommand-30]
|
|
_ = x[ServerboundPlayerInput-31]
|
|
_ = x[ServerboundPong-32]
|
|
_ = x[ServerboundRecipeBookChangeSettings-33]
|
|
_ = x[ServerboundRecipeBookSeenRecipe-34]
|
|
_ = x[ServerboundRenameItem-35]
|
|
_ = x[ServerboundResourcePack-36]
|
|
_ = x[ServerboundSeenAdvancements-37]
|
|
_ = x[ServerboundSelectTrade-38]
|
|
_ = x[ServerboundSetBeacon-39]
|
|
_ = x[ServerboundSetCarriedItem-40]
|
|
_ = x[ServerboundSetCommandBlock-41]
|
|
_ = x[ServerboundSetCommandMinecart-42]
|
|
_ = x[ServerboundSetCreativeModeSlot-43]
|
|
_ = x[ServerboundSetJigsawBlock-44]
|
|
_ = x[ServerboundSetStructureBlock-45]
|
|
_ = x[ServerboundSignUpdate-46]
|
|
_ = x[ServerboundSwing-47]
|
|
_ = x[ServerboundTeleportToEntity-48]
|
|
_ = x[ServerboundUseItemOn-49]
|
|
_ = x[ServerboundUseItem-50]
|
|
}
|
|
|
|
const _ServerboundPacketID_name = "ServerboundAcceptTeleportationServerboundBlockEntityTagQueryServerboundChangeDifficultyServerboundChatAckServerboundChatCommandServerboundChatServerboundChatSessionUpdateServerboundClientCommandServerboundClientInformationServerboundCommandSuggestionServerboundContainerButtonClickServerboundContainerClickServerboundContainerCloseServerboundCustomPayloadServerboundEditBookServerboundEntityTagQueryServerboundInteractServerboundJigsawGenerateServerboundKeepAliveServerboundLockDifficultyServerboundMovePlayerPosServerboundMovePlayerPosRotServerboundMovePlayerRotServerboundMovePlayerStatusOnlyServerboundMoveVehicleServerboundPaddleBoatServerboundPickItemServerboundPlaceRecipeServerboundPlayerAbilitiesServerboundPlayerActionServerboundPlayerCommandServerboundPlayerInputServerboundPongServerboundRecipeBookChangeSettingsServerboundRecipeBookSeenRecipeServerboundRenameItemServerboundResourcePackServerboundSeenAdvancementsServerboundSelectTradeServerboundSetBeaconServerboundSetCarriedItemServerboundSetCommandBlockServerboundSetCommandMinecartServerboundSetCreativeModeSlotServerboundSetJigsawBlockServerboundSetStructureBlockServerboundSignUpdateServerboundSwingServerboundTeleportToEntityServerboundUseItemOnServerboundUseItem"
|
|
|
|
var _ServerboundPacketID_index = [...]uint16{0, 30, 60, 87, 105, 127, 142, 170, 194, 222, 250, 281, 306, 331, 355, 374, 399, 418, 443, 463, 488, 512, 539, 563, 594, 616, 637, 656, 678, 704, 727, 751, 773, 788, 823, 854, 875, 898, 925, 947, 967, 992, 1018, 1047, 1077, 1102, 1130, 1151, 1167, 1194, 1214, 1232}
|
|
|
|
func (i ServerboundPacketID) String() string {
|
|
if i < 0 || i >= ServerboundPacketID(len(_ServerboundPacketID_index)-1) {
|
|
return "ServerboundPacketID(" + strconv.FormatInt(int64(i), 10) + ")"
|
|
}
|
|
return _ServerboundPacketID_name[_ServerboundPacketID_index[i]:_ServerboundPacketID_index[i+1]]
|
|
}
|