本文整理匯總了Java中net.minecraftforge.client.event.RenderPlayerEvent.SetArmorModel類的典型用法代碼示例。如果您正苦於以下問題:Java SetArmorModel類的具體用法?Java SetArmorModel怎麽用?Java SetArmorModel使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。
SetArmorModel類屬於net.minecraftforge.client.event.RenderPlayerEvent包,在下文中一共展示了SetArmorModel類的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: renderPlayerSetArmour
import net.minecraftforge.client.event.RenderPlayerEvent.SetArmorModel; //導入依賴的package包/類
@SubscribeEvent
public void renderPlayerSetArmour(SetArmorModel event) {
if (EtFuturum.enableTransparentAmour) {
OpenGLHelper.enableBlend();
OpenGLHelper.blendFunc(GL11.GL_SRC_ALPHA, GL11.GL_ONE_MINUS_SRC_ALPHA);
}
}
示例2: onArmorEvent
import net.minecraftforge.client.event.RenderPlayerEvent.SetArmorModel; //導入依賴的package包/類
@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;
}
}