Record Class MetadataDef.Entry.BitMask
java.lang.Object
java.lang.Record
net.minestom.server.entity.MetadataDef.Entry.BitMask
- All Implemented Interfaces:
MetadataDef.Entry<Boolean>
- Enclosing interface:
MetadataDef.Entry<T>
public static record MetadataDef.Entry.BitMask(int index, byte bitMask, Boolean defaultValue)
extends Record
implements MetadataDef.Entry<Boolean>
-
Nested Class Summary
Nested classes/interfaces inherited from interface MetadataDef.Entry
MetadataDef.Entry.BitMask, MetadataDef.Entry.ByteMask, MetadataDef.Entry.Index<T> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbytebitMask()Returns the value of thebitMaskrecord component.Returns 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.intindex()Returns the value of theindexrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
BitMask
Creates an instance of aBitMaskrecord class.- Parameters:
index- the value for theindexrecord componentbitMask- the value for thebitMaskrecord componentdefaultValue- the value for thedefaultValuerecord 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. -
index
public int index()Returns the value of theindexrecord component.- Specified by:
indexin interfaceMetadataDef.Entry<Boolean>- Returns:
- the value of the
indexrecord component
-
bitMask
public byte bitMask()Returns the value of thebitMaskrecord component.- Returns:
- the value of the
bitMaskrecord component
-
defaultValue
Returns the value of thedefaultValuerecord component.- Specified by:
defaultValuein interfaceMetadataDef.Entry<Boolean>- Returns:
- the value of the
defaultValuerecord component
-