Class LuckEnchantment

java.lang.Object
net.minecraft.enchantment.Enchantment
net.minecraft.enchantment.LuckEnchantment
All Implemented Interfaces:
ToggleableFeature

public class LuckEnchantment extends Enchantment
Mappings:
Namespace Name
named net/minecraft/enchantment/LuckEnchantment
intermediary net/minecraft/class_1896
official dah
  • Constructor Details

    • LuckEnchantment

      protected LuckEnchantment(Enchantment.Properties properties)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/enchantment/Enchantment;<init>(Lnet/minecraft/enchantment/Enchantment$Properties;)V
      intermediary <init> Lnet/minecraft/class_1887;<init>(Lnet/minecraft/class_1887$class_9427;)V
      official <init> Ldab;<init>(Ldab$b;)V
  • Method Details

    • canAccept

      public boolean canAccept(Enchantment other)
      Returns whether this enchantment can exist on an item stack with the other enchantment.
      Overrides:
      canAccept in class Enchantment
      Returns:
      whether this enchantment can exist on an item stack with the other enchantment
      Mappings:
      Namespace Name Mixin selector
      named canAccept Lnet/minecraft/enchantment/Enchantment;canAccept(Lnet/minecraft/enchantment/Enchantment;)Z
      intermediary method_8180 Lnet/minecraft/class_1887;method_8180(Lnet/minecraft/class_1887;)Z
      official a Ldab;a(Ldab;)Z