Class ItemStackIdSorter
java.lang.Object
org.cyclops.integratedterminals.capability.ingredient.sorter.IngredientInstanceSorterAdapter<net.minecraft.world.item.ItemStack>
org.cyclops.integratedterminals.capability.ingredient.sorter.ItemStackIdSorter
- All Implemented Interfaces:
Comparator<net.minecraft.world.item.ItemStack>,IIngredientInstanceSorter<net.minecraft.world.item.ItemStack>
public class ItemStackIdSorter
extends IngredientInstanceSorterAdapter<net.minecraft.world.item.ItemStack>
Sorts items by internal ID.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintcompare(net.minecraft.world.item.ItemStack o1, net.minecraft.world.item.ItemStack o2) protected StringgetItemStackId(net.minecraft.world.item.ItemStack itemStack) Methods inherited from class org.cyclops.integratedterminals.capability.ingredient.sorter.IngredientInstanceSorterAdapter
getIcon, getTooltip, getTranslationKeyMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.Comparator
equals, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
-
Constructor Details
-
ItemStackIdSorter
public ItemStackIdSorter()
-
-
Method Details
-
getItemStackId
-
compare
public int compare(net.minecraft.world.item.ItemStack o1, net.minecraft.world.item.ItemStack o2)
-