Class IngredientHelpers
java.lang.Object
org.cyclops.commoncapabilities.ingredient.IngredientHelpers
Helper methods for ingredients.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic int
compareData
(net.minecraft.core.component.DataComponentMap tag1, net.minecraft.core.component.DataComponentMap tag2) Compare the given NBT tags with each other for order.
-
Constructor Details
-
IngredientHelpers
public IngredientHelpers()
-
-
Method Details
-
compareData
public static int compareData(@Nullable net.minecraft.core.component.DataComponentMap tag1, @Nullable net.minecraft.core.component.DataComponentMap 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.
-