public class EnchantmentBreaking
extends org.cyclops.cyclopscore.config.configurable.ConfigurableEnchantment
| Constructor and Description |
|---|
EnchantmentBreaking(org.cyclops.cyclopscore.config.extendedconfig.ExtendedConfig<org.cyclops.cyclopscore.config.extendedconfig.EnchantmentConfig> eConfig) |
| Modifier and Type | Method and Description |
|---|---|
static void |
amplifyDamage(net.minecraft.item.ItemStack itemStack,
int enchantmentListID,
java.util.Random random)
Used by ItemStack.attemptDamageItem.
|
boolean |
canApplyAtEnchantingTable(net.minecraft.item.ItemStack itemStack) |
static EnchantmentBreaking |
getInstance()
Get the unique instance.
|
int |
getMaxEnchantability(int level) |
int |
getMaxLevel() |
int |
getMinEnchantability(int level) |
boolean |
isAllowedOnBooks() |
getConfig, getTranslatedNamecalcDamageByCreature, calcModifierDamage, canApply, canApplyTogether, getEnchantmentByID, getEnchantmentByLocation, getEnchantmentID, getEntityEquipment, getMinLevel, getName, getWeight, isTreasureEnchantment, onEntityDamaged, onUserHurt, registerEnchantments, setNamepublic EnchantmentBreaking(org.cyclops.cyclopscore.config.extendedconfig.ExtendedConfig<org.cyclops.cyclopscore.config.extendedconfig.EnchantmentConfig> eConfig)
public static EnchantmentBreaking getInstance()
public int getMinEnchantability(int level)
getMinEnchantability in class net.minecraft.enchantment.Enchantmentpublic int getMaxEnchantability(int level)
getMaxEnchantability in class net.minecraft.enchantment.Enchantmentpublic int getMaxLevel()
getMaxLevel in class net.minecraft.enchantment.Enchantmentpublic boolean canApplyAtEnchantingTable(net.minecraft.item.ItemStack itemStack)
canApplyAtEnchantingTable in class net.minecraft.enchantment.Enchantmentpublic boolean isAllowedOnBooks()
isAllowedOnBooks in class net.minecraft.enchantment.Enchantmentpublic static void amplifyDamage(net.minecraft.item.ItemStack itemStack,
int enchantmentListID,
java.util.Random random)
itemStack - The ItemStack.enchantmentListID - Enchantments.random - A random object.