Class PacketEntrants
java.lang.Object
com.petrolpark.core.actionrecord.packet.entrant.PacketEntrants
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final Map<net.minecraft.network.protocol.common.custom.CustomPacketPayload.Type<?>, ICustomPacketPayloadEntrant<?>> protected static final Map<net.minecraft.network.protocol.PacketType<? extends net.minecraft.network.protocol.Packet<?>>, IVanillaPacketEntrant<? extends net.minecraft.network.PacketListener, ? extends net.minecraft.network.protocol.Packet<?>>> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic final <PAYLOAD extends net.minecraft.network.protocol.common.custom.CustomPacketPayload>
ICustomPacketPayloadEntrant<PAYLOAD> getCustomPayloadEntrant(net.minecraft.network.protocol.common.custom.CustomPacketPayload.Type<PAYLOAD> payloadType) static final <LISTENER extends net.minecraft.network.PacketListener,PACKET extends net.minecraft.network.protocol.Packet<LISTENER>>
IVanillaPacketEntrant<LISTENER, PACKET> getEntrant(net.minecraft.network.protocol.PacketType<PACKET> packetType) static final <LISTENER extends net.minecraft.network.PacketListener,PACKET extends net.minecraft.network.protocol.Packet<LISTENER>>
IVanillaPacketEntrant<LISTENER, PACKET> register(net.minecraft.network.protocol.PacketType<PACKET> packetType, IVanillaPacketEntrant<LISTENER, PACKET> entrant) static final <LISTENER extends net.minecraft.network.PacketListener,PACKET extends net.minecraft.network.protocol.Packet<LISTENER>>
IVanillaPacketEntrant<LISTENER, PACKET> registerBoolean(net.minecraft.network.protocol.PacketType<PACKET> packetType, Predicate<PACKET> predicate) static final <PAYLOAD extends net.minecraft.network.protocol.common.custom.CustomPacketPayload>
ICustomPacketPayloadEntrant<PAYLOAD> registerCustomPayload(net.minecraft.network.protocol.common.custom.CustomPacketPayload.Type<PAYLOAD> payloadType, ICustomPacketPayloadEntrant<? super PAYLOAD> entrant) static final <LISTENER extends net.minecraft.network.PacketListener,PACKET extends net.minecraft.network.protocol.Packet<LISTENER>>
IVanillaPacketEntrant<LISTENER, PACKET> registerSimple(net.minecraft.network.protocol.PacketType<PACKET> packetType) static final <LISTENER extends net.minecraft.network.PacketListener,PACKET extends net.minecraft.network.protocol.Packet<LISTENER>>
IVanillaPacketEntrant<LISTENER, PACKET> registerSimple(net.minecraft.network.protocol.PacketType<PACKET> packetType, Function<PACKET, Object[]> translationArgs) static final <LISTENER extends net.minecraft.network.PacketListener,PACKET extends net.minecraft.network.protocol.Packet<LISTENER>>
IVanillaPacketEntrant<LISTENER, PACKET> registerSimple(net.minecraft.network.protocol.PacketType<PACKET> packetType, Function<PACKET, Object[]> translationArgs, Function<PACKET, Object[]> advancedTranslationArgs) static final <LISTENER extends net.minecraft.network.PacketListener,PACKET extends net.minecraft.network.protocol.Packet<LISTENER>>
IVanillaPacketEntrant<LISTENER, PACKET> registerSingleTranslationArg(net.minecraft.network.protocol.PacketType<PACKET> packetType, Function<PACKET, Object> translationArg)
-
Field Details
-
PACKET_ENTRANTS
protected static final Map<net.minecraft.network.protocol.PacketType<? extends net.minecraft.network.protocol.Packet<?>>,IVanillaPacketEntrant<? extends net.minecraft.network.PacketListener, PACKET_ENTRANTS? extends net.minecraft.network.protocol.Packet<?>>> -
CUSTOM_PAYLOAD_ENTRANTS
protected static final Map<net.minecraft.network.protocol.common.custom.CustomPacketPayload.Type<?>,ICustomPacketPayloadEntrant<?>> CUSTOM_PAYLOAD_ENTRANTS
-
-
Constructor Details
-
PacketEntrants
public PacketEntrants()
-
-
Method Details
-
getEntrant
public static final <LISTENER extends net.minecraft.network.PacketListener,PACKET extends net.minecraft.network.protocol.Packet<LISTENER>> IVanillaPacketEntrant<LISTENER,PACKET> getEntrant(net.minecraft.network.protocol.PacketType<PACKET> packetType) -
getCustomPayloadEntrant
public static final <PAYLOAD extends net.minecraft.network.protocol.common.custom.CustomPacketPayload> ICustomPacketPayloadEntrant<PAYLOAD> getCustomPayloadEntrant(net.minecraft.network.protocol.common.custom.CustomPacketPayload.Type<PAYLOAD> payloadType) -
register
public static final <LISTENER extends net.minecraft.network.PacketListener,PACKET extends net.minecraft.network.protocol.Packet<LISTENER>> IVanillaPacketEntrant<LISTENER,PACKET> register(net.minecraft.network.protocol.PacketType<PACKET> packetType, IVanillaPacketEntrant<LISTENER, PACKET> entrant) -
registerSimple
public static final <LISTENER extends net.minecraft.network.PacketListener,PACKET extends net.minecraft.network.protocol.Packet<LISTENER>> IVanillaPacketEntrant<LISTENER,PACKET> registerSimple(net.minecraft.network.protocol.PacketType<PACKET> packetType) -
registerSimple
public static final <LISTENER extends net.minecraft.network.PacketListener,PACKET extends net.minecraft.network.protocol.Packet<LISTENER>> IVanillaPacketEntrant<LISTENER,PACKET> registerSimple(net.minecraft.network.protocol.PacketType<PACKET> packetType, Function<PACKET, Object[]> translationArgs) -
registerSimple
public static final <LISTENER extends net.minecraft.network.PacketListener,PACKET extends net.minecraft.network.protocol.Packet<LISTENER>> IVanillaPacketEntrant<LISTENER,PACKET> registerSimple(net.minecraft.network.protocol.PacketType<PACKET> packetType, Function<PACKET, Object[]> translationArgs, Function<PACKET, Object[]> advancedTranslationArgs) -
registerSingleTranslationArg
public static final <LISTENER extends net.minecraft.network.PacketListener,PACKET extends net.minecraft.network.protocol.Packet<LISTENER>> IVanillaPacketEntrant<LISTENER,PACKET> registerSingleTranslationArg(net.minecraft.network.protocol.PacketType<PACKET> packetType, Function<PACKET, Object> translationArg) -
registerBoolean
public static final <LISTENER extends net.minecraft.network.PacketListener,PACKET extends net.minecraft.network.protocol.Packet<LISTENER>> IVanillaPacketEntrant<LISTENER,PACKET> registerBoolean(net.minecraft.network.protocol.PacketType<PACKET> packetType, Predicate<PACKET> predicate) -
registerCustomPayload
public static final <PAYLOAD extends net.minecraft.network.protocol.common.custom.CustomPacketPayload> ICustomPacketPayloadEntrant<PAYLOAD> registerCustomPayload(net.minecraft.network.protocol.common.custom.CustomPacketPayload.Type<PAYLOAD> payloadType, ICustomPacketPayloadEntrant<? super PAYLOAD> entrant)
-