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 ResourceLocation
id
private final CustomPacketPayload.Type<P>
packetType
-
Constructor Summary
Constructors Constructor Description ActionPacket()
-
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()
-
-
Method Detail
-
getId
abstract ResourceLocation getId()
-
getPacketType
final CustomPacketPayload.Type<P> getPacketType()
-
-
-
-