Potion potion = potioneffect.getPotion();if(!potion.shouldRenderHUD(potioneffect))continue;// Rebind in case previous renderHUDEffect changed texturethis.mc.getTextureManager().bindTexture(GuiContainer.INVENTORY_BACKGROUND);if(potioneffect.doesShowParticles()) {intk = resolution.getScaledWidth();int...
代码示例来源:origin: Zyin055/zyinhud String potionEffectName = potionEffect.getEffectName(); String potionEffectName = potionEffect.getEffectName(); 代码示例来源:origin: SquidDev-CC/plethora potionEffects.put(count++, effect.getEffectName()); 代码示例来源:origin: CoFH/CoFHCore } else { for ...
Source File: PotionCannon.java From Sakura_mod with MIT License 5 votes @SubscribeEvent public void onAttacking(ArrowLooseEvent event) { EntityPlayer player = event.getEntityPlayer(); if(player.isPotionActive(this)){ event.setCharge(event.getCharge()+player.getActivePotionEffect(this).get...
The Potion Bears mod, as the name implies, implements special potion bears into the game and each one of these bears will give you the effect of their respective potion. The bears have to be crafted before they can be used but, fortunately, crafting them isn’t that big of an issue bec...
示例1: applyPotionEffect ▲点赞 3▼ importnet.minecraft.potion.PotionEffect;//导入方法依赖的package包/类publicstaticvoidapplyPotionEffect(EntityLivingBase entitylivingbase, ShotPotion pot){if(entitylivingbase ==null) {return; }// Not a valid entity, for some reasonif(pot ==null) {return; }...