public static enum PacketType.Server extends Enum<PacketType.Server> implements PacketType
PacketType.Client, PacketType.Handshake, PacketType.Login, PacketType.Server, PacketType.Status
CLIENT_PREFIX, HANDSHAKE_PREFIX, LOGIN_PREFIX, SERVER_PREFIX, STATUS_PREFIX
Modifier and Type | Method and Description |
---|---|
NPacket |
createNewPacket()
Create a new packet of the current type
|
List<String> |
getAlias()
Get all alias of the packet
|
PacketDirection |
getDirection()
Get the packet direction
|
String |
getFullName()
Get the full packet name with prefix
|
String |
getPacketName()
Get a showable packet name
|
boolean |
isFlyingPacket()
Check if it's flying packet
|
boolean |
isUnset()
Check if the current type correspond to an unset type.
|
static PacketType.Server |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static PacketType.Server[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
getPacketTypeFor, getType, name
public static final PacketType.Server ABILITIES
public static final PacketType.Server ADVANCEMENTS
public static final PacketType.Server ANIMATION
public static final PacketType.Server ATTACH_ENTITY
public static final PacketType.Server AUTO_RECIPE
public static final PacketType.Server BED
public static final PacketType.Server BLOCK_ACTION
public static final PacketType.Server BLOCK_BREAK
public static final PacketType.Server BLOCK_BREAK_ANIMATION
public static final PacketType.Server BLOCK_CHANGE
public static final PacketType.Server BOSS
public static final PacketType.Server CAMERA
public static final PacketType.Server CHAT
public static final PacketType.Server CLOSE_WINDOW
public static final PacketType.Server COLLECT
public static final PacketType.Server COMBAT_EVENT
public static final PacketType.Server COMMANDS
public static final PacketType.Server CUSTOM_PAYLOAD
public static final PacketType.Server CUSTOM_SOUND_EFFECT
public static final PacketType.Server ENTITY
public static final PacketType.Server ENTITY_DESTROY
public static final PacketType.Server ENTITY_EFFECT
public static final PacketType.Server ENTITY_EQUIPMENT
public static final PacketType.Server ENTITY_HEAD_ROTATION
public static final PacketType.Server ENTITY_LOOK
public static final PacketType.Server ENTITY_METADATA
public static final PacketType.Server ENTITY_STATUS
public static final PacketType.Server ENTITY_SOUND
public static final PacketType.Server ENTITY_TELEPORT
public static final PacketType.Server ENTITY_VELOCITY
public static final PacketType.Server EXPERIENCE
public static final PacketType.Server EXPLOSION
public static final PacketType.Server GAME_STATE_CHANGE
public static final PacketType.Server HELD_ITEM_SLOT
public static final PacketType.Server KEEP_ALIVE
public static final PacketType.Server KICK_DISCONNECT
public static final PacketType.Server LIGHT_UPDATE
public static final PacketType.Server LEVEL_CHUNK_LIGHT
public static final PacketType.Server LOOK_AT
public static final PacketType.Server LOGIN
public static final PacketType.Server MAP
public static final PacketType.Server MAP_CHUNK
public static final PacketType.Server MAP_CHUNK_BULK
public static final PacketType.Server MOUNT
public static final PacketType.Server MULTI_BLOCK_CHANGE
public static final PacketType.Server NAMED_ENTITY_SPAWN
public static final PacketType.Server NAMED_SOUND_EFFECT
public static final PacketType.Server NBT_QUERY
public static final PacketType.Server OPEN_BOOK
public static final PacketType.Server OPEN_SIGN_EDITOR
public static final PacketType.Server OPEN_WINDOW
public static final PacketType.Server OPEN_WINDOW_MERCHANT
public static final PacketType.Server OPEN_WINDOW_HORSE
public static final PacketType.Server PLAYER_INFO
public static final PacketType.Server PLAYER_LIST_HEADER_FOOTER
public static final PacketType.Server POSITION
public static final PacketType.Server RECIPES
public static final PacketType.Server RECIPE_UPDATE
public static final PacketType.Server REL_ENTITY_MOVE
public static final PacketType.Server REL_ENTITY_MOVE_LOOK
public static final PacketType.Server REMOVE_ENTITY_EFFECT
public static final PacketType.Server RESOURCE_PACK_SEND
public static final PacketType.Server RESPAWN
public static final PacketType.Server SCOREBOARD_DISPLAY_OBJECTIVE
public static final PacketType.Server SCOREBOARD_OBJECTIVE
public static final PacketType.Server SCOREBOARD_SCORE
public static final PacketType.Server SCOREBOARD_TEAM
public static final PacketType.Server SERVER_DIFFICULTY
public static final PacketType.Server SET_COMPRESSION
public static final PacketType.Server SET_COOLDOWN
public static final PacketType.Server SET_SLOT
public static final PacketType.Server SPAWN_ENTITY
public static final PacketType.Server SPAWN_ENTITY_EXPERIENCE_ORB
public static final PacketType.Server SPAWN_ENTITY_LIVING
public static final PacketType.Server SPAWN_ENTITY_PAINTING
public static final PacketType.Server SPAWN_ENTITY_WEATHER
public static final PacketType.Server SPAWN_PLAYER
public static final PacketType.Server SPAWN_POSITION
public static final PacketType.Server STATISTIC
public static final PacketType.Server STOP_SOUND
public static final PacketType.Server TAB_COMPLETE
public static final PacketType.Server TAGS
public static final PacketType.Server TILE_ENTITY_DATA
public static final PacketType.Server TITLE
public static final PacketType.Server PING
public static final PacketType.Server UNLOAD_CHUNK
public static final PacketType.Server UPDATE_ATTRIBUTES
public static final PacketType.Server UPDATE_ENTITY_NBT
public static final PacketType.Server UPDATE_HEALTH
public static final PacketType.Server UPDATE_SIGN
public static final PacketType.Server UPDATE_TIME
public static final PacketType.Server VEHICLE_MOVE
public static final PacketType.Server VIEW_DISTANCE
public static final PacketType.Server VIEW_CENTRE
public static final PacketType.Server WINDOW_DATA
public static final PacketType.Server WINDOW_ITEMS
public static final PacketType.Server WORLD_BORDER
public static final PacketType.Server WORLD_EVENT
public static final PacketType.Server WORLD_PARTICLES
public static final PacketType.Server UNSET
public static PacketType.Server[] values()
for (PacketType.Server c : PacketType.Server.values()) System.out.println(c);
values
in interface PacketType
public static PacketType.Server valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic String getPacketName()
PacketType
getPacketName
in interface PacketType
public String getFullName()
PacketType
getFullName
in interface PacketType
public List<String> getAlias()
PacketType
getAlias
in interface PacketType
public boolean isFlyingPacket()
PacketType
isFlyingPacket
in interface PacketType
public boolean isUnset()
PacketType
isUnset
in interface PacketType
public NPacket createNewPacket()
PacketType
createNewPacket
in interface PacketType
public PacketDirection getDirection()
PacketType
getDirection
in interface PacketType