|
| 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...
|
| |
◆ 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
-
| player | the player to boost |
| vec_boost | the 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
-
| entity | the 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
-
| enchantment | the enchantment to check |
| item | the 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
-
| player | the player to check |
- Returns
- int the enchantment level of the item
The documentation for this class was generated from the following file: