player.addPotionEffect(newPotionEffect(Potion.regeneration.id,600,4)); player.addPotionEffect(newPotionEffect(Potion.resistance.id,6000,0)); player.addPotionEffect(newPotionEffect(Potion.fireResistance.id,6000,0)); } }else{super.onFoodEaten(stack, worldIn, player); } } 開發者ID:Notoh,...
p.addPotionEffect(PotionEffectType.SPEED.createEffect(Integer.MAX_VALUE,1)); p.addPotionEffect(PotionEffectType.INCREASE_DAMAGE.createEffect(Integer.MAX_VALUE,1)); p.addPotionEffect(PotionEffectType.DAMAGE_RESISTANCE.createEffect(Integer.MAX_VALUE,1)); p.addPotionEffect(PotionEffectType.JUMP.createE...
本文整理了Java中net.minecraft.entity.player.EntityPlayer.addPotionEffect()方法的一些代码示例,展示了EntityPlayer.addPotionEffect()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。EntityPlayer.addPotionEffect()方法...
0452-Add-HiddenPotionEffect-API.patch 0453-Add-PlayerShieldDisableEvent.patch 0454-Return-null-for-empty-String-in-NamespacedKey.fromSt.patch 0455-Add-BlockStateMeta-clearBlockState.patch 0456-Expose-LootTable-of-DecoratedPot.patch 0457-Add-ShulkerDuplicateEvent.patch 0458-Add-api-for-spawn-egg-te...
方法名:addPotionEffect EntityLiving.addPotionEffect介绍 暂无 代码示例 代码示例来源:origin: Vazkii/Botania entity.addPotionEffect(newPotionEffect(MobEffects.FIRE_RESISTANCE,600,0)); floatrange=6F; entity.setPosition(posX+0.5+Math.random()*range-range/2,posY-1,posZ+0.5+Math.random()*range-range...
entity.addPotionEffect(newPotionEffect(MobEffects.REGENERATION,50, numChanges,false,true)); } } 开发者ID:talandar,项目名称:ProgressiveDifficulty,代码行数:9,代码来源:AddRegenerationModifier.java net.minecraft.entity.EntityLiving;@OverridepublichandleUpkeepEvent(int{ ...