Interface IClientHelper

All Known Implementing Classes:
ForgeClientHelper

public interface IClientHelper
  • Field Details

  • Method Details

    • isSingleplayer

      default boolean isSingleplayer()
    • isKeyDown

      boolean isKeyDown(net.minecraft.client.KeyMapping keyBinding)
      Safely checks if a key is down.
      Parameters:
      keyBinding - The key to check
      Returns:
      True if the key is down. False otherwise.
    • isKeyDownExtra

      boolean isKeyDownExtra(net.minecraft.client.KeyMapping keyBinding)
      Safely checks if a key is down, including any modifiers.
      Parameters:
      keyBinding - The key to check
      Returns:
      True if the key is down. False otherwise.
    • getTooltips

      default Map<IIngredient,LinkedList<ITooltipFunction>> getTooltips()
    • applyTooltips

      default void applyTooltips(net.minecraft.world.item.ItemStack stack, net.minecraft.world.item.TooltipFlag context, List<net.minecraft.network.chat.Component> lines)