Class ActionPacket
-
- All Implemented Interfaces:
-
net.minecraft.network.protocol.common.custom.CustomPacketPayload
public abstract class ActionPacket<P extends ActionPacket<P>> implements CustomPacketPayload
-
-
Field Summary
Fields Modifier and Type Field Description private final ResourceLocationidprivate final CustomPacketPayload.Type<P>packetType
-
Constructor Summary
Constructors Constructor Description ActionPacket()
-
Method Summary
Modifier and Type Method Description abstract ResourceLocationgetId()final CustomPacketPayload.Type<P>getPacketType()CustomPacketPayload.Type<P>type()final Pcreate()final Unitwrite(FriendlyByteBuf buf, P packet)final Pread(FriendlyByteBuf buf)final Unithandle(P packet, IPayloadContext cx)abstract Unithandle(IPayloadContext cx)abstract Pfactory()-
-
Method Detail
-
getId
abstract ResourceLocation getId()
-
getPacketType
final CustomPacketPayload.Type<P> getPacketType()
-
-
-
-