Record Class PlayerInventoryScreenRequestPayload
java.lang.Object
java.lang.Record
com.viaversion.viafabricplus.bedrock.screen.container.PlayerInventoryScreenRequestPayload
- All Implemented Interfaces:
net.minecraft.network.protocol.common.custom.CustomPacketPayload
public record PlayerInventoryScreenRequestPayload(net.raphimc.viabedrock.api.model.PlayerInventoryScreenRequest request, boolean deferred)
extends Record
implements net.minecraft.network.protocol.common.custom.CustomPacketPayload
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraft.network.protocol.common.custom.CustomPacketPayload
net.minecraft.network.protocol.common.custom.CustomPacketPayload.FallbackProvider<B>, net.minecraft.network.protocol.common.custom.CustomPacketPayload.Type<T>, net.minecraft.network.protocol.common.custom.CustomPacketPayload.TypeAndCodec<B,T> -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final net.minecraft.network.codec.StreamCodec<net.minecraft.network.RegistryFriendlyByteBuf, PlayerInventoryScreenRequestPayload> static final net.minecraft.network.codec.StreamCodec<net.minecraft.network.RegistryFriendlyByteBuf, PlayerInventoryScreenRequestPayload> static final net.minecraft.network.protocol.common.custom.CustomPacketPayload.Type<PlayerInventoryScreenRequestPayload> static final net.minecraft.network.protocol.common.custom.CustomPacketPayload.Type<PlayerInventoryScreenRequestPayload> -
Constructor Summary
ConstructorsConstructorDescriptionPlayerInventoryScreenRequestPayload(net.raphimc.viabedrock.api.model.PlayerInventoryScreenRequest request) PlayerInventoryScreenRequestPayload(net.raphimc.viabedrock.api.model.PlayerInventoryScreenRequest request, boolean deferred) Creates an instance of aPlayerInventoryScreenRequestPayloadrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleandeferred()Returns the value of thedeferredrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.net.raphimc.viabedrock.api.model.PlayerInventoryScreenRequestrequest()Returns the value of therequestrecord component.final StringtoString()Returns a string representation of this record class.net.minecraft.network.protocol.common.custom.CustomPacketPayload.Type<PlayerInventoryScreenRequestPayload> type()
-
Field Details
-
TYPE
public static final net.minecraft.network.protocol.common.custom.CustomPacketPayload.Type<PlayerInventoryScreenRequestPayload> TYPE -
DEFERRED_TYPE
public static final net.minecraft.network.protocol.common.custom.CustomPacketPayload.Type<PlayerInventoryScreenRequestPayload> DEFERRED_TYPE -
CODEC
public static final net.minecraft.network.codec.StreamCodec<net.minecraft.network.RegistryFriendlyByteBuf, PlayerInventoryScreenRequestPayload> CODEC -
DEFERRED_CODEC
public static final net.minecraft.network.codec.StreamCodec<net.minecraft.network.RegistryFriendlyByteBuf, PlayerInventoryScreenRequestPayload> DEFERRED_CODEC
-
-
Constructor Details
-
PlayerInventoryScreenRequestPayload
public PlayerInventoryScreenRequestPayload(net.raphimc.viabedrock.api.model.PlayerInventoryScreenRequest request) -
PlayerInventoryScreenRequestPayload
public PlayerInventoryScreenRequestPayload(net.raphimc.viabedrock.api.model.PlayerInventoryScreenRequest request, boolean deferred) Creates an instance of aPlayerInventoryScreenRequestPayloadrecord class.- Parameters:
request- the value for therequestrecord componentdeferred- the value for thedeferredrecord component
-
-
Method Details
-
type
public net.minecraft.network.protocol.common.custom.CustomPacketPayload.Type<PlayerInventoryScreenRequestPayload> type()- Specified by:
typein interfacenet.minecraft.network.protocol.common.custom.CustomPacketPayload
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
request
public net.raphimc.viabedrock.api.model.PlayerInventoryScreenRequest request()Returns the value of therequestrecord component.- Returns:
- the value of the
requestrecord component
-
deferred
public boolean deferred()Returns the value of thedeferredrecord component.- Returns:
- the value of the
deferredrecord component
-