Removed tick handler

This commit is contained in:
Aidan Brady 2013-08-05 13:25:10 -04:00
parent daa52ba109
commit dc735b7336
2 changed files with 1 additions and 31 deletions

View file

@ -168,8 +168,6 @@ public class ResonantInduction
GameRegistry.registerTileEntity(TileEntityEMContractor.class, blockEMContractor.getUnlocalizedName()); GameRegistry.registerTileEntity(TileEntityEMContractor.class, blockEMContractor.getUnlocalizedName());
GameRegistry.registerTileEntity(TileEntityBattery.class, blockBattery.getUnlocalizedName()); GameRegistry.registerTileEntity(TileEntityBattery.class, blockBattery.getUnlocalizedName());
TickRegistry.registerTickHandler(new BatteryManager(), Side.SERVER);
ResonantInduction.proxy.registerRenderers(); ResonantInduction.proxy.registerRenderers();
TabRI.ITEMSTACK = new ItemStack(blockTesla); TabRI.ITEMSTACK = new ItemStack(blockTesla);

View file

@ -1,42 +1,14 @@
package resonantinduction.battery; package resonantinduction.battery;
import java.util.EnumSet;
import net.minecraft.inventory.IInventory; import net.minecraft.inventory.IInventory;
import net.minecraft.inventory.Slot; import net.minecraft.inventory.Slot;
import net.minecraft.item.ItemStack; import net.minecraft.item.ItemStack;
import resonantinduction.api.IBattery; import resonantinduction.api.IBattery;
import cpw.mods.fml.common.ITickHandler;
import cpw.mods.fml.common.TickType;
public class BatteryManager implements ITickHandler public class BatteryManager
{ {
public static final int CELLS_PER_BATTERY = 16; public static final int CELLS_PER_BATTERY = 16;
@Override
public void tickStart(EnumSet<TickType> type, Object... tickData)
{
}
@Override
public void tickEnd(EnumSet<TickType> type, Object... tickData)
{
}
@Override
public EnumSet<TickType> ticks()
{
return EnumSet.of(TickType.WORLD);
}
@Override
public String getLabel()
{
return "BatteryMultiblockManager";
}
public static class SlotOut extends Slot public static class SlotOut extends Slot
{ {
public SlotOut(IInventory inventory, int index, int x, int y) public SlotOut(IInventory inventory, int index, int x, int y)