Package org.geysermc.geyser.level.block
Record Class DoubleChestValue
java.lang.Object
java.lang.Record
org.geysermc.geyser.level.block.DoubleChestValue
public record DoubleChestValue(boolean isFacingEast, boolean isDirectionPositive, boolean isLeft)
extends Record
This stores all values of double chests that are part of the Java block state.
-
Constructor Summary
ConstructorDescriptionDoubleChestValue(boolean isFacingEast, boolean isDirectionPositive, boolean isLeft)
Creates an instance of aDoubleChestValue
record class. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Indicates whether some other object is "equal to" this one.int
hashCode()
Returns a hash code value for this object.boolean
Returns the value of theisDirectionPositive
record component.boolean
Returns the value of theisFacingEast
record component.boolean
isLeft()
Returns the value of theisLeft
record component.toString()
Returns a string representation of this record class.
-
Constructor Details
-
DoubleChestValue
public DoubleChestValue(boolean isFacingEast, boolean isDirectionPositive, boolean isLeft)Creates an instance of aDoubleChestValue
record class.- Parameters:
isFacingEast
- the value for theisFacingEast
record componentisDirectionPositive
- the value for theisDirectionPositive
record componentisLeft
- the value for theisLeft
record component
-
-
Method Details
-
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 '=='. -
isFacingEast
public boolean isFacingEast()Returns the value of theisFacingEast
record component.- Returns:
- the value of the
isFacingEast
record component
-
isDirectionPositive
public boolean isDirectionPositive()Returns the value of theisDirectionPositive
record component.- Returns:
- the value of the
isDirectionPositive
record component
-
isLeft
public boolean isLeft()Returns the value of theisLeft
record component.- Returns:
- the value of the
isLeft
record component
-