Modifier and Type | Field and Description |
---|---|
private Enchantment |
EnchantmentPredicate.enchantment |
Modifier and Type | Method and Description |
---|---|
boolean |
EnchantmentPredicate.test(java.util.Map<Enchantment,java.lang.Integer> enchantmentsIn) |
Constructor and Description |
---|
EnchantmentPredicate(Enchantment p_i49723_1_,
MinMaxBounds.IntBound p_i49723_2_) |
Modifier and Type | Method and Description |
---|---|
static Enchantment |
EnchantmentArgument.getEnchantment(com.mojang.brigadier.context.CommandContext<CommandSource> context,
java.lang.String name) |
Enchantment |
EnchantmentArgument.parse(com.mojang.brigadier.StringReader p_parse_1_) |
Modifier and Type | Method and Description |
---|---|
private static int |
EnchantCommand.enchant(CommandSource source,
java.util.Collection<? extends Entity> targets,
Enchantment enchantmentIn,
int level) |
Modifier and Type | Class and Description |
---|---|
class |
AquaAffinityEnchantment |
class |
BindingCurseEnchantment |
class |
ChannelingEnchantment |
class |
DamageEnchantment |
class |
DepthStriderEnchantment |
class |
EfficiencyEnchantment |
class |
FireAspectEnchantment |
class |
FlameEnchantment |
class |
FrostWalkerEnchantment |
class |
ImpalingEnchantment |
class |
InfinityEnchantment |
class |
KnockbackEnchantment |
class |
LootBonusEnchantment |
class |
LoyaltyEnchantment |
class |
LureEnchantment |
class |
MendingEnchantment |
class |
MultishotEnchantment |
class |
PiercingEnchantment |
class |
PowerEnchantment |
class |
ProtectionEnchantment |
class |
PunchEnchantment |
class |
QuickChargeEnchantment |
class |
RespirationEnchantment |
class |
RiptideEnchantment |
class |
SilkTouchEnchantment |
class |
SweepingEnchantment |
class |
ThornsEnchantment |
class |
UnbreakingEnchantment |
class |
VanishingCurseEnchantment |
Modifier and Type | Field and Description |
---|---|
static Enchantment |
Enchantments.AQUA_AFFINITY |
static Enchantment |
Enchantments.BANE_OF_ARTHROPODS |
static Enchantment |
Enchantments.BINDING_CURSE |
static Enchantment |
Enchantments.BLAST_PROTECTION |
static Enchantment |
Enchantments.CHANNELING |
static Enchantment |
Enchantments.DEPTH_STRIDER |
static Enchantment |
Enchantments.EFFICIENCY |
Enchantment |
EnchantmentData.enchantment |
static Enchantment |
Enchantments.FEATHER_FALLING |
static Enchantment |
Enchantments.FIRE_ASPECT |
static Enchantment |
Enchantments.FIRE_PROTECTION |
static Enchantment |
Enchantments.FLAME |
static Enchantment |
Enchantments.FORTUNE |
static Enchantment |
Enchantments.FROST_WALKER |
static Enchantment |
Enchantments.IMPALING |
static Enchantment |
Enchantments.INFINITY |
static Enchantment |
Enchantments.KNOCKBACK |
static Enchantment |
Enchantments.LOOTING |
static Enchantment |
Enchantments.LOYALTY |
static Enchantment |
Enchantments.LUCK_OF_THE_SEA |
static Enchantment |
Enchantments.LURE |
static Enchantment |
Enchantments.MENDING |
static Enchantment |
Enchantments.MULTISHOT |
static Enchantment |
Enchantments.PIERCING |
static Enchantment |
Enchantments.POWER |
static Enchantment |
Enchantments.PROJECTILE_PROTECTION |
static Enchantment |
Enchantments.PROTECTION |
static Enchantment |
Enchantments.PUNCH |
static Enchantment |
Enchantments.QUICK_CHARGE |
static Enchantment |
Enchantments.RESPIRATION |
static Enchantment |
Enchantments.RIPTIDE |
static Enchantment |
Enchantments.SHARPNESS |
static Enchantment |
Enchantments.SILK_TOUCH |
static Enchantment |
Enchantments.SMITE |
static Enchantment |
Enchantments.SWEEPING |
static Enchantment |
Enchantments.THORNS |
static Enchantment |
Enchantments.UNBREAKING |
static Enchantment |
Enchantments.VANISHING_CURSE |
Modifier and Type | Method and Description |
---|---|
static Enchantment |
Enchantment.getEnchantmentByID(int id) |
private static Enchantment |
Enchantments.register(java.lang.String key,
Enchantment p_222191_1_) |
Modifier and Type | Method and Description |
---|---|
static java.util.Map<Enchantment,java.lang.Integer> |
EnchantmentHelper.func_226652_a_(ListNBT p_226652_0_) |
static java.util.Map<Enchantment,java.lang.Integer> |
EnchantmentHelper.getEnchantments(ItemStack stack) |
Modifier and Type | Method and Description |
---|---|
void |
EnchantmentHelper.IEnchantmentVisitor.accept(Enchantment p_accept_1_,
int p_accept_2_) |
static boolean |
EnchantmentHelper.areAllCompatibleWith(java.util.Collection<Enchantment> enchantmentsIn,
Enchantment enchantmentIn) |
boolean |
ChannelingEnchantment.canApplyTogether(Enchantment ench) |
boolean |
RiptideEnchantment.canApplyTogether(Enchantment ench) |
boolean |
DepthStriderEnchantment.canApplyTogether(Enchantment ench) |
boolean |
FrostWalkerEnchantment.canApplyTogether(Enchantment ench) |
boolean |
ProtectionEnchantment.canApplyTogether(Enchantment ench) |
boolean |
LootBonusEnchantment.canApplyTogether(Enchantment ench) |
boolean |
DamageEnchantment.canApplyTogether(Enchantment ench) |
boolean |
MultishotEnchantment.canApplyTogether(Enchantment ench) |
boolean |
InfinityEnchantment.canApplyTogether(Enchantment ench) |
boolean |
SilkTouchEnchantment.canApplyTogether(Enchantment ench) |
protected boolean |
Enchantment.canApplyTogether(Enchantment ench) |
boolean |
PiercingEnchantment.canApplyTogether(Enchantment ench) |
boolean |
LoyaltyEnchantment.canApplyTogether(Enchantment ench) |
static int |
EnchantmentHelper.getEnchantmentLevel(Enchantment enchID,
ItemStack stack) |
static int |
EnchantmentHelper.getMaxEnchantmentLevel(Enchantment enchantmentIn,
LivingEntity entityIn) |
static java.util.Map.Entry<EquipmentSlotType,ItemStack> |
EnchantmentHelper.getRandomItemWithEnchantment(Enchantment targetEnchantment,
LivingEntity entityIn) |
boolean |
Enchantment.isCompatibleWith(Enchantment enchantmentIn) |
private static Enchantment |
Enchantments.register(java.lang.String key,
Enchantment p_222191_1_) |
Modifier and Type | Method and Description |
---|---|
static boolean |
EnchantmentHelper.areAllCompatibleWith(java.util.Collection<Enchantment> enchantmentsIn,
Enchantment enchantmentIn) |
static void |
EnchantmentHelper.setEnchantments(java.util.Map<Enchantment,java.lang.Integer> enchMap,
ItemStack stack) |
Constructor and Description |
---|
EnchantmentData(Enchantment enchantmentObj,
int enchLevel) |
Modifier and Type | Method and Description |
---|---|
void |
ItemStack.addEnchantment(Enchantment ench,
int level) |
Modifier and Type | Field and Description |
---|---|
static Registry<Enchantment> |
Registry.ENCHANTMENT
Deprecated.
|
Modifier and Type | Field and Description |
---|---|
private Enchantment |
TableBonus.enchantment |
Modifier and Type | Method and Description |
---|---|
static ILootCondition.IBuilder |
TableBonus.builder(Enchantment enchantmentIn,
float... chancesIn) |
Constructor and Description |
---|
TableBonus(Enchantment enchantment,
float[] chances) |
Modifier and Type | Field and Description |
---|---|
private Enchantment |
ApplyBonus.enchantment |
Modifier and Type | Field and Description |
---|---|
private java.util.List<Enchantment> |
EnchantRandomly.enchantments |
Modifier and Type | Method and Description |
---|---|
static LootFunction.Builder<?> |
ApplyBonus.binomialWithBonusCount(Enchantment p_215870_0_,
float p_215870_1_,
int p_215870_2_) |
static LootFunction.Builder<?> |
ApplyBonus.oreDrops(Enchantment p_215869_0_) |
static LootFunction.Builder<?> |
ApplyBonus.uniformBonusCount(Enchantment p_215871_0_) |
static LootFunction.Builder<?> |
ApplyBonus.uniformBonusCount(Enchantment p_215865_0_,
int p_215865_1_) |
Constructor and Description |
---|
ApplyBonus(ILootCondition[] conditionsIn,
Enchantment enchantmentIn,
ApplyBonus.IFormula p_i51246_3_) |
Constructor and Description |
---|
EnchantRandomly(ILootCondition[] p_i51238_1_,
java.util.Collection<Enchantment> p_i51238_2_) |
Modifier and Type | Method and Description |
---|---|
void |
LanguageProvider.add(Enchantment key,
java.lang.String name) |
Modifier and Type | Method and Description |
---|---|
void |
LanguageProvider.addEnchantment(java.util.function.Supplier<? extends Enchantment> key,
java.lang.String name) |
Modifier and Type | Method and Description |
---|---|
default boolean |
IForgeItemStack.canApplyAtEnchantingTable(Enchantment enchantment)
Checks whether an item can be enchanted with a certain enchantment.
|
default boolean |
IForgeItem.canApplyAtEnchantingTable(ItemStack stack,
Enchantment enchantment)
Checks whether an item can be enchanted with a certain enchantment.
|
Modifier and Type | Class and Description |
---|---|
private static class |
GlobalLootModifiersTest.SmelterEnchantment |
Modifier and Type | Field and Description |
---|---|
static Enchantment |
GlobalLootModifiersTest.smelt |
Modifier and Type | Method and Description |
---|---|
static void |
GlobalLootModifiersTest.EventHandlers.registerEnchantments(RegistryEvent.Register<Enchantment> event) |
Modifier and Type | Field and Description |
---|---|
static IForgeRegistry<Enchantment> |
ForgeRegistries.ENCHANTMENTS |