Class AutoShaftRouting
java.lang.Object
petrolpark.mc.petrolsparts.content.kinetics.cornerShaft.AutoShaftRouting
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic final List<net.createmod.catnip.data.Pair<net.minecraft.core.BlockPos, net.minecraft.world.level.block.state.BlockState>> getBlockStatesForPath(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, net.createmod.catnip.math.BlockFace start, net.createmod.catnip.math.BlockFace goal) A* with heuristic to minimize bendsstatic final petrolpark.mc.petrolsparts.content.kinetics.cornerShaft.AutoShaftRouting.Costheuristic(net.createmod.catnip.math.BlockFace current, net.createmod.catnip.math.BlockFace goal)
-
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, 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(petrolpark.mc.petrolsparts.content.kinetics.cornerShaft.AutoShaftRouting.Node goal)
-