Record Class UnderwaterMovementPayload
java.lang.Object
java.lang.Record
com.viaversion.viafabricplus.bedrock.input.UnderwaterMovementPayload
- All Implemented Interfaces:
net.minecraft.network.protocol.common.custom.CustomPacketPayload
public record UnderwaterMovementPayload(net.raphimc.viabedrock.api.model.UnderwaterMovementAttribute attribute)
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, UnderwaterMovementPayload> static final net.minecraft.network.protocol.common.custom.CustomPacketPayload.Type<UnderwaterMovementPayload> -
Constructor Summary
ConstructorsConstructorDescriptionUnderwaterMovementPayload(net.raphimc.viabedrock.api.model.UnderwaterMovementAttribute attribute) Creates an instance of aUnderwaterMovementPayloadrecord class. -
Method Summary
Modifier and TypeMethodDescriptionnet.raphimc.viabedrock.api.model.UnderwaterMovementAttributeReturns the value of theattributerecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.net.minecraft.network.protocol.common.custom.CustomPacketPayload.Type<UnderwaterMovementPayload> type()
-
Field Details
-
TYPE
public static final net.minecraft.network.protocol.common.custom.CustomPacketPayload.Type<UnderwaterMovementPayload> TYPE -
CODEC
public static final net.minecraft.network.codec.StreamCodec<net.minecraft.network.RegistryFriendlyByteBuf, UnderwaterMovementPayload> CODEC
-
-
Constructor Details
-
UnderwaterMovementPayload
public UnderwaterMovementPayload(net.raphimc.viabedrock.api.model.UnderwaterMovementAttribute attribute) Creates an instance of aUnderwaterMovementPayloadrecord class.- Parameters:
attribute- the value for theattributerecord component
-
-
Method Details
-
type
public net.minecraft.network.protocol.common.custom.CustomPacketPayload.Type<UnderwaterMovementPayload> 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. All components in this record class are compared withObjects::equals(Object,Object). -
attribute
public net.raphimc.viabedrock.api.model.UnderwaterMovementAttribute attribute()Returns the value of theattributerecord component.- Returns:
- the value of the
attributerecord component
-