java.lang.Object
petrolpark.mc.petrolsparts.content.kinetics.cornerShaft.AutoShaftRouting

public class AutoShaftRouting extends Object
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static final List<net.createmod.catnip.data.Pair<net.minecraft.core.BlockPos,net.minecraft.world.level.block.state.BlockState>>
    getBlockStatesForPath(CornerShaftSet set, petrolpark.mc.petrolsparts.content.kinetics.cornerShaft.AutoShaftRouting.Node goal)
     
    static final List<net.createmod.catnip.math.BlockFace>
    getNeighbours(net.minecraft.world.level.Level level, net.createmod.catnip.math.BlockFace start, net.createmod.catnip.math.BlockFace current)
     
    static final List<net.createmod.catnip.data.Pair<net.minecraft.core.BlockPos,net.minecraft.world.level.block.state.BlockState>>
    getPath(net.minecraft.world.level.Level level, CornerShaftSet set, net.createmod.catnip.math.BlockFace start, net.createmod.catnip.math.BlockFace goal)
    A* with heuristic to minimize bends
    static final petrolpark.mc.petrolsparts.content.kinetics.cornerShaft.AutoShaftRouting.Cost
    heuristic(net.createmod.catnip.math.BlockFace current, net.createmod.catnip.math.BlockFace goal)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • AutoShaftRouting

      public AutoShaftRouting()
  • Method Details

    • getPath

      public static final List<net.createmod.catnip.data.Pair<net.minecraft.core.BlockPos,net.minecraft.world.level.block.state.BlockState>> getPath(net.minecraft.world.level.Level level, CornerShaftSet set, net.createmod.catnip.math.BlockFace start, net.createmod.catnip.math.BlockFace goal)
      A* with heuristic to minimize bends
      Parameters:
      start -
      goal -
    • getNeighbours

      public static final List<net.createmod.catnip.math.BlockFace> getNeighbours(net.minecraft.world.level.Level level, net.createmod.catnip.math.BlockFace start, net.createmod.catnip.math.BlockFace current)
    • heuristic

      public static final petrolpark.mc.petrolsparts.content.kinetics.cornerShaft.AutoShaftRouting.Cost heuristic(net.createmod.catnip.math.BlockFace current, net.createmod.catnip.math.BlockFace goal)
    • getBlockStatesForPath

      public static final List<net.createmod.catnip.data.Pair<net.minecraft.core.BlockPos,net.minecraft.world.level.block.state.BlockState>> getBlockStatesForPath(CornerShaftSet set, petrolpark.mc.petrolsparts.content.kinetics.cornerShaft.AutoShaftRouting.Node goal)