Files
go-mc/data/packetid/serverboundpacketid_string.go
2022-12-09 22:57:15 +08:00

75 lines
4.0 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[ServerboundClientCommand-6]
_ = x[ServerboundClientInformation-7]
_ = x[ServerboundCommandSuggestion-8]
_ = x[ServerboundContainerButtonClick-9]
_ = x[ServerboundContainerClick-10]
_ = x[ServerboundContainerClose-11]
_ = x[ServerboundCustomPayload-12]
_ = x[ServerboundEditBook-13]
_ = x[ServerboundEntityTagQuery-14]
_ = x[ServerboundInteract-15]
_ = x[ServerboundJigsawGenerate-16]
_ = x[ServerboundKeepAlive-17]
_ = x[ServerboundLockDifficulty-18]
_ = x[ServerboundMovePlayerPos-19]
_ = x[ServerboundMovePlayerPosRot-20]
_ = x[ServerboundMovePlayerRot-21]
_ = x[ServerboundMovePlayerStatusOnly-22]
_ = x[ServerboundMoveVehicle-23]
_ = x[ServerboundPaddleBoat-24]
_ = x[ServerboundPickItem-25]
_ = x[ServerboundPlaceRecipe-26]
_ = x[ServerboundPlayerAbilities-27]
_ = x[ServerboundPlayerAction-28]
_ = x[ServerboundPlayerCommand-29]
_ = x[ServerboundPlayerInput-30]
_ = x[ServerboundPong-31]
_ = x[ServerboundChatSessionUpdate-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]
_ = x[ServerboundPacketIDGuard-51]
}
const _ServerboundPacketID_name = "ServerboundAcceptTeleportationServerboundBlockEntityTagQueryServerboundChangeDifficultyServerboundChatAckServerboundChatCommandServerboundChatServerboundClientCommandServerboundClientInformationServerboundCommandSuggestionServerboundContainerButtonClickServerboundContainerClickServerboundContainerCloseServerboundCustomPayloadServerboundEditBookServerboundEntityTagQueryServerboundInteractServerboundJigsawGenerateServerboundKeepAliveServerboundLockDifficultyServerboundMovePlayerPosServerboundMovePlayerPosRotServerboundMovePlayerRotServerboundMovePlayerStatusOnlyServerboundMoveVehicleServerboundPaddleBoatServerboundPickItemServerboundPlaceRecipeServerboundPlayerAbilitiesServerboundPlayerActionServerboundPlayerCommandServerboundPlayerInputServerboundPongServerboundChatSessionUpdateServerboundRecipeBookChangeSettingsServerboundRecipeBookSeenRecipeServerboundRenameItemServerboundResourcePackServerboundSeenAdvancementsServerboundSelectTradeServerboundSetBeaconServerboundSetCarriedItemServerboundSetCommandBlockServerboundSetCommandMinecartServerboundSetCreativeModeSlotServerboundSetJigsawBlockServerboundSetStructureBlockServerboundSignUpdateServerboundSwingServerboundTeleportToEntityServerboundUseItemOnServerboundUseItemServerboundPacketIDGuard"
var _ServerboundPacketID_index = [...]uint16{0, 30, 60, 87, 105, 127, 142, 166, 194, 222, 253, 278, 303, 327, 346, 371, 390, 415, 435, 460, 484, 511, 535, 566, 588, 609, 628, 650, 676, 699, 723, 745, 760, 788, 823, 854, 875, 898, 925, 947, 967, 992, 1018, 1047, 1077, 1102, 1130, 1151, 1167, 1194, 1214, 1232, 1256}
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]]
}