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 IntegergetExpRatio()final IntegerfluidAmountFromExp(Integer value)final FractionfluidAmountFromExp(Fraction value)final IntegerexpAmountFromFluid(Integer value)final FractionexpAmountFromFluid(Fraction value)final UnitpopExperienceOrb(Level level, Vec3i pos, Integer amount)final UnitpopExperienceOrb(Level level, Vec3 pos, Integer amount)final UnitpopExperienceOrb(Level level, Vec3i pos, Fraction amount)final UnitpopExperienceOrb(Level level, Vec3 pos, Fraction amount)final static IntegergetPlayerExp(Player player)final static UnitsetPlayerExp(Player player, Long amount)final static IntegergetExpForLevel(Integer level)final static LonggetExpBarCapacity(Long level)final static LonggetLevelForExp(Long exp)final static IntegergetTotalCost(ItemEnchantments enchantments, Function2<Enchantment, Integer, Integer> transform)final static IntegergetTotalMinCost(ItemEnchantments enchantments)final static IntegergetTotalMaxCost(ItemEnchantments enchantments)-
-
Method Detail
-
getExpRatio
final Integer getExpRatio()
-
fluidAmountFromExp
final Integer fluidAmountFromExp(Integer value)
-
fluidAmountFromExp
final Fraction fluidAmountFromExp(Fraction value)
-
expAmountFromFluid
final Integer expAmountFromFluid(Integer value)
-
expAmountFromFluid
final Fraction expAmountFromFluid(Fraction value)
-
popExperienceOrb
final Unit popExperienceOrb(Level level, Vec3i pos, Integer amount)
-
popExperienceOrb
final Unit popExperienceOrb(Level level, Vec3 pos, Integer amount)
-
popExperienceOrb
final Unit popExperienceOrb(Level level, Vec3i pos, Fraction amount)
-
popExperienceOrb
final Unit popExperienceOrb(Level level, Vec3 pos, Fraction amount)
-
getPlayerExp
final static Integer getPlayerExp(Player player)
-
setPlayerExp
final static Unit setPlayerExp(Player player, Long amount)
-
getExpForLevel
final static Integer getExpForLevel(Integer level)
-
getExpBarCapacity
final static Long getExpBarCapacity(Long level)
-
getLevelForExp
final static Long getLevelForExp(Long exp)
-
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)
-
-
-
-