Contents
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
-
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.
-
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
-
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. -
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
-