Record Class InteractWithProcess.PlaceBlock.PlaceTarget
java.lang.Object
java.lang.Record
com.zenith.feature.pathfinder.process.InteractWithProcess.PlaceBlock.PlaceTarget
- Enclosing class:
InteractWithProcess.PlaceBlock
public static record InteractWithProcess.PlaceBlock.PlaceTarget(BlockState supportingBlockState, Direction direction)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionPlaceTarget(BlockState supportingBlockState, Direction direction) Creates an instance of aPlaceTargetrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thedirectionrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of thesupportingBlockStaterecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
PlaceTarget
Creates an instance of aPlaceTargetrecord class.- Parameters:
supportingBlockState- the value for thesupportingBlockStaterecord componentdirection- the value for thedirectionrecord 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. All components in this record class are compared withObjects::equals(Object,Object). -
supportingBlockState
Returns the value of thesupportingBlockStaterecord component.- Returns:
- the value of the
supportingBlockStaterecord component
-
direction
Returns the value of thedirectionrecord component.- Returns:
- the value of the
directionrecord component
-