2013-07-26 21:18:53 -07:00
|
|
|
package tconstruct.client;
|
|
|
|
|
|
|
|
|
|
import java.util.EnumSet;
|
|
|
|
|
|
|
|
|
|
import net.minecraft.block.Block;
|
|
|
|
|
import net.minecraft.client.Minecraft;
|
2013-12-19 08:14:59 -08:00
|
|
|
import net.minecraft.client.renderer.Tessellator;
|
2014-01-10 21:14:54 -05:00
|
|
|
import net.minecraft.init.Blocks;
|
2013-12-19 08:14:59 -08:00
|
|
|
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;
|
2013-07-26 21:18:53 -07:00
|
|
|
|
2014-01-30 04:47:45 -05:00
|
|
|
public class TClientTickHandler
|
2013-07-26 21:18:53 -07:00
|
|
|
{
|
|
|
|
|
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()
|
2013-07-26 21:18:53 -07:00
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
|
2014-01-30 04:47:45 -05:00
|
|
|
@SubscribeEvent
|
|
|
|
|
public void onTick (ClientTickEvent event)
|
2013-07-26 21:18:53 -07:00
|
|
|
{
|
2014-02-02 23:18:57 -05:00
|
|
|
|
2014-01-30 04:47:45 -05:00
|
|
|
if (event.phase.equals(Phase.END) && event.type.equals(Type.RENDER))
|
|
|
|
|
{
|
2014-02-02 22:36:22 -05:00
|
|
|
TRepo.oreBerry.func_150122_b(Blocks.leaves.field_150121_P);
|
|
|
|
|
TRepo.oreBerrySecond.func_150122_b(Blocks.leaves.field_150121_P);
|
|
|
|
|
TRepo.slimeLeaves.func_150122_b(Blocks.leaves.field_150121_P);
|
2014-01-30 04:47:45 -05:00
|
|
|
/*if (mc.thePlayer != null && !mc.thePlayer.isAirBorne)
|
|
|
|
|
controlInstance.landOnGround();*/
|
|
|
|
|
}
|
2013-07-26 21:18:53 -07:00
|
|
|
}
|
|
|
|
|
|
2014-02-02 23:18:57 -05:00
|
|
|
/* @Override
|
|
|
|
|
public EnumSet<TickType> ticks ()
|
|
|
|
|
{
|
|
|
|
|
return EnumSet.of(TickType.RENDER);
|
|
|
|
|
}
|
|
|
|
|
*/
|
2013-07-26 21:18:53 -07:00
|
|
|
}
|