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 TypeMethodDescriptionbooleancanBreakBlock(net.minecraft.world.level.block.Block blockType) booleancanBreakBlockPos(SFVec3i pos) booleancanPlaceBlockPos(SFVec3i pos) booleancollidesWithAtEdge(DiagonalCollisionCalculator.CollisionData collisionData) booleanbooleanisOutOfLevel(net.minecraft.world.level.block.state.BlockState blockState, SFVec3i pos) booleanisPlaceable(net.minecraft.world.item.ItemStack item) booleanisTool(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
-