Files
TinkersConstruct/src/main/java/tconstruct/client/TClientTickHandler.java
T

45 lines
1.2 KiB
Java
Raw Normal View History

package tconstruct.client;
import java.util.EnumSet;
import net.minecraft.block.Block;
import net.minecraft.client.Minecraft;
import net.minecraft.client.renderer.Tessellator;
2013-07-28 19:56:01 -07:00
import net.minecraft.util.ResourceLocation;
2013-11-14 14:26:37 -08:00
import tconstruct.TConstruct;
2013-07-28 19:56:01 -07:00
import tconstruct.common.TContent;
import cpw.mods.fml.common.ITickHandler;
import cpw.mods.fml.common.TickType;
public class TClientTickHandler implements ITickHandler
{
Minecraft mc = Minecraft.getMinecraft();
2013-11-14 14:26:37 -08:00
//TControls controlInstance = ((TProxyClient)TConstruct.proxy).controlInstance;
2013-08-31 05:13:31 -07:00
@Override
public void tickEnd (EnumSet<TickType> type, Object... tickData)
{
TContent.oreBerry.setGraphicsLevel(Block.leaves.graphicsLevel);
TContent.oreBerrySecond.setGraphicsLevel(Block.leaves.graphicsLevel);
2013-08-11 10:33:07 -07:00
TContent.slimeLeaves.setGraphicsLevel(Block.leaves.graphicsLevel);
2013-11-14 14:26:37 -08:00
/*if (mc.thePlayer != null && !mc.thePlayer.isAirBorne)
controlInstance.landOnGround();*/
}
@Override
public EnumSet<TickType> ticks ()
{
return EnumSet.of(TickType.RENDER);
}
@Override
public void tickStart (EnumSet<TickType> type, Object... tickData)
{
}
@Override
public String getLabel ()
{
return null;
}
}