public class CraftingHelper
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static IConditionSerializer |
CONDITION_AND |
static IConditionSerializer |
CONDITION_FALSE |
static IConditionSerializer |
CONDITION_ITEM_EXISTS |
static IConditionSerializer |
CONDITION_MOD_LOADED |
static IConditionSerializer |
CONDITION_NOT |
static IConditionSerializer |
CONDITION_OR |
static IIngredientSerializer<CompoundIngredient> |
INGREDIENT_COMPOUND |
static IIngredientSerializer<IngredientNBT> |
INGREDIENT_NBT |
static IIngredientSerializer<Ingredient> |
INGREDIENT_VANILLA |
Constructor and Description |
---|
CraftingHelper() |
Modifier and Type | Method and Description |
---|---|
static java.util.function.BooleanSupplier |
getCondition(com.google.gson.JsonObject json) |
static Ingredient.IItemList |
getConstant(ResourceLocation key) |
static Ingredient |
getIngredient(com.google.gson.JsonElement json) |
static Ingredient |
getIngredient(ResourceLocation type,
PacketBuffer buffer) |
static ItemStack |
getItemStack(com.google.gson.JsonObject json,
boolean readNBT) |
static java.util.Map<ResourceLocation,Ingredient.IItemList> |
loadConstants(IResourceManager manager,
ResourceLocation key) |
static boolean |
processConditions(com.google.gson.JsonArray conditions) |
static boolean |
processConditions(com.google.gson.JsonObject json,
java.lang.String memberName) |
static IConditionSerializer |
register(ResourceLocation key,
IConditionSerializer serializer) |
static <T extends Ingredient> |
register(ResourceLocation key,
IIngredientSerializer<T> serializer) |
static void |
reloadConstants(IResourceManager manager) |
static <T extends Ingredient> |
write(PacketBuffer buffer,
T ingredient) |
public static final IConditionSerializer CONDITION_MOD_LOADED
public static final IConditionSerializer CONDITION_ITEM_EXISTS
public static final IConditionSerializer CONDITION_NOT
public static final IConditionSerializer CONDITION_OR
public static final IConditionSerializer CONDITION_AND
public static final IConditionSerializer CONDITION_FALSE
public static final IIngredientSerializer<IngredientNBT> INGREDIENT_NBT
public static final IIngredientSerializer<CompoundIngredient> INGREDIENT_COMPOUND
public static final IIngredientSerializer<Ingredient> INGREDIENT_VANILLA
public static IConditionSerializer register(ResourceLocation key, IConditionSerializer serializer)
public static <T extends Ingredient> IIngredientSerializer<T> register(ResourceLocation key, IIngredientSerializer<T> serializer)
public static <T extends Ingredient> void write(PacketBuffer buffer, T ingredient)
public static Ingredient getIngredient(ResourceLocation type, PacketBuffer buffer)
public static Ingredient getIngredient(com.google.gson.JsonElement json)
public static ItemStack getItemStack(com.google.gson.JsonObject json, boolean readNBT)
public static boolean processConditions(com.google.gson.JsonObject json, java.lang.String memberName)
public static boolean processConditions(com.google.gson.JsonArray conditions)
public static java.util.function.BooleanSupplier getCondition(com.google.gson.JsonObject json)
@Nullable public static Ingredient.IItemList getConstant(ResourceLocation key)
public static void reloadConstants(IResourceManager manager)
public static java.util.Map<ResourceLocation,Ingredient.IItemList> loadConstants(IResourceManager manager, ResourceLocation key)