Record Class RegistryData.AttributeEntry
java.lang.Object
java.lang.Record
net.minestom.server.registry.RegistryData.AttributeEntry
- All Implemented Interfaces:
RegistryData.Entry
- Enclosing class:
RegistryData
public static record RegistryData.AttributeEntry(Key key, int id, String translationKey, double defaultValue, boolean clientSync, double maxValue, double minValue)
extends Record
implements RegistryData.Entry
-
Constructor Summary
ConstructorsConstructorDescriptionAttributeEntry(String namespace, RegistryData.Properties main) AttributeEntry(Key key, int id, String translationKey, double defaultValue, boolean clientSync, double maxValue, double minValue) Creates an instance of aAttributeEntryrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns the value of theclientSyncrecord component.doubleReturns the value of thedefaultValuerecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intid()Returns the value of theidrecord component.key()Returns the value of thekeyrecord component.doublemaxValue()Returns the value of themaxValuerecord component.doubleminValue()Returns the value of theminValuerecord component.final StringtoString()Returns a string representation of this record class.Returns the value of thetranslationKeyrecord component.
-
Constructor Details
-
AttributeEntry
-
AttributeEntry
public AttributeEntry(Key key, int id, String translationKey, double defaultValue, boolean clientSync, double maxValue, double minValue) Creates an instance of aAttributeEntryrecord class.- Parameters:
key- the value for thekeyrecord componentid- the value for theidrecord componenttranslationKey- the value for thetranslationKeyrecord componentdefaultValue- the value for thedefaultValuerecord componentclientSync- the value for theclientSyncrecord componentmaxValue- the value for themaxValuerecord componentminValue- the value for theminValuerecord component
-
-
Method Details
-
toString
-
hashCode
-
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 thecomparemethod from their corresponding wrapper classes. -
key
Returns the value of thekeyrecord component.- Returns:
- the value of the
keyrecord component
-
id
public int id()Returns the value of theidrecord component.- Returns:
- the value of the
idrecord component
-
translationKey
Returns the value of thetranslationKeyrecord component.- Returns:
- the value of the
translationKeyrecord component
-
defaultValue
public double defaultValue()Returns the value of thedefaultValuerecord component.- Returns:
- the value of the
defaultValuerecord component
-
clientSync
public boolean clientSync()Returns the value of theclientSyncrecord component.- Returns:
- the value of the
clientSyncrecord component
-
maxValue
public double maxValue()Returns the value of themaxValuerecord component.- Returns:
- the value of the
maxValuerecord component
-
minValue
public double minValue()Returns the value of theminValuerecord component.- Returns:
- the value of the
minValuerecord component
-