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.fmllegacy.network.ICustomPacket
ICustomPacket.Fields
-
Field Summary
Modifier and TypeFieldDescriptionstatic ResourceLocation
private FriendlyByteBuf
private ResourceLocation
private static int
-
Constructor Summary
ConstructorDescriptionServerboundCustomPayloadPacket(FriendlyByteBuf p_179588_)
ServerboundCustomPayloadPacket(ResourceLocation p_133985_, FriendlyByteBuf p_133986_)
-
Method Summary
Modifier and TypeMethodDescriptiongetData()
void
handle(ServerGamePacketListener p_133992_)
void
write(FriendlyByteBuf p_133994_)
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.minecraftforge.fmllegacy.network.ICustomPacket
getDirection, getIndex, getInternalData, getName, getThis, setData, setIndex, setName
Methods inherited from interface net.minecraft.network.protocol.Packet
isSkippable
-
Field Details
-
MAX_PAYLOAD_SIZE
private static final int MAX_PAYLOAD_SIZE- See Also:
- Constant Field Values
-
BRAND
-
identifier
-
data
-
-
Constructor Details
-
ServerboundCustomPayloadPacket
-
ServerboundCustomPayloadPacket
-
-
Method Details
-
write
- Specified by:
write
in interfacePacket<ServerGamePacketListener>
-
handle
- Specified by:
handle
in interfacePacket<ServerGamePacketListener>
-
getIdentifier
-
getData
-