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 Summary
ConstructorsConstructorDescriptionIngredientInstanceSorterAdapter(org.cyclops.cyclopscore.client.gui.image.IImage icon, String ingredientType, String kind) -
Method Summary
Modifier and TypeMethodDescriptionorg.cyclops.cyclopscore.client.gui.image.IImagegetIcon()voidgetTooltip(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.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.Comparator
compare, equals, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
-
Constructor Details
-
IngredientInstanceSorterAdapter
-
-
Method Details
-
getIcon
public org.cyclops.cyclopscore.client.gui.image.IImage getIcon()- Specified by:
getIconin interfaceIIngredientInstanceSorter<T>- Returns:
- The icon that can be used to represent this sorter.
-
getTranslationKey
- Specified by:
getTranslationKeyin interfaceIIngredientInstanceSorter<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:IIngredientInstanceSorterGet the tooltip of this sorter.- Specified by:
getTooltipin interfaceIIngredientInstanceSorter<T>- Parameters:
player- The player that is requesting the tooltip.tooltipFlag- The tooltip flag.lines- The tooltip lines.
-