Modifier and Type | Class and Description |
---|---|
class |
CCustomPayloadLoginPacket |
Modifier and Type | Class and Description |
---|---|
class |
SCustomPayloadLoginPacket |
Modifier and Type | Class and Description |
---|---|
class |
CCustomPayloadPacket |
Modifier and Type | Class and Description |
---|---|
class |
SCustomPayloadPlayPacket |
Modifier and Type | Field and Description |
---|---|
private java.util.function.BiFunction<org.apache.commons.lang3.tuple.Pair<PacketBuffer,java.lang.Integer>,ResourceLocation,ICustomPacket<?>> |
PacketDispatcher.NetworkManagerDispatcher.customPacketSupplier |
private java.util.function.BiFunction<ICustomPacket<?>,java.util.function.Supplier<NetworkEvent.Context>,NetworkEvent> |
NetworkDirection.eventSupplier |
Modifier and Type | Method and Description |
---|---|
static <T extends ICustomPacket<?>> |
NetworkDirection.directionFor(java.lang.Class<T> customPacket) |
Modifier and Type | Method and Description |
---|---|
<T extends IPacket<?>> |
NetworkDirection.buildPacket(org.apache.commons.lang3.tuple.Pair<PacketBuffer,java.lang.Integer> packetData,
ResourceLocation channelName) |
Modifier and Type | Method and Description |
---|---|
(package private) boolean |
NetworkInstance.dispatch(NetworkDirection side,
ICustomPacket<?> packet,
NetworkManager manager) |
NetworkEvent |
NetworkDirection.getEvent(ICustomPacket<?> buffer,
java.util.function.Supplier<NetworkEvent.Context> manager) |
static boolean |
NetworkHooks.onCustomPayload(ICustomPacket<?> packet,
NetworkManager manager) |
private static boolean |
NetworkHooks.validateSideForProcessing(ICustomPacket<?> packet,
NetworkInstance ni,
NetworkManager manager) |
Constructor and Description |
---|
ClientCustomPayloadEvent(ICustomPacket<?> payload,
java.util.function.Supplier<NetworkEvent.Context> source) |
ClientCustomPayloadLoginEvent(ICustomPacket<?> payload,
java.util.function.Supplier<NetworkEvent.Context> source) |
NetworkEvent(ICustomPacket<?> payload,
java.util.function.Supplier<NetworkEvent.Context> source) |
ServerCustomPayloadEvent(ICustomPacket<?> payload,
java.util.function.Supplier<NetworkEvent.Context> source) |
ServerCustomPayloadLoginEvent(ICustomPacket<?> payload,
java.util.function.Supplier<NetworkEvent.Context> source) |
Constructor and Description |
---|
NetworkDirection(java.util.function.BiFunction<ICustomPacket<?>,java.util.function.Supplier<NetworkEvent.Context>,NetworkEvent> eventSupplier,
LogicalSide logicalSide,
java.lang.Class<? extends IPacket> clazz,
int i) |
NetworkManagerDispatcher(NetworkManager manager,
int packetIndex,
java.util.function.BiFunction<org.apache.commons.lang3.tuple.Pair<PacketBuffer,java.lang.Integer>,ResourceLocation,ICustomPacket<?>> customPacketSupplier) |