Record Class BedrockItemAnimation.Item
java.lang.Object
java.lang.Record
com.viaversion.viafabricplus.bedrock.appearance.BedrockItemAnimation.Item
- Enclosing class:
BedrockItemAnimation
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionnet.raphimc.viabedrock.protocol.model.ItemAnimationDataReturns the value of theanimationrecord component.booleancharged()Returns the value of thechargedrecord component.final booleanIndicates whether some other object is "equal to" this one.static BedrockItemAnimation.ItemfromIdentifiers(String bedrockIdentifier, String javaName, int maxUseTicks, boolean charged, net.raphimc.viabedrock.protocol.model.ItemAnimationData animation) final inthashCode()Returns a hash code value for this object.Returns the value of theidentifierrecord component.intReturns the value of themaxUseTicksrecord component.name()The deprecated equipped-name query returns the path, while name matching retains the namespace.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
EMPTY
-
-
Constructor Details
-
Item
public Item(String identifier, int maxUseTicks, boolean charged, net.raphimc.viabedrock.protocol.model.ItemAnimationData animation) Creates an instance of aItemrecord class.- Parameters:
identifier- the value for theidentifierrecord componentmaxUseTicks- the value for themaxUseTicksrecord componentcharged- the value for thechargedrecord componentanimation- the value for theanimationrecord component
-
-
Method Details
-
name
The deprecated equipped-name query returns the path, while name matching retains the namespace. -
fromIdentifiers
public static BedrockItemAnimation.Item fromIdentifiers(String bedrockIdentifier, String javaName, int maxUseTicks, boolean charged, net.raphimc.viabedrock.protocol.model.ItemAnimationData animation) -
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. -
identifier
Returns the value of theidentifierrecord component.- Returns:
- the value of the
identifierrecord component
-
maxUseTicks
public int maxUseTicks()Returns the value of themaxUseTicksrecord component.- Returns:
- the value of the
maxUseTicksrecord component
-
charged
public boolean charged()Returns the value of thechargedrecord component.- Returns:
- the value of the
chargedrecord component
-
animation
public net.raphimc.viabedrock.protocol.model.ItemAnimationData animation()Returns the value of theanimationrecord component.- Returns:
- the value of the
animationrecord component
-