예제 #1
0
  @Override
  protected void bj() {
    motY = 0.46D * ConfigEntries.GUARD_JUMP_MULTIPLIER.<Double>getValue();
    if (hasEffect(MobEffectList.JUMP)) {
      motY += (getEffect(MobEffectList.JUMP).getAmplifier() + 1) * 0.1F;
    }
    if (isSprinting()) {
      float f = yaw * 0.01745329F;

      motX -= MathHelper.sin(f) * 0.2F;
      motZ += MathHelper.cos(f) * 0.2F;
    }
    al = true;
  }