예제 #1
0
 @Override
 public double getFasterMovementAmplifier(final Player player) {
   final net.minecraft.server.EntityPlayer mcPlayer = ((CraftPlayer) player).getHandle();
   if (mcPlayer.hasEffect(MobEffectList.FASTER_MOVEMENT))
     return mcPlayer.getEffect(MobEffectList.FASTER_MOVEMENT).getAmplifier();
   else return Double.NEGATIVE_INFINITY;
 }
예제 #2
0
  @Override
  public double getJumpAmplifier(final Player player) {
    final net.minecraft.server.EntityPlayer mcPlayer = ((CraftPlayer) player).getHandle();

    if (mcPlayer.hasEffect(MobEffectList.JUMP))
      return mcPlayer.getEffect(MobEffectList.JUMP).getAmplifier();
    else return Double.NEGATIVE_INFINITY;
  }