Package com.ldtteam.structurize.util
Record Class BlockUtils.SolidnessInfo
java.lang.Object
java.lang.Record
com.ldtteam.structurize.util.BlockUtils.SolidnessInfo
- Enclosing class:
BlockUtils
public static record BlockUtils.SolidnessInfo(boolean canFloatInAir, boolean isWeakSolid)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionSolidnessInfo(boolean canFloatInAir, boolean isWeakSolid) Creates an instance of aSolidnessInforecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns the value of thecanFloatInAirrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanbooleanReturns the value of theisWeakSolidrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
SolidnessInfo
public SolidnessInfo(boolean canFloatInAir, boolean isWeakSolid) Creates an instance of aSolidnessInforecord class.- Parameters:
canFloatInAir- the value for thecanFloatInAirrecord componentisWeakSolid- the value for theisWeakSolidrecord component
-
-
Method Details
-
isAnySolid
public boolean isAnySolid() -
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. All components in this record class are compared with '=='. -
canFloatInAir
public boolean canFloatInAir()Returns the value of thecanFloatInAirrecord component.- Returns:
- the value of the
canFloatInAirrecord component
-
isWeakSolid
public boolean isWeakSolid()Returns the value of theisWeakSolidrecord component.- Returns:
- the value of the
isWeakSolidrecord component
-