Java 类net.minecraftforge.client.event.RenderPlayerEvent.SetArmorModel 实例源码

项目:connor41-etfuturum2    文件:ClientEventHandler.java   
@SubscribeEvent
public void renderPlayerSetArmour(SetArmorModel event) {
    if (EtFuturum.enableTransparentAmour) {
        OpenGLHelper.enableBlend();
        OpenGLHelper.blendFunc(GL11.GL_SRC_ALPHA, GL11.GL_ONE_MINUS_SRC_ALPHA);
    }
}
项目:Coding    文件:DragonPlayerEventHandler.java   
@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;
    }
}
项目:Et-Futurum    文件:ClientEventHandler.java   
@SubscribeEvent
public void renderPlayerSetArmour(SetArmorModel event) {
    if (EtFuturum.enableTransparentAmour) {
        OpenGLHelper.enableBlend();
        OpenGLHelper.blendFunc(GL11.GL_SRC_ALPHA, GL11.GL_ONE_MINUS_SRC_ALPHA);
    }
}