Package hiiragi283.core.util
Object HTExperienceHelper
-
- All Implemented Interfaces:
public class HTExperienceHelper
-
-
Field Summary
Fields Modifier and Type Field Description public final static HTExperienceHelperINSTANCE
-
Method Summary
Modifier and Type Method Description final static IntegergetExpRatio()final static IntegerfluidAmountFromExp(Integer value)final static LongfluidAmountFromExp(Long value)final static LongexpAmountFromFluid(Integer amount)final static UnitpopExperienceOrb(Level level, Vec3i pos, Long amount)final static UnitpopExperienceOrb(Level level, Vec3 pos, Long amount)final static UnitrepeatLongAsInt(Long amount, Function1<Integer, Unit> action)final static LonggetPlayerExp(Player player)final static UnitsetPlayerExp(Player player, Long amount)final static LonggetExpForLevel(Integer level)final static LonggetExpBarCapacity(Integer level)final static IntegergetLevelForExp(Long amount)final static LonggetStoredExp(ItemStack stack)final static LongupdateStoredExp(ItemStack stack, LongUnaryOperator operator)final static IntegergetTotalCost(ItemEnchantments enchantments, Function2<Enchantment, Integer, Integer> transform)final static IntegergetTotalMinCost(ItemEnchantments enchantments)final static IntegergetTotalMaxCost(ItemEnchantments enchantments)-
-
Method Detail
-
getExpRatio
final static Integer getExpRatio()
-
fluidAmountFromExp
final static Integer fluidAmountFromExp(Integer value)
-
fluidAmountFromExp
final static Long fluidAmountFromExp(Long value)
-
expAmountFromFluid
final static Long expAmountFromFluid(Integer amount)
-
popExperienceOrb
final static Unit popExperienceOrb(Level level, Vec3i pos, Long amount)
-
popExperienceOrb
final static Unit popExperienceOrb(Level level, Vec3 pos, Long amount)
-
repeatLongAsInt
final static Unit repeatLongAsInt(Long amount, Function1<Integer, Unit> action)
-
getPlayerExp
final static Long getPlayerExp(Player player)
-
setPlayerExp
final static Unit setPlayerExp(Player player, Long amount)
-
getExpForLevel
final static Long getExpForLevel(Integer level)
-
getExpBarCapacity
final static Long getExpBarCapacity(Integer level)
-
getLevelForExp
final static Integer getLevelForExp(Long amount)
-
getStoredExp
final static Long getStoredExp(ItemStack stack)
-
updateStoredExp
final static Long updateStoredExp(ItemStack stack, LongUnaryOperator operator)
-
getTotalCost
final static Integer getTotalCost(ItemEnchantments enchantments, Function2<Enchantment, Integer, Integer> transform)
-
getTotalMinCost
final static Integer getTotalMinCost(ItemEnchantments enchantments)
-
getTotalMaxCost
final static Integer getTotalMaxCost(ItemEnchantments enchantments)
-
-
-
-