Class ClientboundCustomPayloadPacket
java.lang.Object
net.minecraft.network.protocol.game.ClientboundCustomPayloadPacket
- All Implemented Interfaces:
Packet<ClientGamePacketListener>
,ICustomPacket<ClientboundCustomPayloadPacket>
public class ClientboundCustomPayloadPacket
extends Object
implements Packet<ClientGamePacketListener>, ICustomPacket<ClientboundCustomPayloadPacket>
-
Field Summary
Modifier and TypeFieldDescriptionstatic final ResourceLocation
private final FriendlyByteBuf
static final ResourceLocation
static final ResourceLocation
static final ResourceLocation
static final ResourceLocation
static final ResourceLocation
static final ResourceLocation
static final ResourceLocation
static final ResourceLocation
static final ResourceLocation
static final ResourceLocation
static final ResourceLocation
static final ResourceLocation
static final ResourceLocation
static final ResourceLocation
static final ResourceLocation
static final ResourceLocation
static final ResourceLocation
private final ResourceLocation
private static final int
private final boolean
-
Constructor Summary
ConstructorDescriptionClientboundCustomPayloadPacket
(FriendlyByteBuf p_178836_) ClientboundCustomPayloadPacket
(ResourceLocation p_132034_, FriendlyByteBuf p_132035_) -
Method Summary
Modifier and TypeMethodDescriptiongetData()
int
getIndex()
Returns a unsafe reference to this packet's internal data.getName()
void
handle
(ClientGamePacketListener p_132041_) void
write
(FriendlyByteBuf p_132044_) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.minecraftforge.network.ICustomPacket
getDirection, getThis
Methods inherited from interface net.minecraft.network.protocol.Packet
isSkippable
-
Field Details
-
MAX_PAYLOAD_SIZE
private static final int MAX_PAYLOAD_SIZE- See Also:
-
BRAND
-
DEBUG_PATHFINDING_PACKET
-
DEBUG_NEIGHBORSUPDATE_PACKET
-
DEBUG_STRUCTURES_PACKET
-
DEBUG_WORLDGENATTEMPT_PACKET
-
DEBUG_POI_TICKET_COUNT_PACKET
-
DEBUG_POI_ADDED_PACKET
-
DEBUG_POI_REMOVED_PACKET
-
DEBUG_VILLAGE_SECTIONS
-
DEBUG_GOAL_SELECTOR
-
DEBUG_BRAIN
-
DEBUG_BEE
-
DEBUG_HIVE
-
DEBUG_GAME_TEST_ADD_MARKER
-
DEBUG_GAME_TEST_CLEAR
-
DEBUG_RAIDS
-
DEBUG_GAME_EVENT
-
DEBUG_GAME_EVENT_LISTENER
-
identifier
-
data
-
shouldRelease
private final boolean shouldRelease
-
-
Constructor Details
-
ClientboundCustomPayloadPacket
-
ClientboundCustomPayloadPacket
-
-
Method Details
-
write
- Specified by:
write
in interfacePacket<ClientGamePacketListener>
-
handle
- Specified by:
handle
in interfacePacket<ClientGamePacketListener>
-
getIdentifier
-
getData
-
getIndex
public int getIndex()- Specified by:
getIndex
in interfaceICustomPacket<ClientboundCustomPayloadPacket>
-
getName
- Specified by:
getName
in interfaceICustomPacket<ClientboundCustomPayloadPacket>
-
getInternalData
Description copied from interface:ICustomPacket
Returns a unsafe reference to this packet's internal data. Any modifications to this buffer will be reflected in the main buffer.- Specified by:
getInternalData
in interfaceICustomPacket<ClientboundCustomPayloadPacket>
-