@SubscribeEvent public void renderPlayerSetArmour(SetArmorModel event) { if (EtFuturum.enableTransparentAmour) { OpenGLHelper.enableBlend(); OpenGLHelper.blendFunc(GL11.GL_SRC_ALPHA, GL11.GL_ONE_MINUS_SRC_ALPHA); } }
@SubscribeEvent public void onArmorEvent(SetArmorModel event) { if (!event.entity.worldObj.isRemote && event.entity instanceof EntityPlayer && DragonPlayer.get((EntityPlayer) event.entity).isDragon()) { EntityPlayer player = (EntityPlayer) event.entity; if (player.isInvisible()) event.result = -1; } }