Interface IIngredientInstanceSorter<T>

All Superinterfaces:
Comparator<T>
All Known Implementing Classes:
FluidStackIdSorter, FluidStackNameSorter, FluidStackQuantitySorter, IngredientInstanceSorterAdapter, ItemStackIdSorter, ItemStackNameSorter, ItemStackQuantitySorter

public interface IIngredientInstanceSorter<T> extends Comparator<T>
A sorting comparator for ingredient instances. These don't have to be 0-equals-safe, meaning that non-equal instances don't necessarily have to return a non-0 value. This is because these sorters are typically chained.
  • Method Details

    • getIcon

      org.cyclops.cyclopscore.client.gui.image.IImage getIcon()
      Returns:
      The icon that can be used to represent this sorter.
    • getTranslationKey

      String getTranslationKey()
      Returns:
      The unlocalized name
    • getTooltip

      void getTooltip(net.minecraft.world.entity.player.Player player, net.minecraft.world.item.TooltipFlag tooltipFlag, List<net.minecraft.network.chat.Component> lines)
      Get the tooltip of this sorter.
      Parameters:
      player - The player that is requesting the tooltip.
      tooltipFlag - The tooltip flag.
      lines - The tooltip lines.