Package net.minestom.server.registry
Record Class Registry.TrimMaterialEntry
java.lang.Object
java.lang.Record
net.minestom.server.registry.Registry.TrimMaterialEntry
- All Implemented Interfaces:
Registry.Entry
- Enclosing class:
Registry
public static record Registry.TrimMaterialEntry(@NotNull NamespaceID namespace, @NotNull String assetName, @NotNull Material ingredient, float itemModelIndex, @NotNull Map<String,String> overrideArmorMaterials, @NotNull Component description, Registry.Properties custom)
extends Record
implements Registry.Entry
-
Constructor Summary
ConstructorDescriptionTrimMaterialEntry
(@NotNull String namespace, @NotNull Registry.Properties main, Registry.Properties custom) TrimMaterialEntry
(@NotNull NamespaceID namespace, @NotNull String assetName, @NotNull Material ingredient, float itemModelIndex, @NotNull Map<String, String> overrideArmorMaterials, @NotNull Component description, Registry.Properties custom) Creates an instance of aTrimMaterialEntry
record class. -
Method Summary
Modifier and TypeMethodDescription@NotNull String
Returns the value of theassetName
record component.custom()
Returns the value of thecustom
record component.@NotNull Component
Returns the value of thedescription
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.@NotNull Material
Returns the value of theingredient
record component.float
Returns the value of theitemModelIndex
record component.@NotNull NamespaceID
Returns the value of thenamespace
record component.Returns the value of theoverrideArmorMaterials
record component.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
TrimMaterialEntry
public TrimMaterialEntry(@NotNull @NotNull String namespace, @NotNull @NotNull Registry.Properties main, Registry.Properties custom) -
TrimMaterialEntry
public TrimMaterialEntry(@NotNull @NotNull NamespaceID namespace, @NotNull @NotNull String assetName, @NotNull @NotNull Material ingredient, float itemModelIndex, @NotNull @NotNull Map<String, String> overrideArmorMaterials, @NotNull @NotNull Component description, Registry.Properties custom) Creates an instance of aTrimMaterialEntry
record class.- Parameters:
namespace
- the value for thenamespace
record componentassetName
- the value for theassetName
record componentingredient
- the value for theingredient
record componentitemModelIndex
- the value for theitemModelIndex
record componentoverrideArmorMaterials
- the value for theoverrideArmorMaterials
record componentdescription
- the value for thedescription
record componentcustom
- the value for thecustom
record 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 '=='. -
namespace
Returns the value of thenamespace
record component.- Returns:
- the value of the
namespace
record component
-
assetName
Returns the value of theassetName
record component.- Returns:
- the value of the
assetName
record component
-
ingredient
Returns the value of theingredient
record component.- Returns:
- the value of the
ingredient
record component
-
itemModelIndex
public float itemModelIndex()Returns the value of theitemModelIndex
record component.- Returns:
- the value of the
itemModelIndex
record component
-
overrideArmorMaterials
Returns the value of theoverrideArmorMaterials
record component.- Returns:
- the value of the
overrideArmorMaterials
record component
-
description
Returns the value of thedescription
record component.- Returns:
- the value of the
description
record component
-
custom
Returns the value of thecustom
record component.- Specified by:
custom
in interfaceRegistry.Entry
- Returns:
- the value of the
custom
record component
-