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
FieldsModifier and TypeFieldDescriptionstatic final ResourceLocationprivate final FriendlyByteBufstatic final ResourceLocationstatic final ResourceLocationstatic final ResourceLocationstatic final ResourceLocationstatic final ResourceLocationstatic final ResourceLocationstatic final ResourceLocationstatic final ResourceLocationstatic final ResourceLocationstatic final ResourceLocationstatic final ResourceLocationstatic final ResourceLocationstatic final ResourceLocationstatic final ResourceLocationstatic final ResourceLocationstatic final ResourceLocationstatic final ResourceLocationprivate final ResourceLocationprivate static final intprivate final boolean -
Constructor Summary
ConstructorsConstructorDescriptionClientboundCustomPayloadPacket(FriendlyByteBuf p_178836_) ClientboundCustomPayloadPacket(ResourceLocation p_132034_, FriendlyByteBuf p_132035_) -
Method Summary
Modifier and TypeMethodDescriptiongetData()intgetIndex()Returns a unsafe reference to this packet's internal data.getName()voidhandle(ClientGamePacketListener p_132041_) voidwrite(FriendlyByteBuf p_132044_) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraftforge.network.ICustomPacket
getDirection, getThisMethods 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:
writein interfacePacket<ClientGamePacketListener>
-
handle
- Specified by:
handlein interfacePacket<ClientGamePacketListener>
-
getIdentifier
-
getData
-
getIndex
public int getIndex()- Specified by:
getIndexin interfaceICustomPacket<ClientboundCustomPayloadPacket>
-
getName
- Specified by:
getNamein interfaceICustomPacket<ClientboundCustomPayloadPacket>
-
getInternalData
Description copied from interface:ICustomPacketReturns a unsafe reference to this packet's internal data. Any modifications to this buffer will be reflected in the main buffer.- Specified by:
getInternalDatain interfaceICustomPacket<ClientboundCustomPayloadPacket>
-