Class EnchantmentDescriptionsMod

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

public class EnchantmentDescriptionsMod extends Object
  • Field Details

    • MOD_ID

      public static final String MOD_ID
      See Also:
    • MOD_NAME

      public static final String MOD_NAME
      See Also:
    • LOG

      public static final org.slf4j.Logger LOG
    • KEY_TYPES

      public static final String[] KEY_TYPES
    • config

      public static final net.darkhax.pricklemc.common.api.util.CachedSupplier<Config> config
  • 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()
    • hasEnchantments

      public static boolean hasEnchantments(net.minecraft.world.item.ItemStack stack)
    • 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)