EvenBetterArcheology unspecified
Loading...
Searching...
No Matches
Static Public Member Functions | List of all members
de.sakurajin.evenbetterarcheology.util.EnchantmentHelper Class Reference

Static Public Member Functions

static int getSoaringWindsLevel (PlayerEntity player)
 Checks if the given player has an Item with soaring winds equipped and returns the enchantment level. More...
 
static int getPenetratingStrikeLevel (LivingEntity entity)
 This function returns the level of the penetrating strike enchantment of the player. More...
 
static int getSafeEnchantLevel (Enchantment enchantment, ItemStack item)
 Returns the enchantment level of an item, or 0 if the item has no enchantments. More...
 
static void applyElytraBoost (PlayerEntity player, Vec3d vec_boost)
 Applies a boost to a given flying player. More...
 

Member Function Documentation

◆ applyElytraBoost()

static void de.sakurajin.evenbetterarcheology.util.EnchantmentHelper.applyElytraBoost ( PlayerEntity  player,
Vec3d  vec_boost 
)
static

Applies a boost to a given flying player.

The boost vector is first multiplied with the rotation vector component wise and then added to the velocity vector. This boosts the current velocity in the direction of the boost vector.

Parameters
playerthe player to boost
vec_boostthe boost vector

◆ getPenetratingStrikeLevel()

static int de.sakurajin.evenbetterarcheology.util.EnchantmentHelper.getPenetratingStrikeLevel ( LivingEntity  entity)
static

This function returns the level of the penetrating strike enchantment of the player.

It checks both hands and returns the first level it finds. If no level is found it returns 0

Parameters
entitythe entity to check
Returns
int the level of the penetrating strike enchantment

◆ getSafeEnchantLevel()

static int de.sakurajin.evenbetterarcheology.util.EnchantmentHelper.getSafeEnchantLevel ( Enchantment  enchantment,
ItemStack  item 
)
static

Returns the enchantment level of an item, or 0 if the item has no enchantments.

Parameters
enchantmentthe enchantment to check
itemthe item to check
Returns
int the enchantment level of the item

◆ getSoaringWindsLevel()

static int de.sakurajin.evenbetterarcheology.util.EnchantmentHelper.getSoaringWindsLevel ( PlayerEntity  player)
static

Checks if the given player has an Item with soaring winds equipped and returns the enchantment level.

Parameters
playerthe player to check
Returns
int the enchantment level of the item

The documentation for this class was generated from the following file: