public class EnchantmentUtils
extends java.lang.Object
| Constructor and Description |
|---|
EnchantmentUtils() |
| Modifier and Type | Method and Description |
|---|---|
static void |
addAllBooks(net.minecraft.enchantment.Enchantment enchantment,
java.util.List<net.minecraft.item.ItemStack> items) |
static void |
addPlayerXP(net.minecraft.entity.player.PlayerEntity player,
int amount) |
static float |
getEnchantPower(net.minecraft.world.World world,
net.minecraft.util.math.BlockPos pos) |
static int |
getExperienceForLevel(int level) |
static int |
getLevelForExperience(int targetXp) |
static int |
getPlayerXP(net.minecraft.entity.player.PlayerEntity player)
Be warned, minecraft doesn't update experienceTotal properly, so we have
to do this.
|
static float |
getPower(net.minecraft.world.World world,
net.minecraft.util.math.BlockPos position) |
static int |
getXpToNextLevel(int level) |
static int |
xpBarCap(int level) |
public static int getPlayerXP(net.minecraft.entity.player.PlayerEntity player)
player - public static void addPlayerXP(net.minecraft.entity.player.PlayerEntity player,
int amount)
public static int xpBarCap(int level)
public static int getExperienceForLevel(int level)
public static int getXpToNextLevel(int level)
public static int getLevelForExperience(int targetXp)
public static float getPower(net.minecraft.world.World world,
net.minecraft.util.math.BlockPos position)
public static float getEnchantPower(net.minecraft.world.World world,
net.minecraft.util.math.BlockPos pos)
public static void addAllBooks(net.minecraft.enchantment.Enchantment enchantment,
java.util.List<net.minecraft.item.ItemStack> items)