Interface DelegatePathConstraint
- All Superinterfaces:
PathConstraint
- All Known Implementing Classes:
NoBlockActionsConstraint, NoBlockBreakingConstraint, NoBlockPlacingConstraint
-
Method Summary
Modifier and TypeMethodDescriptiondefault doubleReturns the cost penalty for breaking a block during pathfinding.default booleandefault booleancanBreakBlock(SFVec3i pos, net.minecraft.world.level.block.state.BlockState blockState) default booleandefault booleancanPlaceBlock(SFVec3i pos) default booleandefault booleancollidesWithAtEdge(DiagonalCollisionCalculator.CollisionData collisionData) delegate()default booleanReturns whether pruning of the pathfinding search space is disabled.default booleandefault intReturns the maximum time in seconds before pathfinding gives up.default booleanisOutOfLevel(net.minecraft.world.level.block.state.BlockState blockState, SFVec3i pos) default booleanisPlaceable(net.minecraft.world.item.ItemStack item) default booleanisTool(net.minecraft.world.item.ItemStack item) default GraphInstructionsmodifyAsNeeded(GraphInstructions instruction) default doubleReturns the cost penalty for placing a block during pathfinding.
-
Method Details
-
doUsableBlocksDecreaseWhenPlaced
default boolean doUsableBlocksDecreaseWhenPlaced()- Specified by:
doUsableBlocksDecreaseWhenPlacedin interfacePathConstraint
-
canBlocksDropWhenBroken
default boolean canBlocksDropWhenBroken()- Specified by:
canBlocksDropWhenBrokenin interfacePathConstraint
-
canBreakBlocks
default boolean canBreakBlocks()- Specified by:
canBreakBlocksin interfacePathConstraint
-
canPlaceBlocks
default boolean canPlaceBlocks()- Specified by:
canPlaceBlocksin interfacePathConstraint
-
isPlaceable
default boolean isPlaceable(net.minecraft.world.item.ItemStack item) - Specified by:
isPlaceablein interfacePathConstraint
-
isTool
default boolean isTool(net.minecraft.world.item.ItemStack item) - Specified by:
isToolin interfacePathConstraint
-
isOutOfLevel
default boolean isOutOfLevel(net.minecraft.world.level.block.state.BlockState blockState, SFVec3i pos) - Specified by:
isOutOfLevelin interfacePathConstraint
-
canBreakBlock
default boolean canBreakBlock(SFVec3i pos, net.minecraft.world.level.block.state.BlockState blockState) - Specified by:
canBreakBlockin interfacePathConstraint
-
canPlaceBlock
- Specified by:
canPlaceBlockin interfacePathConstraint
-
collidesWithAtEdge
- Specified by:
collidesWithAtEdgein interfacePathConstraint
-
modifyAsNeeded
- Specified by:
modifyAsNeededin interfacePathConstraint
-
breakBlockPenalty
default double breakBlockPenalty()Description copied from interface:PathConstraintReturns the cost penalty for breaking a block during pathfinding.- Specified by:
breakBlockPenaltyin interfacePathConstraint
-
placeBlockPenalty
default double placeBlockPenalty()Description copied from interface:PathConstraintReturns the cost penalty for placing a block during pathfinding.- Specified by:
placeBlockPenaltyin interfacePathConstraint
-
expireTimeout
default int expireTimeout()Description copied from interface:PathConstraintReturns the maximum time in seconds before pathfinding gives up.- Specified by:
expireTimeoutin interfacePathConstraint
-
disablePruning
default boolean disablePruning()Description copied from interface:PathConstraintReturns whether pruning of the pathfinding search space is disabled.- Specified by:
disablePruningin interfacePathConstraint
-
delegate
PathConstraint delegate()
-