Record Class MetadataDef.Entry.ByteMask
java.lang.Object
java.lang.Record
net.minestom.server.entity.MetadataDef.Entry.ByteMask
- All Implemented Interfaces:
MetadataDef.Entry<Byte>
- Enclosing interface:
MetadataDef.Entry<T>
public static record MetadataDef.Entry.ByteMask(int index, byte byteMask, int offset, Byte defaultValue)
extends Record
implements MetadataDef.Entry<Byte>
-
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 TypeMethodDescriptionbytebyteMask()Returns the value of thebyteMaskrecord 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.intoffset()Returns the value of theoffsetrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ByteMask
Creates an instance of aByteMaskrecord class.- Parameters:
index- the value for theindexrecord componentbyteMask- the value for thebyteMaskrecord componentoffset- the value for theoffsetrecord 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<Byte>- Returns:
- the value of the
indexrecord component
-
byteMask
public byte byteMask()Returns the value of thebyteMaskrecord component.- Returns:
- the value of the
byteMaskrecord component
-
offset
public int offset()Returns the value of theoffsetrecord component.- Returns:
- the value of the
offsetrecord component
-
defaultValue
Returns the value of thedefaultValuerecord component.- Specified by:
defaultValuein interfaceMetadataDef.Entry<Byte>- Returns:
- the value of the
defaultValuerecord component
-