Class PacketEntrants

java.lang.Object
com.petrolpark.core.actionrecord.packet.entrant.PacketEntrants

public class PacketEntrants extends Object
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected 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
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static 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)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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,? extends net.minecraft.network.protocol.Packet<?>>> PACKET_ENTRANTS
    • 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)