Class PathConstraint

java.lang.Object
com.soulfiremc.server.pathfinding.graph.PathConstraint

public class PathConstraint extends Object
  • Constructor Details

    • PathConstraint

      public PathConstraint(BotConnection botConnection)
    • 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

      public boolean canBreakBlockPos(SFVec3i pos)
    • canPlaceBlockPos

      public boolean canPlaceBlockPos(SFVec3i pos)
    • canBreakBlock

      public boolean canBreakBlock(net.minecraft.world.level.block.Block blockType)
    • collidesWithAtEdge

      public boolean collidesWithAtEdge(DiagonalCollisionCalculator.CollisionData collisionData)
    • modifyAsNeeded

      public GraphInstructions modifyAsNeeded(GraphInstructions instruction)