private int currentPlayerItem;
@SubscribeEvent
@SideOnly(value = Side.CLIENT)
public void onClientTickEvent(TickEvent.ClientTickEvent event) {
Minecraft mc = Minecraft.getMinecraft();
if (event.phase == TickEvent.Phase.START) {
if (Minecraft.getMinecraft().thePlayer != null) {
EntityPlayer player = Minecraft.getMinecraft().thePlayer;
int i = this.mc.thePlayer.inventory.currentItem;
if (i != this.currentPlayerItem) {
this.currentPlayerItem = i;
}
}
}
}