Class PiercingEnchantment

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

public class PiercingEnchantment extends Enchantment
Mappings:
Namespace Name
named net/minecraft/enchantment/PiercingEnchantment
intermediary net/minecraft/class_1881
official czw
  • Constructor Details

    • PiercingEnchantment

      public PiercingEnchantment(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> Ldac;<init>(Ldac$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 Ldac;a(Ldac;)Z