ViaVersion/common/src/main/java/com/viaversion/viaversion/protocols/protocol1_12to1_11_1/ServerboundPackets1_12.java

68 lines
2.1 KiB
Java

/*
* This file is part of ViaVersion - https://github.com/ViaVersion/ViaVersion
* Copyright (C) 2016-2024 ViaVersion and contributors
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package com.viaversion.viaversion.protocols.protocol1_12to1_11_1;
import com.viaversion.viaversion.api.protocol.packet.ServerboundPacketType;
public enum ServerboundPackets1_12 implements ServerboundPacketType {
TELEPORT_CONFIRM, // 0x00
PREPARE_CRAFTING_GRID, // 0x01
TAB_COMPLETE, // 0x02
CHAT_MESSAGE, // 0x03
CLIENT_STATUS, // 0x04
CLIENT_SETTINGS, // 0x05
WINDOW_CONFIRMATION, // 0x06
CLICK_WINDOW_BUTTON, // 0x07
CLICK_WINDOW, // 0x08
CLOSE_WINDOW, // 0x09
PLUGIN_MESSAGE, // 0x0A
INTERACT_ENTITY, // 0x0B
KEEP_ALIVE, // 0x0C
PLAYER_MOVEMENT, // 0x0D
PLAYER_POSITION, // 0x0E
PLAYER_POSITION_AND_ROTATION, // 0x0F
PLAYER_ROTATION, // 0x10
VEHICLE_MOVE, // 0x11
STEER_BOAT, // 0x12
PLAYER_ABILITIES, // 0x13
PLAYER_DIGGING, // 0x14
ENTITY_ACTION, // 0x15
STEER_VEHICLE, // 0x16
RECIPE_BOOK_DATA, // 0x17
RESOURCE_PACK_STATUS, // 0x18
ADVANCEMENT_TAB, // 0x19
HELD_ITEM_CHANGE, // 0x1A
CREATIVE_INVENTORY_ACTION, // 0x1B
UPDATE_SIGN, // 0x1C
ANIMATION, // 0x1D
SPECTATE, // 0x1E
PLAYER_BLOCK_PLACEMENT, // 0x1F
USE_ITEM; // 0x20
@Override
public int getId() {
return ordinal();
}
@Override
public String getName() {
return name();
}
}