Class SimpleQueryPayload
java.lang.Object
net.neoforged.neoforge.network.custom.payload.SimpleQueryPayload
- All Implemented Interfaces:
CustomQueryAnswerPayload,CustomQueryPayload,ICustomQueryPayloadWithBuffer
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final ResourceLocationprivate final intprivate final FriendlyByteBuf -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateSimpleQueryPayload(byte[] payload, int packetIndex, ResourceLocation id) privateSimpleQueryPayload(FriendlyByteBuf byteBuf, int packetIndex, ResourceLocation id) -
Method Summary
Modifier and TypeMethodDescriptionbuffer()The buffer that created the query payload.booleaninthashCode()@NotNull ResourceLocationid()static SimpleQueryPayloadinbound(FriendlyByteBuf byteBuf) static SimpleQueryPayloadinbound(FriendlyByteBuf byteBuf, ResourceLocation verifiableId) static SimpleQueryPayloadoutbound(byte[] payload, int packetIndex, ResourceLocation id) static SimpleQueryPayloadoutbound(FriendlyByteBuf byteBuf, int packetIndex, ResourceLocation id) intThe internal packet processing index for the query.payload()toString()voidwrite(FriendlyByteBuf p_295179_) Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface net.neoforged.neoforge.network.ICustomQueryPayloadWithBuffer
getDirection
-
Field Details
-
payload
-
packetIndex
private final int packetIndex -
id
-
-
Constructor Details
-
SimpleQueryPayload
-
SimpleQueryPayload
-
-
Method Details
-
outbound
-
outbound
public static SimpleQueryPayload outbound(FriendlyByteBuf byteBuf, int packetIndex, ResourceLocation id) -
inbound
-
inbound
-
write
- Specified by:
writein interfaceCustomQueryAnswerPayload- Specified by:
writein interfaceCustomQueryPayload
-
buffer
Description copied from interface:ICustomQueryPayloadWithBufferThe buffer that created the query payload.- Specified by:
bufferin interfaceICustomQueryPayloadWithBuffer- Returns:
- The buffer
-
packetIndex
public int packetIndex()Description copied from interface:ICustomQueryPayloadWithBufferThe internal packet processing index for the query.- Specified by:
packetIndexin interfaceICustomQueryPayloadWithBuffer- Returns:
- The packet index.
-
payload
-
id
- Specified by:
idin interfaceCustomQueryPayload
-
equals
-
hashCode
public int hashCode() -
toString
-