Package net.minestom.server.registry
Record Class Registry.TrimPatternEntry
java.lang.Object
java.lang.Record
net.minestom.server.registry.Registry.TrimPatternEntry
- All Implemented Interfaces:
Registry.Entry
- Enclosing class:
Registry
public static record Registry.TrimPatternEntry(@NotNull NamespaceID namespace, @NotNull NamespaceID assetID, @NotNull Material template, @NotNull Component description, boolean decal, Registry.Properties custom)
extends Record
implements Registry.Entry
-
Constructor Summary
ConstructorsConstructorDescriptionTrimPatternEntry(@NotNull String namespace, @NotNull Registry.Properties main, Registry.Properties custom) TrimPatternEntry(@NotNull NamespaceID namespace, @NotNull NamespaceID assetID, @NotNull Material template, @NotNull Component description, boolean decal, Registry.Properties custom) Creates an instance of aTrimPatternEntryrecord class. -
Method Summary
Modifier and TypeMethodDescription@NotNull NamespaceIDassetID()Returns the value of theassetIDrecord component.custom()Returns the value of thecustomrecord component.booleandecal()Returns the value of thedecalrecord 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 NamespaceIDReturns the value of thenamespacerecord component.@NotNull Materialtemplate()Returns the value of thetemplaterecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
TrimPatternEntry
public TrimPatternEntry(@NotNull @NotNull String namespace, @NotNull @NotNull Registry.Properties main, Registry.Properties custom) -
TrimPatternEntry
public TrimPatternEntry(@NotNull @NotNull NamespaceID namespace, @NotNull @NotNull NamespaceID assetID, @NotNull @NotNull Material template, @NotNull @NotNull Component description, boolean decal, Registry.Properties custom) Creates an instance of aTrimPatternEntryrecord class.- Parameters:
namespace- the value for thenamespacerecord componentassetID- the value for theassetIDrecord componenttemplate- the value for thetemplaterecord componentdescription- the value for thedescriptionrecord componentdecal- the value for thedecalrecord 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
-
assetID
Returns the value of theassetIDrecord component.- Returns:
- the value of the
assetIDrecord component
-
template
Returns the value of thetemplaterecord component.- Returns:
- the value of the
templaterecord 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
-
custom
Returns the value of thecustomrecord component.- Specified by:
customin interfaceRegistry.Entry- Returns:
- the value of the
customrecord component
-