Package net.darkhax.enchdesc.common.impl
Class EnchantmentDescriptionsMod
java.lang.Object
net.darkhax.enchdesc.common.impl.EnchantmentDescriptionsMod
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanstatic net.minecraft.world.item.ItemStackAttempts to get the stack in the slot the player is currently hovering over.static net.minecraft.network.chat.Componentstatic voidinsertDescriptions(net.minecraft.core.Holder<net.minecraft.world.item.enchantment.Enchantment> enchantment, int level, Consumer<net.minecraft.network.chat.Component> lines) static boolean
-
Field Details
-
MOD_ID
- See Also:
-
MOD_NAME
- See Also:
-
KEY_TYPES
-
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() -
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)
-