Package com.lightning.northstar.planet
Class ZeroGravityUtils
java.lang.Object
com.lightning.northstar.planet.ZeroGravityUtils
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanshouldApplyKnockback(@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.
-
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
-