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
ConstructorsConstructorDescriptionTrimMaterialEntry(@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 aTrimMaterialEntryrecord class. -
Method Summary
Modifier and TypeMethodDescription@NotNull StringReturns the value of theassetNamerecord component.custom()Returns the value of thecustomrecord component.@NotNull 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.@NotNull MaterialReturns the value of theingredientrecord component.floatReturns the value of theitemModelIndexrecord component.@NotNull NamespaceIDReturns the value of thenamespacerecord component.Returns the value of theoverrideArmorMaterialsrecord component.final StringtoString()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 aTrimMaterialEntryrecord class.- Parameters:
namespace- the value for thenamespacerecord componentassetName- the value for theassetNamerecord componentingredient- the value for theingredientrecord componentitemModelIndex- the value for theitemModelIndexrecord componentoverrideArmorMaterials- the value for theoverrideArmorMaterialsrecord componentdescription- the value for thedescriptionrecord componentcustom- the value for thecustomrecord 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 thenamespacerecord component.- Returns:
- the value of the
namespacerecord component
-
assetName
Returns the value of theassetNamerecord component.- Returns:
- the value of the
assetNamerecord component
-
ingredient
Returns the value of theingredientrecord component.- Returns:
- the value of the
ingredientrecord component
-
itemModelIndex
public float itemModelIndex()Returns the value of theitemModelIndexrecord component.- Returns:
- the value of the
itemModelIndexrecord component
-
overrideArmorMaterials
Returns the value of theoverrideArmorMaterialsrecord component.- Returns:
- the value of the
overrideArmorMaterialsrecord component
-
description
Returns the value of thedescriptionrecord component.- Returns:
- the value of the
descriptionrecord component
-
custom
Returns the value of thecustomrecord component.- Specified by:
customin interfaceRegistry.Entry- Returns:
- the value of the
customrecord component
-