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

47 lines
1.4 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;
2014-01-10 21:14:54 -05:00
import net.minecraft.init.Blocks;
import net.minecraft.util.ResourceLocation;
import tconstruct.TConstruct;
import tconstruct.common.TContent;
2013-11-29 23:16:32 -05:00
import tconstruct.common.TRepo;
2014-01-30 04:47:45 -05:00
import cpw.mods.fml.common.eventhandler.SubscribeEvent;
import cpw.mods.fml.common.gameevent.TickEvent.ClientTickEvent;
import cpw.mods.fml.common.gameevent.TickEvent.Phase;
import cpw.mods.fml.common.gameevent.TickEvent.Type;
2014-01-30 04:47:45 -05:00
public class TClientTickHandler
{
Minecraft mc = Minecraft.getMinecraft();
2013-08-31 05:13:31 -07:00
2014-01-30 04:47:45 -05:00
//TControls controlInstance = ((TProxyClient)TConstruct.proxy).controlInstance;
public TClientTickHandler()
{
}
2014-01-30 04:47:45 -05:00
@SubscribeEvent
public void onTick (ClientTickEvent event)
{
2014-01-30 04:47:45 -05:00
if (event.phase.equals(Phase.END) && event.type.equals(Type.RENDER))
{
TRepo.oreBerry.setGraphicsLevel(Blocks.leaves.graphicsLevel);
TRepo.oreBerrySecond.setGraphicsLevel(Blocks.leaves.graphicsLevel);
TRepo.slimeLeaves.setGraphicsLevel(Blocks.leaves.graphicsLevel);
/*if (mc.thePlayer != null && !mc.thePlayer.isAirBorne)
controlInstance.landOnGround();*/
}
}
2014-01-30 04:47:45 -05:00
/* @Override
public EnumSet<TickType> ticks ()
{
2014-01-30 04:47:45 -05:00
return EnumSet.of(TickType.RENDER);
}
2014-01-30 04:47:45 -05:00
*/
}