Class CraftingRecipe<C extends CraftingRecipe<C>>
java.lang.Object
me.wolfyscript.customcrafting.recipes.types.CustomRecipe<C,SlotResultTarget>
me.wolfyscript.customcrafting.recipes.types.CraftingRecipe<C>
- All Implemented Interfaces:
ICraftingRecipe,ICustomRecipe<C,SlotResultTarget>,me.wolfyscript.utilities.util.Keyed
- Direct Known Subclasses:
AdvancedCraftingRecipe,EliteCraftingRecipe
public abstract class CraftingRecipe<C extends CraftingRecipe<C>>
extends CustomRecipe<C,SlotResultTarget>
implements ICraftingRecipe
-
Nested Class Summary
Nested classes/interfaces inherited from interface me.wolfyscript.customcrafting.recipes.types.ICustomRecipe
ICustomRecipe.Serializer -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected intprotected intprotected static Stringprotected booleanFields inherited from class me.wolfyscript.customcrafting.recipes.types.CustomRecipe
api, conditions, exactMeta, group, hidden, mapper, namespacedKey, priority, result -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedprotectedCraftingRecipe(CraftingRecipe<C> craftingRecipe)protectedCraftingRecipe(me.wolfyscript.utilities.util.NamespacedKey namespacedKey, me.wolfyscript.utilities.libraries.com.fasterxml.jackson.databind.JsonNode node) -
Method Summary
Modifier and TypeMethodDescriptiongetIngredient(int slot)booleanvoidprepareMenu(me.wolfyscript.utilities.api.inventory.gui.GuiHandler<CCCache> guiHandler, me.wolfyscript.utilities.api.inventory.gui.GuiCluster<CCCache> cluster)voidrenderMenu(me.wolfyscript.utilities.api.inventory.gui.GuiWindow<CCCache> guiWindow, me.wolfyscript.utilities.api.inventory.gui.GuiUpdate<CCCache> event)voidsetIngredient(char key, Ingredient ingredients)voidsetIngredient(int slot, Ingredient ingredients)Used to set Ingredient from cache of the RecipeCreatorvoidsetIngredients(Map<Character,Ingredient> ingredients)voidwriteToBuf(me.wolfyscript.utilities.api.nms.network.MCByteBuf byteBuf)voidwriteToJson(me.wolfyscript.utilities.libraries.com.fasterxml.jackson.core.JsonGenerator gen, me.wolfyscript.utilities.libraries.com.fasterxml.jackson.databind.SerializerProvider serializerProvider)Methods inherited from class me.wolfyscript.customcrafting.recipes.types.CustomRecipe
clone, getAPI, getConditions, getGroup, getNamespacedKey, getPriority, getResult, hasNamespacedKey, isExactMeta, isHidden, setConditions, setExactMeta, setGroup, setHidden, setNamespacedKey, setPriority, setResultMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface me.wolfyscript.customcrafting.recipes.types.ICraftingRecipe
check, getAmountCraftable, getIngredients, removeMatrixMethods inherited from interface me.wolfyscript.customcrafting.recipes.types.ICustomRecipe
checkCondition, checkConditions, delete, delete, findResultItem, getPacketType, getRecipeBookItems, getRecipeType, isDisabled, save, save
-
Field Details
-
LETTERS
- See Also:
- Constant Field Values
-
shapeless
protected boolean shapeless -
bookGridSize
protected int bookGridSize -
bookSquaredGrid
protected int bookSquaredGrid
-
-
Constructor Details
-
CraftingRecipe
protected CraftingRecipe(me.wolfyscript.utilities.util.NamespacedKey namespacedKey, me.wolfyscript.utilities.libraries.com.fasterxml.jackson.databind.JsonNode node) -
CraftingRecipe
protected CraftingRecipe() -
CraftingRecipe
-
-
Method Details
-
getIngredients
- Specified by:
getIngredientsin interfaceICraftingRecipe
-
getIngredient
- Specified by:
getIngredientin interfaceICustomRecipe<C extends CraftingRecipe<C>,SlotResultTarget>
-
setIngredients
- Specified by:
setIngredientsin interfaceICraftingRecipe
-
setIngredient
- Specified by:
setIngredientin interfaceICraftingRecipe
-
setIngredient
Description copied from interface:ICustomRecipeUsed to set Ingredient from cache of the RecipeCreator- Specified by:
setIngredientin interfaceICustomRecipe<C extends CraftingRecipe<C>,SlotResultTarget>- Parameters:
slot- The slot of the ingredient in the recipe.ingredients- The ingredient to set
-
isShapeless
public boolean isShapeless()- Specified by:
isShapelessin interfaceICraftingRecipe
-
prepareMenu
public void prepareMenu(me.wolfyscript.utilities.api.inventory.gui.GuiHandler<CCCache> guiHandler, me.wolfyscript.utilities.api.inventory.gui.GuiCluster<CCCache> cluster)- Specified by:
prepareMenuin interfaceICustomRecipe<C extends CraftingRecipe<C>,SlotResultTarget>
-
renderMenu
public void renderMenu(me.wolfyscript.utilities.api.inventory.gui.GuiWindow<CCCache> guiWindow, me.wolfyscript.utilities.api.inventory.gui.GuiUpdate<CCCache> event)- Specified by:
renderMenuin interfaceICustomRecipe<C extends CraftingRecipe<C>,SlotResultTarget>
-
writeToJson
public void writeToJson(me.wolfyscript.utilities.libraries.com.fasterxml.jackson.core.JsonGenerator gen, me.wolfyscript.utilities.libraries.com.fasterxml.jackson.databind.SerializerProvider serializerProvider) throws IOException- Specified by:
writeToJsonin interfaceICustomRecipe<C extends CraftingRecipe<C>,SlotResultTarget>- Overrides:
writeToJsonin classCustomRecipe<C extends CraftingRecipe<C>,SlotResultTarget>- Throws:
IOException
-
writeToBuf
public void writeToBuf(me.wolfyscript.utilities.api.nms.network.MCByteBuf byteBuf)- Specified by:
writeToBufin interfaceICustomRecipe<C extends CraftingRecipe<C>,SlotResultTarget>- Overrides:
writeToBufin classCustomRecipe<C extends CraftingRecipe<C>,SlotResultTarget>
-