包路径:net.minecraft.entity.EntityLivingBase类名称:EntityLivingBase方法名:removePotionEffect EntityLivingBase.removePotionEffect介绍 暂无 代码示例 代码示例来源:origin: Vazkii/Botania @Override public void onUnequipped(ItemStack stack, EntityLivingBase player) { PotionEffect effect = player.getActivePotion...
importnet.minecraft.world.WorldServer;//导入方法依赖的package包/类@Overridepublicvoidexecute(MinecraftServer server, ICommandSender sender, String[] args)throwsCommandException{if(args.length <=0) { ChatTools.addChatMessage(sender,newTextComponentString(TextFormatting.RED +"Use 'all', 'passive', 'ho...
if(living.isPotionActive(MobEffects.POISON)){ living.removeActivePotionEffect(MobEffects.POISON); super.damageCharm(living,stack); } if(living.isPotionActive(MobEffects.WITHER)){ living.removeActivePotionEffect(MobEffects.WITHER); super.damageCharm(living,stack); } } 代码示例来源:origin: PrinceOfA...