CU
- unmapped clientbound packet typeCM
- mapped clientbound packet typeSM
- mapped serverbound packet typeSU
- unmapped serverbound packet typepublic interface PacketTypesProvider<CU extends ClientboundPacketType,CM extends ClientboundPacketType,SM extends ServerboundPacketType,SU extends ServerboundPacketType>
SimplePacketTypesProvider
Modifier and Type | Method and Description |
---|---|
java.util.Map<State,PacketTypeMap<CM>> |
mappedClientboundPacketTypes()
Returns a map of all mapped clientbound packet types that are expected to be used within the protocol.
|
java.util.Map<State,PacketTypeMap<SM>> |
mappedServerboundPacketTypes()
Returns a map of all mapped serverbound packet types that are expected to be used within the protocol.
|
java.util.Map<State,PacketTypeMap<CU>> |
unmappedClientboundPacketTypes()
Returns a map of all unmapped clientbound packet types that are expected to be used within a protocol.
|
default CU |
unmappedClientboundType(State state,
int packetId) |
default CU |
unmappedClientboundType(State state,
java.lang.String typeName) |
java.util.Map<State,PacketTypeMap<SU>> |
unmappedServerboundPacketTypes()
Return a map of all unmapped serverbound packet types that are expected to be used within the protocol.
|
default SU |
unmappedServerboundType(State state,
int packetId) |
default SU |
unmappedServerboundType(State state,
java.lang.String typeName) |
java.util.Map<State,PacketTypeMap<CU>> unmappedClientboundPacketTypes()
C1
encompasses more than just State.PLAY
packets, the other types are included as well.java.util.Map<State,PacketTypeMap<SU>> unmappedServerboundPacketTypes()
S2
encompasses more than just State.PLAY
packets, the other types have to be included as well.java.util.Map<State,PacketTypeMap<CM>> mappedClientboundPacketTypes()
java.util.Map<State,PacketTypeMap<SM>> mappedServerboundPacketTypes()