public class MjAPILegacy extends java.lang.Object implements IPowerReceptor
| Modifier | Constructor and Description |
|---|---|
protected |
MjAPILegacy(net.minecraft.world.World world,
MjAPI.BatteryObject battery,
PowerHandler.Type type) |
| Modifier and Type | Method and Description |
|---|---|
void |
doWork(PowerHandler workProvider)
Call back from the PowerHandler that is called when the stored power
exceeds the activation power.
|
static MjAPILegacy |
from(net.minecraft.tileentity.TileEntity tileEntity,
PowerHandler.Type type) |
static MjAPILegacy |
from(net.minecraft.world.World world,
MjAPI.BatteryObject battery,
PowerHandler.Type type) |
static MjAPILegacy |
from(net.minecraft.world.World world,
java.lang.Object object,
PowerHandler.Type type) |
PowerHandler.PowerReceiver |
getPowerReceiver(net.minecraftforge.common.util.ForgeDirection side)
Get the PowerReceiver for this side of the block.
|
net.minecraft.world.World |
getWorld() |
protected MjAPILegacy(net.minecraft.world.World world,
MjAPI.BatteryObject battery,
PowerHandler.Type type)
public static MjAPILegacy from(net.minecraft.world.World world, MjAPI.BatteryObject battery, PowerHandler.Type type)
public static MjAPILegacy from(net.minecraft.world.World world, java.lang.Object object, PowerHandler.Type type)
public static MjAPILegacy from(net.minecraft.tileentity.TileEntity tileEntity, PowerHandler.Type type)
public PowerHandler.PowerReceiver getPowerReceiver(net.minecraftforge.common.util.ForgeDirection side)
IPowerReceptorgetPowerReceiver in interface IPowerReceptorpublic void doWork(PowerHandler workProvider)
IPowerReceptordoWork in interface IPowerReceptorpublic net.minecraft.world.World getWorld()
getWorld in interface IPowerReceptor