Class IngredientHelpers
java.lang.Object
org.cyclops.commoncapabilities.ingredient.IngredientHelpers
Helper methods for ingredients.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic int
compareTags
(net.minecraft.nbt.Tag tag1, net.minecraft.nbt.Tag tag2) Compare the given NBT tags with each other for order.
-
Constructor Details
-
IngredientHelpers
public IngredientHelpers()
-
-
Method Details
-
compareTags
public static int compareTags(@Nullable net.minecraft.nbt.Tag tag1, @Nullable net.minecraft.nbt.Tag tag2) Compare the given NBT tags with each other for order.- Parameters:
tag1
- An NBT tag.tag2
- An NBT tag.- Returns:
- a negative integer, zero, or a positive integer as the first argument is less than, equal to, or greater than the second.
-