Class PathConstraint
java.lang.Object
com.soulfiremc.server.pathfinding.graph.PathConstraint
-
Constructor Summary
ConstructorsConstructorDescriptionPathConstraint
(BotConnection botConnection) PathConstraint
(net.minecraft.client.player.LocalPlayer entity, net.minecraft.world.level.LevelHeightAccessor levelHeightAccessor) -
Method Summary
Modifier and TypeMethodDescriptionboolean
canBreakBlock
(net.minecraft.world.level.block.Block blockType) boolean
canBreakBlockPos
(SFVec3i pos) boolean
canPlaceBlockPos
(SFVec3i pos) boolean
collidesWithAtEdge
(DiagonalCollisionCalculator.CollisionData collisionData) boolean
boolean
isOutOfLevel
(net.minecraft.world.level.block.state.BlockState blockState, SFVec3i pos) boolean
isPlaceable
(net.minecraft.world.item.ItemStack item) boolean
isTool
(net.minecraft.world.item.ItemStack item) modifyAsNeeded
(GraphInstructions instruction)
-
Constructor Details
-
PathConstraint
-
PathConstraint
public PathConstraint(net.minecraft.client.player.LocalPlayer entity, net.minecraft.world.level.LevelHeightAccessor levelHeightAccessor)
-
-
Method Details
-
doUsableBlocksDecreaseWhenPlaced
public boolean doUsableBlocksDecreaseWhenPlaced() -
isPlaceable
public boolean isPlaceable(net.minecraft.world.item.ItemStack item) -
isTool
public boolean isTool(net.minecraft.world.item.ItemStack item) -
isOutOfLevel
public boolean isOutOfLevel(net.minecraft.world.level.block.state.BlockState blockState, SFVec3i pos) -
canBreakBlockPos
-
canPlaceBlockPos
-
canBreakBlock
public boolean canBreakBlock(net.minecraft.world.level.block.Block blockType) -
collidesWithAtEdge
-
modifyAsNeeded
-