Record Class BlockPattern.BlockEntry
java.lang.Object
java.lang.Record
com.hypixel.hytale.server.core.prefab.selection.mask.BlockPattern.BlockEntry
- Enclosing class:
BlockPattern
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final StringThe field for theblockTypeKeyrecord component.static Codec<BlockPattern.BlockEntry> Deprecated, for removal: This API element is subject to removal in a future version.private final intThe field for thefillerrecord component.private final intThe field for therotationrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionBlockEntry(String blockTypeKey, int rotation, int filler) Creates an instance of aBlockEntryrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theblockTypeKeyrecord component.static BlockPattern.BlockEntryDeprecated, for removal: This API element is subject to removal in a future version.private Stringencode()Deprecated, for removal: This API element is subject to removal in a future version.final booleanIndicates whether some other object is "equal to" this one.intfiller()Returns the value of thefillerrecord component.final inthashCode()Returns a hash code value for this object.introtation()Returns the value of therotationrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
blockTypeKey
The field for theblockTypeKeyrecord component. -
rotation
private final int rotationThe field for therotationrecord component. -
filler
private final int fillerThe field for thefillerrecord component. -
CODEC
Deprecated, for removal: This API element is subject to removal in a future version.
-
-
Constructor Details
-
BlockEntry
Creates an instance of aBlockEntryrecord class.- Parameters:
blockTypeKey- the value for theblockTypeKeyrecord componentrotation- the value for therotationrecord componentfiller- the value for thefillerrecord component
-
-
Method Details
-
encode
Deprecated, for removal: This API element is subject to removal in a future version. -
decode
Deprecated, for removal: This API element is subject to removal in a future version. -
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 '=='. -
blockTypeKey
Returns the value of theblockTypeKeyrecord component.- Returns:
- the value of the
blockTypeKeyrecord component
-
rotation
public int rotation()Returns the value of therotationrecord component.- Returns:
- the value of the
rotationrecord component
-
filler
public int filler()Returns the value of thefillerrecord component.- Returns:
- the value of the
fillerrecord component
-