Record Class BlockSelection.BlockHolder
java.lang.Object
java.lang.Record
com.hypixel.hytale.server.core.prefab.selection.standard.BlockSelection.BlockHolder
- Enclosing class:
BlockSelection
public static record BlockSelection.BlockHolder(int blockId, int rotation, int filler, int supportValue, Holder<ChunkStore> holder)
extends Record
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final intThe field for theblockIdrecord component.private final intThe field for thefillerrecord component.private final Holder<ChunkStore> The field for theholderrecord component.private final intThe field for therotationrecord component.private final intThe field for thesupportValuerecord component. -
Constructor Summary
ConstructorsConstructorDescriptionBlockHolder(int blockId, int rotation, int filler, int supportValue, Holder<ChunkStore> holder) Creates an instance of aBlockHolderrecord class. -
Method Summary
Modifier and TypeMethodDescriptionintblockId()Returns the value of theblockIdrecord component.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.holder()Returns the value of theholderrecord component.introtation()Returns the value of therotationrecord component.intReturns the value of thesupportValuerecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
blockId
private final int blockIdThe field for theblockIdrecord component. -
rotation
private final int rotationThe field for therotationrecord component. -
filler
private final int fillerThe field for thefillerrecord component. -
supportValue
private final int supportValueThe field for thesupportValuerecord component. -
holder
The field for theholderrecord component.
-
-
Constructor Details
-
BlockHolder
public BlockHolder(int blockId, int rotation, int filler, int supportValue, Holder<ChunkStore> holder) Creates an instance of aBlockHolderrecord class.- Parameters:
blockId- the value for theblockIdrecord componentrotation- the value for therotationrecord componentfiller- the value for thefillerrecord componentsupportValue- the value for thesupportValuerecord componentholder- the value for theholderrecord component
-
-
Method Details
-
cloneBlockHolder
-
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 '=='. -
blockId
public int blockId()Returns the value of theblockIdrecord component.- Returns:
- the value of the
blockIdrecord 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
-
supportValue
public int supportValue()Returns the value of thesupportValuerecord component.- Returns:
- the value of the
supportValuerecord component
-
holder
Returns the value of theholderrecord component.- Returns:
- the value of the
holderrecord component
-