类 ServerboundCustomPayloadPacket
java.lang.Object
net.minecraft.network.protocol.game.ServerboundCustomPayloadPacket
public class ServerboundCustomPayloadPacket
extends Object
implements Packet<ServerGamePacketListener>, ICustomPacket<ServerboundCustomPayloadPacket>
-
字段概要
字段修饰符和类型字段说明static final ResourceLocation
private final FriendlyByteBuf
private final ResourceLocation
private static final int
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明getData()
int
getIndex()
@Nullable FriendlyByteBuf
Returns a unsafe reference to this packet's internal data.getName()
void
handle
(ServerGamePacketListener pHandler) void
write
(FriendlyByteBuf pBuffer) 从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
从接口继承的方法 net.minecraftforge.network.ICustomPacket
getDirection, getThis
从接口继承的方法 net.minecraft.network.protocol.Packet
isSkippable
-
字段详细资料
-
MAX_PAYLOAD_SIZE
private static final int MAX_PAYLOAD_SIZE- 另请参阅:
-
BRAND
-
identifier
-
data
-
-
构造器详细资料
-
ServerboundCustomPayloadPacket
-
ServerboundCustomPayloadPacket
-
-
方法详细资料
-
write
- 指定者:
write
在接口中Packet<ServerGamePacketListener>
-
handle
- 指定者:
handle
在接口中Packet<ServerGamePacketListener>
-
getIdentifier
-
getData
-
getIndex
public int getIndex()- 指定者:
getIndex
在接口中ICustomPacket<ServerboundCustomPayloadPacket>
-
getName
- 指定者:
getName
在接口中ICustomPacket<ServerboundCustomPayloadPacket>
-
getInternalData
从接口复制的说明:ICustomPacket
Returns a unsafe reference to this packet's internal data. Any modifications to this buffer will be reflected in the main buffer.
-