public class FrostWalkerEnchantment extends Enchantment
Enchantment.Rarity
translationKey, type
Constructor and Description |
---|
FrostWalkerEnchantment(Enchantment.Rarity weight,
EquipmentSlot[] slotTypes) |
Modifier and Type | Method and Description |
---|---|
boolean |
canAccept(Enchantment other)
Returns whether this enchantment can exist on an item stack with the
other enchantment. |
static void |
freezeWater(LivingEntity entity,
World world,
BlockPos blockPos,
int level) |
int |
getMaxLevel() |
int |
getMaxPower(int level) |
int |
getMinPower(int level) |
boolean |
isTreasure() |
byRawId, canCombine, getAttackDamage, getEquipment, getMinLevel, getName, getOrCreateTranslationKey, getProtectionAmount, getRarity, getTranslationKey, isAcceptableItem, isAvailableForEnchantedBookOffer, isAvailableForRandomSelection, isCursed, onTargetDamaged, onUserDamaged
public FrostWalkerEnchantment(Enchantment.Rarity weight, EquipmentSlot[] slotTypes)
public int getMinPower(int level)
getMinPower
in class Enchantment
public int getMaxPower(int level)
getMaxPower
in class Enchantment
public boolean isTreasure()
isTreasure
in class Enchantment
public int getMaxLevel()
getMaxLevel
in class Enchantment
public static void freezeWater(LivingEntity entity, World world, BlockPos blockPos, int level)
public boolean canAccept(Enchantment other)
other
enchantment.canAccept
in class Enchantment