Package com.hypixel.hytale.protocol
Class PacketRegistry
java.lang.Object
com.hypixel.hytale.protocol.PacketRegistry
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final Map<Integer, PacketRegistry.PacketInfo> private static final Map<Integer, PacketRegistry.PacketInfo> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Map<Integer, PacketRegistry.PacketInfo> all()static PacketRegistry.PacketInfogetById(int id) static Integerprivate static voidregister(int id, String name, Class<? extends Packet> type, int fixedBlockSize, int maxSize, boolean compressed, BiFunction<io.netty.buffer.ByteBuf, Integer, ValidationResult> validate, BiFunction<io.netty.buffer.ByteBuf, Integer, Packet> deserialize)
-
Field Details
-
BY_ID
-
BY_ID_UNMODIFIABLE
-
BY_TYPE
-
-
Constructor Details
-
PacketRegistry
private PacketRegistry()
-
-
Method Details
-
register
private static void register(int id, String name, Class<? extends Packet> type, int fixedBlockSize, int maxSize, boolean compressed, BiFunction<io.netty.buffer.ByteBuf, Integer, ValidationResult> validate, BiFunction<io.netty.buffer.ByteBuf, Integer, Packet> deserialize) -
getById
-
getId
-
all
-