Record Class CableShapeCacheKey
java.lang.Object
java.lang.Record
com.refinedmods.refinedstorage.common.support.CableShapeCacheKey
public record CableShapeCacheKey(boolean north, boolean east, boolean south, boolean west, boolean up, boolean down)
extends Record
-
Constructor Summary
ConstructorDescriptionCableShapeCacheKey
(boolean north, boolean east, boolean south, boolean west, boolean up, boolean down) Creates an instance of aCableShapeCacheKey
record class. -
Method Summary
Modifier and TypeMethodDescriptionboolean
down()
Returns the value of thedown
record component.boolean
east()
Returns the value of theeast
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.boolean
north()
Returns the value of thenorth
record component.static CableShapeCacheKey
of
(net.minecraft.world.level.block.state.BlockState state) boolean
south()
Returns the value of thesouth
record component.final String
toString()
Returns a string representation of this record class.boolean
up()
Returns the value of theup
record component.boolean
west()
Returns the value of thewest
record component.
-
Constructor Details
-
CableShapeCacheKey
public CableShapeCacheKey(boolean north, boolean east, boolean south, boolean west, boolean up, boolean down) Creates an instance of aCableShapeCacheKey
record class.- Parameters:
north
- the value for thenorth
record componenteast
- the value for theeast
record componentsouth
- the value for thesouth
record componentwest
- the value for thewest
record componentup
- the value for theup
record componentdown
- the value for thedown
record component
-
-
Method Details
-
of
-
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 '=='. -
north
public boolean north()Returns the value of thenorth
record component.- Returns:
- the value of the
north
record component
-
east
public boolean east()Returns the value of theeast
record component.- Returns:
- the value of the
east
record component
-
south
public boolean south()Returns the value of thesouth
record component.- Returns:
- the value of the
south
record component
-
west
public boolean west()Returns the value of thewest
record component.- Returns:
- the value of the
west
record component
-
up
public boolean up()Returns the value of theup
record component.- Returns:
- the value of the
up
record component
-
down
public boolean down()Returns the value of thedown
record component.- Returns:
- the value of the
down
record component
-