Class IngredientInstanceSorterAdapter<T>

java.lang.Object
org.cyclops.integratedterminals.capability.ingredient.sorter.IngredientInstanceSorterAdapter<T>
All Implemented Interfaces:
Comparator<T>, IIngredientInstanceSorter<T>
Direct Known Subclasses:
FluidStackIdSorter, FluidStackNameSorter, FluidStackQuantitySorter, ItemStackIdSorter, ItemStackNameSorter, ItemStackQuantitySorter

public abstract class IngredientInstanceSorterAdapter<T> extends Object implements IIngredientInstanceSorter<T>
An adapter implementation of IIngredientInstanceSorter.
  • Constructor Details

    • IngredientInstanceSorterAdapter

      public IngredientInstanceSorterAdapter(org.cyclops.cyclopscore.client.gui.image.IImage icon, String ingredientType, String kind)
  • Method Details

    • getIcon

      public org.cyclops.cyclopscore.client.gui.image.IImage getIcon()
      Specified by:
      getIcon in interface IIngredientInstanceSorter<T>
      Returns:
      The icon that can be used to represent this sorter.
    • getTranslationKey

      public String getTranslationKey()
      Specified by:
      getTranslationKey in interface IIngredientInstanceSorter<T>
      Returns:
      The unlocalized name
    • getTooltip

      public void getTooltip(net.minecraft.world.entity.player.Player player, net.minecraft.world.item.TooltipFlag tooltipFlag, List<net.minecraft.network.chat.Component> lines)
      Description copied from interface: IIngredientInstanceSorter
      Get the tooltip of this sorter.
      Specified by:
      getTooltip in interface IIngredientInstanceSorter<T>
      Parameters:
      player - The player that is requesting the tooltip.
      tooltipFlag - The tooltip flag.
      lines - The tooltip lines.