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>
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraftforge.network.ICustomPacket
ICustomPacket.Fields -
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()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, getIndex, getInternalData, getName, getThis, setData, setIndex, setNameMethods 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
-