Class IngredientHelpers

java.lang.Object
org.cyclops.commoncapabilities.ingredient.IngredientHelpers

public final class IngredientHelpers extends Object
Helper methods for ingredients.
  • 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.