Package com.stereowalker.unionlib.util
Class EntityHelper
java.lang.Object
com.stereowalker.unionlib.util.EntityHelper
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic intgetActualExperienceTotal(net.minecraft.world.entity.player.Player player) should fromPlayer.protected static floatgetJumpFactor(net.minecraft.world.entity.Entity entity) static floatgetJumpUpwardsMotion(net.minecraft.world.entity.LivingEntity living) should fromLivingEntity.protected static net.minecraft.core.BlockPosgetPositionUnderneath(net.minecraft.world.entity.Entity entity) static intgetXpBarCap(int level) should fromPlayer.static booleanmayFly(net.minecraft.world.entity.player.Player player)
-
Constructor Details
-
EntityHelper
public EntityHelper()
-
-
Method Details
-
getXpBarCap
public static int getXpBarCap(int level) should fromPlayer. 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 fromPlayer. Added becausePlayer.experienceLeveldoesn'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 fromLivingEntity. 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)
-