Record Class BedrockItemMetadata
java.lang.Object
java.lang.Record
com.viaversion.viafabricplus.bedrock.appearance.BedrockItemMetadata
-
Constructor Summary
ConstructorsConstructorDescriptionBedrockItemMetadata(String identifier, net.raphimc.viabedrock.protocol.model.ItemAnimationData animation) Creates an instance of aBedrockItemMetadatarecord class. -
Method Summary
Modifier and TypeMethodDescriptionnet.raphimc.viabedrock.protocol.model.ItemAnimationDataReturns the value of theanimationrecord component.static voidclear()final booleanIndicates whether some other object is "equal to" this one.static BedrockItemMetadataget(net.minecraft.world.item.component.CustomData data) final inthashCode()Returns a hash code value for this object.Returns the value of theidentifierrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
BedrockItemMetadata
public BedrockItemMetadata(String identifier, net.raphimc.viabedrock.protocol.model.ItemAnimationData animation) Creates an instance of aBedrockItemMetadatarecord class.- Parameters:
identifier- the value for theidentifierrecord componentanimation- the value for theanimationrecord component
-
-
Method Details
-
get
-
clear
public static void clear() -
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). -
identifier
Returns the value of theidentifierrecord component.- Returns:
- the value of the
identifierrecord component
-
animation
public net.raphimc.viabedrock.protocol.model.ItemAnimationData animation()Returns the value of theanimationrecord component.- Returns:
- the value of the
animationrecord component
-