Record Class ProvidesTrimMaterial
java.lang.Object
java.lang.Record
org.geysermc.mcprotocollib.protocol.data.game.item.component.ProvidesTrimMaterial
public record ProvidesTrimMaterial(@Nullable Holder<ArmorTrim.TrimMaterial> materialHolder, @Nullable net.kyori.adventure.key.Key materialLocation)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionProvidesTrimMaterial(@Nullable Holder<ArmorTrim.TrimMaterial> materialHolder, @Nullable net.kyori.adventure.key.Key materialLocation) Creates an instance of aProvidesTrimMaterialrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.@Nullable Holder<ArmorTrim.TrimMaterial>Returns the value of thematerialHolderrecord component.@Nullable net.kyori.adventure.key.KeyReturns the value of thematerialLocationrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ProvidesTrimMaterial
public ProvidesTrimMaterial(@Nullable @Nullable Holder<ArmorTrim.TrimMaterial> materialHolder, @Nullable @Nullable net.kyori.adventure.key.Key materialLocation) Creates an instance of aProvidesTrimMaterialrecord class.- Parameters:
materialHolder- the value for thematerialHolderrecord componentmaterialLocation- the value for thematerialLocationrecord 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. All components in this record class are compared withObjects::equals(Object,Object). -
materialHolder
Returns the value of thematerialHolderrecord component.- Returns:
- the value of the
materialHolderrecord component
-
materialLocation
@Nullable public @Nullable net.kyori.adventure.key.Key materialLocation()Returns the value of thematerialLocationrecord component.- Returns:
- the value of the
materialLocationrecord component
-