Class CraftingHelper
java.lang.Object
net.minecraftforge.common.crafting.CraftingHelper
-
Field Summary
Modifier and TypeFieldDescriptionprivate static final Map<ResourceLocation,
com.mojang.serialization.Codec<? extends ICondition>> private static final org.apache.logging.log4j.Marker
private static com.google.gson.Gson
private static final org.apache.logging.log4j.Logger
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic Item
static ItemStack
getItemStack
(com.google.gson.JsonObject json, boolean readNBT) static ItemStack
getItemStack
(com.google.gson.JsonObject json, boolean readNBT, boolean disallowsAirInRecipe) static CompoundTag
getNBT
(com.google.gson.JsonElement element) static boolean
processConditions
(com.google.gson.JsonArray conditions, ICondition.IContext context) static boolean
processConditions
(com.google.gson.JsonObject json, String memberName, ICondition.IContext context) static void
register
(ResourceLocation key, com.mojang.serialization.Codec<? extends ICondition> codec)
-
Field Details
-
LOGGER
private static final org.apache.logging.log4j.Logger LOGGER -
CRAFTHELPER
private static final org.apache.logging.log4j.Marker CRAFTHELPER -
GSON
private static com.google.gson.Gson GSON -
conditions
private static final Map<ResourceLocation,com.mojang.serialization.Codec<? extends ICondition>> conditions
-
-
Constructor Details
-
CraftingHelper
public CraftingHelper()
-
-
Method Details
-
getItemStack
-
getItem
-
getNBT
-
getItemStack
public static ItemStack getItemStack(com.google.gson.JsonObject json, boolean readNBT, boolean disallowsAirInRecipe) -
register
public static void register(ResourceLocation key, com.mojang.serialization.Codec<? extends ICondition> codec) -
processConditions
public static boolean processConditions(com.google.gson.JsonObject json, String memberName, ICondition.IContext context) -
processConditions
public static boolean processConditions(com.google.gson.JsonArray conditions, ICondition.IContext context)
-