public class EnergySystem
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.util.LinkedList<net.minecraft.util.math.BlockPos> |
POSITIONS |
Constructor and Description |
---|
EnergySystem() |
Modifier and Type | Method and Description |
---|---|
static int |
discoverFurther(net.minecraft.world.World world,
net.minecraft.util.math.BlockPos pos,
net.minecraft.util.math.BlockPos last,
int extract,
int depth)
Discover a pipe network with a certain depth
|
static int |
findEnergyFromSouroundings(net.minecraft.world.World world,
net.minecraft.util.math.BlockPos pos,
int extract)
Finds the nearest energy source to a specific position and extracts as much energy as needed or possible
|
static void |
onWorldTick(net.minecraftforge.event.TickEvent.WorldTickEvent event) |
static int |
pullEnergyFromNetwork(net.minecraft.world.World world,
net.minecraft.util.math.BlockPos pos,
int extract,
int depth)
Pulls energy from the network
|
public static final java.util.LinkedList<net.minecraft.util.math.BlockPos> POSITIONS
public static void onWorldTick(net.minecraftforge.event.TickEvent.WorldTickEvent event)
public static int pullEnergyFromNetwork(net.minecraft.world.World world, net.minecraft.util.math.BlockPos pos, int extract, int depth)
public static int discoverFurther(net.minecraft.world.World world, net.minecraft.util.math.BlockPos pos, net.minecraft.util.math.BlockPos last, int extract, int depth)
public static int findEnergyFromSouroundings(net.minecraft.world.World world, net.minecraft.util.math.BlockPos pos, int extract)