=null){ItemStackstack=event.getEntityPlayer().getHeldItemMainhand();if(stack.getItem()!=null&&(stack.getItem().canHarvestBlock(Blocks.STONE.getDefaultState())||stack.getItem().getTranslationKey().contains("pickaxe"))){booleansilkTouch=EnchantmentHelper.get...
ready = statue.getCrackAmount() > 9; event.getTarget().setDead(); if (silkTouch) { ItemStack statuette = new ItemStack(ModItems.stone_statue); statuette.setTagCompound(new NBTTagCompound()); statuette.getTagCompound().setBoolean("IAFStoneStatueEntityPlayer", stonePlayer); statuette.getTagCom...
event.getTarget().hitByEntity(event.getEntity())&&event.getTarget()instanceofEntityLivingBase&&event.getTarget().hurtResistantTime<=0){EntityLivingBaseattacker=event.getEntityLiving();EntityLivingBasetarget=(EntityLivingBase)event.getTarget();if(attacker.getHeldItemMainhand...
包路径:net.minecraftforge.event.entity.player.AttackEntityEvent类名称:AttackEntityEvent AttackEntityEvent介绍 暂无 代码示例 代码示例来源:origin: Vazkii/Botania @SubscribeEvent public void attackEntity(AttackEntityEvent evt) { if (!evt.getEntityPlayer().world.isRemote) { trySpawnBurst(evt.getEntity...