Record Class BlockBenchElementFace
java.lang.Object
java.lang.Record
me.rochblondiaux.blockbench.element.face.BlockBenchElementFace
public record BlockBenchElementFace(BlockBenchUvImpl north, BlockBenchUvImpl east, BlockBenchUvImpl south, BlockBenchUvImpl west, BlockBenchUvImpl up, BlockBenchUvImpl down)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionBlockBenchElementFace(BlockBenchUvImpl north, BlockBenchUvImpl east, BlockBenchUvImpl south, BlockBenchUvImpl west, BlockBenchUvImpl up, BlockBenchUvImpl down) Creates an instance of aBlockBenchElementFacerecord class. -
Method Summary
Modifier and TypeMethodDescriptiondown()Returns the value of thedownrecord component.east()Returns the value of theeastrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.north()Returns the value of thenorthrecord component.south()Returns the value of thesouthrecord component.final StringtoString()Returns a string representation of this record class.up()Returns the value of theuprecord component.west()Returns the value of thewestrecord component.
-
Constructor Details
-
BlockBenchElementFace
public BlockBenchElementFace(BlockBenchUvImpl north, BlockBenchUvImpl east, BlockBenchUvImpl south, BlockBenchUvImpl west, BlockBenchUvImpl up, BlockBenchUvImpl down) Creates an instance of aBlockBenchElementFacerecord class.- Parameters:
north- the value for thenorthrecord componenteast- the value for theeastrecord componentsouth- the value for thesouthrecord componentwest- the value for thewestrecord componentup- the value for theuprecord componentdown- the value for thedownrecord 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 withObjects::equals(Object,Object). -
north
Returns the value of thenorthrecord component.- Returns:
- the value of the
northrecord component
-
east
Returns the value of theeastrecord component.- Returns:
- the value of the
eastrecord component
-
south
Returns the value of thesouthrecord component.- Returns:
- the value of the
southrecord component
-
west
Returns the value of thewestrecord component.- Returns:
- the value of the
westrecord component
-
up
Returns the value of theuprecord component.- Returns:
- the value of the
uprecord component
-
down
Returns the value of thedownrecord component.- Returns:
- the value of the
downrecord component
-