Class ServerboundCustomQueryPacket
java.lang.Object
net.minecraft.network.protocol.login.ServerboundCustomQueryPacket
- All Implemented Interfaces:
Packet<ServerLoginPacketListener>
,ICustomPacket<ServerboundCustomQueryPacket>
public class ServerboundCustomQueryPacket
extends Object
implements Packet<ServerLoginPacketListener>, ICustomPacket<ServerboundCustomQueryPacket>
-
Field Summary
Modifier and TypeFieldDescriptionprivate final FriendlyByteBuf
private static final int
private final int
-
Constructor Summary
ConstructorDescriptionServerboundCustomQueryPacket
(int p_134829_, FriendlyByteBuf p_134830_) ServerboundCustomQueryPacket
(FriendlyByteBuf p_179823_) -
Method Summary
Modifier and TypeMethodDescriptiongetData()
int
getIndex()
@Nullable FriendlyByteBuf
Returns a unsafe reference to this packet's internal data.getName()
int
void
handle
(ServerLoginPacketListener p_134836_) void
write
(FriendlyByteBuf p_134838_) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.minecraftforge.network.ICustomPacket
getDirection, getThis
Methods inherited from interface net.minecraft.network.protocol.Packet
isSkippable
-
Field Details
-
MAX_PAYLOAD_SIZE
private static final int MAX_PAYLOAD_SIZE- See Also:
-
transactionId
private final int transactionId -
data
-
-
Constructor Details
-
ServerboundCustomQueryPacket
-
ServerboundCustomQueryPacket
-
-
Method Details
-
write
- Specified by:
write
in interfacePacket<ServerLoginPacketListener>
-
handle
- Specified by:
handle
in interfacePacket<ServerLoginPacketListener>
-
getTransactionId
public int getTransactionId() -
getData
-
getIndex
public int getIndex()- Specified by:
getIndex
in interfaceICustomPacket<ServerboundCustomQueryPacket>
-
getName
- Specified by:
getName
in interfaceICustomPacket<ServerboundCustomQueryPacket>
-
getInternalData
Description copied from interface:ICustomPacket
Returns a unsafe reference to this packet's internal data. Any modifications to this buffer will be reflected in the main buffer.- Specified by:
getInternalData
in interfaceICustomPacket<ServerboundCustomQueryPacket>
-