@SubscribeEvent public void onEntityJump(LivingJumpEvent e) { if (e.getEntity().getEntityWorld().getBlockState(new BlockPos((int) Math.floor(e.getEntity().posX), (int) Math.floor(e.getEntity().posY) - 1, (int) Math.floor(e.getEntity().posZ))).getBlock() == this) e.getEntityLiving().motionY = 0D; } }
@SubscribeEvent public void toggleDrillDash(LivingEvent.LivingJumpEvent event) { if (!(event.getEntityLiving() instanceof EntityPlayer)) { return; EntityPlayer player = (EntityPlayer) event.getEntityLiving(); ItemStack equipped = player.getHeldItemMainhand(); if (equipped == null || !player.isSneaking()) {
@SubscribeEvent public static void onJumpEvent(LivingEvent.LivingJumpEvent event) { if (event.getEntityLiving() instanceof EntityPlayer) { EntityPlayer player = (EntityPlayer) event.getEntityLiving(); if (LivingArmour.hasFullSet(player)) { ItemStack chestStack = player.getItemStackFromSlot(EntityEquipmentSlot.CHEST); LivingArmour armour = ItemLivingArmour.getLivingArmour(chestStack); if (armour != null) { StatTrackerJump.incrementCounter(armour); if (!player.isSneaking()) { LivingArmourUpgrade upgrade = ItemLivingArmour.getUpgradeFromNBT(BloodMagic.MODID + ".upgrade.jump", chestStack); if (upgrade instanceof LivingArmourUpgradeJump) { player.motionY += ((LivingArmourUpgradeJump) upgrade).getJumpModifier(); } } } } } }
@SubscribeEvent public void onPlayerJump(LivingEvent.LivingJumpEvent event) { if(event.getEntityLiving() instanceof EntityPlayer) { EntityPlayer player = (EntityPlayer) event.getEntityLiving(); if(ItemStackHelpers.hasPlayerItem(player, this)) { player.motionY += JUMP_HEIGHT_FACTOR; } } }
@SubscribeEvent public void onEntityJump(LivingJumpEvent e) { if (e.getEntityLiving() instanceof EntityPlayer) { ItemStack is = ((EntityPlayer) e.getEntityLiving()).inventory.armorInventory.get(0); if (!is.isEmpty() && is.getItem() == this && !e.getEntityLiving().isSneaking()) e.getEntityLiving().motionY += 0.4D; } } }
@SubscribeEvent public void onEntityJump(LivingEvent.LivingJumpEvent event) { if (event.getEntityLiving() instanceof EntityPlayer) { AndroidPlayer androidPlayer = MOPlayerCapabilityProvider.GetAndroidCapability(event.getEntityLiving()); if (androidPlayer != null && androidPlayer.isAndroid()) { androidPlayer.onEntityJump(event); androidPlayer.triggerEventOnStats(event); } } }
@SubscribeEvent public static void onEntityJump(LivingJumpEvent event) { if(event.getEntityLiving() instanceof EntityPlayer && event.getEntity().world.isRemote) { EntityPlayer player = (EntityPlayer) event.getEntityLiving(); PsiArmorEvent.post(new PsiArmorEvent(player, PsiArmorEvent.JUMP)); NetworkHandler.INSTANCE.sendToServer(new MessageTriggerJumpSpell()); } }
@SubscribeEvent public void onJump(LivingEvent.LivingJumpEvent evt) { if (evt.getEntityLiving() instanceof EntityPlayer && evt.getEntityLiving().getEntityWorld().isRemote) { lastJumpTracker.put(evt.getEntityLiving().getEntityId(), evt.getEntityLiving().getEntityWorld().getTotalWorldTime()); } }
@SubscribeEvent public static void onLivingJumpEvent(LivingEvent.LivingJumpEvent event) { if (event.getEntityLiving().isPotionActive(RegistrarBloodMagic.BOOST)) { int i = event.getEntityLiving().getActivePotionEffect(RegistrarBloodMagic.BOOST).getAmplifier(); event.getEntityLiving().motionY += (0.1f) * (2 + i); } // if (event.getEntityLiving().isPotionActive(ModPotions.heavyHeart)) { // event.getEntityLiving().motionY = 0; // } }
@SubscribeEvent public void jump(LivingEvent.LivingJumpEvent event) { EntityLivingBase entity = event.getEntityLiving(); if (!entity.isPotionActive(this)) return; PotionEffect effect = entity.getActivePotionEffect(this); if (effect == null) return; entity.motionY = effect.getAmplifier() / 3.0; }
@SubscribeEvent public void onPlayerJump(LivingJumpEvent event) { if(event.getEntityLiving() instanceof EntityPlayer) { EntityPlayer player = (EntityPlayer) event.getEntityLiving(); ItemStack belt = BaublesApi.getBaublesHandler(player).getStackInSlot(3); if(!belt.isEmpty() && belt.getItem() instanceof ItemTravelBelt && ManaItemHandler.requestManaExact(belt, player, COST, false)) { player.motionY += ((ItemTravelBelt) belt.getItem()).jump; player.fallDistance = -((ItemTravelBelt) belt.getItem()).fallBuffer; } } }