Class EnchantmentDescriptionsMod

java.lang.Object
net.darkhax.enchdesc.common.impl.EnchantmentDescriptionsMod

public class EnchantmentDescriptionsMod extends Object
  • Field Details

  • Constructor Details

    • EnchantmentDescriptionsMod

      public EnchantmentDescriptionsMod()
  • Method Details

    • getHoveredStack

      public static net.minecraft.world.item.ItemStack getHoveredStack()
      Attempts to get the stack in the slot the player is currently hovering over. If the slot does not exist this will be empty.
      Returns:
      The item in the currently hovered slot.
    • canDisplayDescription

      public static boolean canDisplayDescription()
    • getKeybindText

      public static net.minecraft.network.chat.Component getKeybindText()
    • isKeybindConditionMet

      public static boolean isKeybindConditionMet()
    • insertDescriptions

      public static void insertDescriptions(net.minecraft.core.Holder<net.minecraft.world.item.enchantment.Enchantment> enchantment, int level, Consumer<net.minecraft.network.chat.Component> lines)