Class EntityHelper

java.lang.Object
com.stereowalker.unionlib.util.EntityHelper

public class EntityHelper extends Object
  • Constructor Details

    • EntityHelper

      public EntityHelper()
  • Method Details

    • getXpBarCap

      public static int getXpBarCap(int level)
      should from Player. Added because it doesn't allow to specify which level
      Parameters:
      level -
      Returns:
    • getActualExperienceTotal

      public static int getActualExperienceTotal(net.minecraft.world.entity.player.Player player)
      should from Player. Added because Player.experienceLevel doesn't return the actual value when just the players levels are deducted
      Parameters:
      player -
      Returns:
      The actual total experience of the player
    • getJumpUpwardsMotion

      public static float getJumpUpwardsMotion(net.minecraft.world.entity.LivingEntity living)
      should from LivingEntity. Added because the AT cannot transform this
      Parameters:
      living - the entity in question
      Returns:
    • getJumpFactor

      protected static float getJumpFactor(net.minecraft.world.entity.Entity entity)
    • getPositionUnderneath

      protected static net.minecraft.core.BlockPos getPositionUnderneath(net.minecraft.world.entity.Entity entity)
    • mayFly

      public static boolean mayFly(net.minecraft.world.entity.player.Player player)