mirror of
https://github.com/GTNewHorizons/TinkersConstruct.git
synced 2026-11-13 17:04:24 +00:00
46 lines
1.2 KiB
Java
46 lines
1.2 KiB
Java
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 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<TickType> type, Object... tickData)
|
|
{
|
|
TContent.oreBerry.setGraphicsLevel(Block.leaves.graphicsLevel);
|
|
TContent.oreBerrySecond.setGraphicsLevel(Block.leaves.graphicsLevel);
|
|
TContent.slimeLeaves.setGraphicsLevel(Block.leaves.graphicsLevel);
|
|
/*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;
|
|
}
|
|
}
|