Record Class NoBlockActionsConstraint
java.lang.Object
java.lang.Record
com.soulfiremc.server.pathfinding.graph.constraint.NoBlockActionsConstraint
- All Implemented Interfaces:
DelegatePathConstraint, PathConstraint
public record NoBlockActionsConstraint(PathConstraint delegate)
extends Record
implements DelegatePathConstraint
-
Constructor Summary
ConstructorsConstructorDescriptionNoBlockActionsConstraint(PathConstraint delegate) Creates an instance of aNoBlockActionsConstraintrecord class. -
Method Summary
Modifier and TypeMethodDescriptiondelegate()Returns the value of thedelegaterecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.Methods inherited from interface DelegatePathConstraint
breakBlockPenalty, canBlocksDropWhenBroken, canBreakBlock, canBreakBlocks, canPlaceBlock, canPlaceBlocks, collidesWithAtEdge, disablePruning, doUsableBlocksDecreaseWhenPlaced, expireTimeout, isOutOfLevel, isPlaceable, isTool, modifyAsNeeded, placeBlockPenalty
-
Constructor Details
-
NoBlockActionsConstraint
Creates an instance of aNoBlockActionsConstraintrecord class.- Parameters:
delegate- the value for thedelegaterecord 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). -
delegate
Returns the value of thedelegaterecord component.- Specified by:
delegatein interfaceDelegatePathConstraint- Returns:
- the value of the
delegaterecord component
-