Class StateIngredientHelper

java.lang.Object
at.petrak.hexcasting.common.recipe.ingredient.StateIngredientHelper

public class StateIngredientHelper extends Object
  • Constructor Details

    • StateIngredientHelper

      public StateIngredientHelper()
  • Method Details

    • of

      public static StateIngredient of(net.minecraft.world.level.block.Block block)
    • of

      public static StateIngredient of(net.minecraft.world.level.block.state.BlockState state)
    • of

      public static StateIngredient of(net.minecraft.tags.TagKey<net.minecraft.world.level.block.Block> tag)
    • of

      public static StateIngredient of(net.minecraft.resources.ResourceLocation id)
    • of

      public static StateIngredient of(Collection<net.minecraft.world.level.block.Block> blocks)
    • tagExcluding

      public static StateIngredient tagExcluding(net.minecraft.tags.TagKey<net.minecraft.world.level.block.Block> tag, StateIngredient... excluded)
    • deserialize

      public static StateIngredient deserialize(com.google.gson.JsonObject object)
    • tryDeserialize

      @Nullable public static StateIngredient tryDeserialize(com.google.gson.JsonObject object)
      Deserializes a state ingredient, but removes air from its data, and returns null if the ingredient only matched air.
    • read

      public static StateIngredient read(net.minecraft.network.FriendlyByteBuf buffer)
    • serializeBlockState

      public static com.google.gson.JsonObject serializeBlockState(net.minecraft.world.level.block.state.BlockState state)
      Writes data about the block state to the provided json object.
    • readBlockState

      public static net.minecraft.world.level.block.state.BlockState readBlockState(com.google.gson.JsonObject object)
      Reads the block state from the provided json object.
    • toStackList

      @Deprecated @Nonnull public static List<net.minecraft.world.item.ItemStack> toStackList(StateIngredient input)
      Deprecated.