package tconstruct.client; import java.util.EnumSet; import net.minecraft.block.Block; import net.minecraft.client.Minecraft; import net.minecraft.client.renderer.Tessellator; import net.minecraft.util.ResourceLocation; import tconstruct.TConstruct; import tconstruct.common.TContent; import tconstruct.common.TRepo; import cpw.mods.fml.common.ITickHandler; import cpw.mods.fml.common.TickType; public class TClientTickHandler implements ITickHandler { Minecraft mc = Minecraft.getMinecraft(); //TControls controlInstance = ((TProxyClient)TConstruct.proxy).controlInstance; @Override public void tickEnd (EnumSet type, Object... tickData) { TRepo.oreBerry.setGraphicsLevel(Block.leaves.graphicsLevel); TRepo.oreBerrySecond.setGraphicsLevel(Block.leaves.graphicsLevel); TRepo.slimeLeaves.setGraphicsLevel(Block.leaves.graphicsLevel); /*if (mc.thePlayer != null && !mc.thePlayer.isAirBorne) controlInstance.landOnGround();*/ } @Override public EnumSet ticks () { return EnumSet.of(TickType.RENDER); } @Override public void tickStart (EnumSet type, Object... tickData) { } @Override public String getLabel () { return null; } }