Class ZeroGravityUtils

java.lang.Object
com.lightning.northstar.planet.ZeroGravityUtils

@ParametersAreNonnullByDefault public class ZeroGravityUtils extends Object
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static boolean
    shouldApplyKnockback(@Nullable net.minecraft.world.entity.Entity attacker, net.minecraft.world.entity.Entity attacked, double strength)
    Applies custom knockback in zero gravity dimensions by replacing the vertical velocity with a projectile like velocity following the attacker's facing.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • ZeroGravityUtils

      public ZeroGravityUtils()
  • Method Details

    • shouldApplyKnockback

      public static boolean shouldApplyKnockback(@Nullable @Nullable net.minecraft.world.entity.Entity attacker, net.minecraft.world.entity.Entity attacked, double strength)
      Applies custom knockback in zero gravity dimensions by replacing the vertical velocity with a projectile like velocity following the attacker's facing. Orbital tennis when?
      Returns:
      if no knockback has been applied and vanilla knockback should be applied instead