Record Class ArmorTrim.TrimPattern
java.lang.Object
java.lang.Record
org.geysermc.mcprotocollib.protocol.data.game.item.component.ArmorTrim.TrimPattern
- Enclosing class:
- ArmorTrim
-
Constructor Summary
ConstructorsConstructorDescriptionTrimPattern(String assetId, int templateItemId, net.kyori.adventure.text.Component description, boolean decal) Creates an instance of aTrimPatternrecord class. -
Method Summary
Modifier and TypeMethodDescriptionassetId()Returns the value of theassetIdrecord component.booleandecal()Returns the value of thedecalrecord component.net.kyori.adventure.text.ComponentReturns the value of thedescriptionrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intReturns the value of thetemplateItemIdrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
TrimPattern
public TrimPattern(String assetId, int templateItemId, net.kyori.adventure.text.Component description, boolean decal) Creates an instance of aTrimPatternrecord class.- Parameters:
assetId- the value for theassetIdrecord componenttemplateItemId- the value for thetemplateItemIdrecord componentdescription- the value for thedescriptionrecord componentdecal- the value for thedecalrecord component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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 '=='. -
assetId
Returns the value of theassetIdrecord component.- Returns:
- the value of the
assetIdrecord component
-
templateItemId
public int templateItemId()Returns the value of thetemplateItemIdrecord component.- Returns:
- the value of the
templateItemIdrecord component
-
description
public net.kyori.adventure.text.Component description()Returns the value of thedescriptionrecord component.- Returns:
- the value of the
descriptionrecord component
-
decal
public boolean decal()Returns the value of thedecalrecord component.- Returns:
- the value of the
decalrecord component
-