Contents
Record Class BlockPhysicsUtil.SupportBlock
java.lang.Object
java.lang.Record
com.hypixel.hytale.builtin.blockphysics.BlockPhysicsUtil.SupportBlock
- Enclosing class:
BlockPhysicsUtil
-
Constructor Summary
ConstructorsConstructorDescriptionSupportBlock(int blockId, int rotation, int filler, int fluidId, Fluid fluid) Creates an instance of aSupportBlockrecord 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.fluid()Returns the value of thefluidrecord component.intfluidId()Returns the value of thefluidIdrecord 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.
-
Constructor Details
-
SupportBlock
Creates an instance of aSupportBlockrecord class.- Parameters:
blockId- the value for theblockIdrecord componentrotation- the value for therotationrecord componentfiller- the value for thefillerrecord componentfluidId- the value for thefluidIdrecord componentfluid- the value for thefluidrecord 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. -
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
-
fluidId
public int fluidId()Returns the value of thefluidIdrecord component.- Returns:
- the value of the
fluidIdrecord component
-
fluid
Returns the value of thefluidrecord component.- Returns:
- the value of the
fluidrecord component
-