Class ServerboundCustomPayloadPacket
java.lang.Object
net.minecraft.network.protocol.game.ServerboundCustomPayloadPacket
- All Implemented Interfaces:
 Packet<ServerGamePacketListener>,ICustomPacket<ServerboundCustomPayloadPacket>
public class ServerboundCustomPayloadPacket
extends Object
implements Packet<ServerGamePacketListener>, ICustomPacket<ServerboundCustomPayloadPacket>
- 
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ResourceLocationprivate final FriendlyByteBufprivate final ResourceLocationprivate static final int - 
Constructor Summary
ConstructorsConstructorDescriptionServerboundCustomPayloadPacket(FriendlyByteBuf p_179588_) ServerboundCustomPayloadPacket(ResourceLocation p_133985_, FriendlyByteBuf p_133986_)  - 
Method Summary
Modifier and TypeMethodDescriptiongetData()intgetIndex()@Nullable FriendlyByteBufReturns a unsafe reference to this packet's internal data.getName()voidhandle(ServerGamePacketListener p_133992_) voidwrite(FriendlyByteBuf p_133994_) 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
 - 
identifier
 - 
data
 
 - 
 - 
Constructor Details
- 
ServerboundCustomPayloadPacket
 - 
ServerboundCustomPayloadPacket
 
 - 
 - 
Method Details
- 
write
- Specified by:
 writein interfacePacket<ServerGamePacketListener>
 - 
handle
- Specified by:
 handlein interfacePacket<ServerGamePacketListener>
 - 
getIdentifier
 - 
getData
 - 
getIndex
public int getIndex()- Specified by:
 getIndexin interfaceICustomPacket<ServerboundCustomPayloadPacket>
 - 
getName
- Specified by:
 getNamein interfaceICustomPacket<ServerboundCustomPayloadPacket>
 - 
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<ServerboundCustomPayloadPacket>
 
 -