Cleaned things

This commit is contained in:
GotoLink 2013-11-29 17:08:45 +01:00
commit de274b87b5
15 changed files with 25 additions and 87 deletions

View file

@ -16,13 +16,8 @@ import cpw.mods.fml.common.IScheduledTickHandler;
import cpw.mods.fml.common.TickType;
public class TickHandler implements IScheduledTickHandler {
private EnumSet ticks;
public static final Enchantment[] enchantmentsPick = { Enchantment.efficiency, Enchantment.fortune, Enchantment.silkTouch, Enchantment.unbreaking };
public TickHandler() {
this.ticks = EnumSet.of(TickType.PLAYER);
}
@Override
public String getLabel() {
return "mystic world tick";
@ -35,14 +30,11 @@ public class TickHandler implements IScheduledTickHandler {
@Override
public void tickEnd(EnumSet<TickType> type, Object... tickData) {
EntityPlayer player = (EntityPlayer) tickData[0];
World world = player.worldObj;
InventoryPlayer inventory = player.inventory;
}
@Override
public EnumSet ticks() {
return this.ticks;
public EnumSet<TickType> ticks() {
return EnumSet.of(TickType.PLAYER);
}
@Override