Class ActionPacket

  • All Implemented Interfaces:
    net.minecraft.network.protocol.common.custom.CustomPacketPayload

    
    public abstract class ActionPacket<P extends ActionPacket<P>>
     implements CustomPacketPayload
                        
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private final ResourceLocation id
      private final CustomPacketPayload.Type<P> packetType
    • Constructor Summary

      Constructors 
      Constructor Description
      ActionPacket()
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      abstract ResourceLocation getId()
      final CustomPacketPayload.Type<P> getPacketType()
      CustomPacketPayload.Type<P> type()
      final P create()
      final Unit write(FriendlyByteBuf buf, P packet)
      final P read(FriendlyByteBuf buf)
      final Unit handle(P packet, IPayloadContext cx)
      abstract Unit handle(IPayloadContext cx)
      abstract P factory()
      • Methods inherited from class net.minecraft.network.protocol.common.custom.CustomPacketPayload

        toVanillaClientbound, toVanillaServerbound
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ActionPacket

        ActionPacket()