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 int
protected int
protected static String
protected boolean
Fields inherited from class me.wolfyscript.customcrafting.recipes.types.CustomRecipe
api, conditions, exactMeta, group, hidden, mapper, namespacedKey, priority, result
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
protected
CraftingRecipe(CraftingRecipe<C> craftingRecipe)
protected
CraftingRecipe(me.wolfyscript.utilities.util.NamespacedKey namespacedKey, me.wolfyscript.utilities.libraries.com.fasterxml.jackson.databind.JsonNode node)
-
Method Summary
Modifier and TypeMethodDescriptiongetIngredient(int slot)
boolean
void
prepareMenu(me.wolfyscript.utilities.api.inventory.gui.GuiHandler<CCCache> guiHandler, me.wolfyscript.utilities.api.inventory.gui.GuiCluster<CCCache> cluster)
void
renderMenu(me.wolfyscript.utilities.api.inventory.gui.GuiWindow<CCCache> guiWindow, me.wolfyscript.utilities.api.inventory.gui.GuiUpdate<CCCache> event)
void
setIngredient(char key, Ingredient ingredients)
void
setIngredient(int slot, Ingredient ingredients)
Used to set Ingredient from cache of the RecipeCreatorvoid
setIngredients(Map<Character,Ingredient> ingredients)
void
writeToBuf(me.wolfyscript.utilities.api.nms.network.MCByteBuf byteBuf)
void
writeToJson(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, setResult
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface me.wolfyscript.customcrafting.recipes.types.ICraftingRecipe
check, getAmountCraftable, getIngredients, removeMatrix
Methods 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:
getIngredients
in interfaceICraftingRecipe
-
getIngredient
- Specified by:
getIngredient
in interfaceICustomRecipe<C extends CraftingRecipe<C>,SlotResultTarget>
-
setIngredients
- Specified by:
setIngredients
in interfaceICraftingRecipe
-
setIngredient
- Specified by:
setIngredient
in interfaceICraftingRecipe
-
setIngredient
Description copied from interface:ICustomRecipe
Used to set Ingredient from cache of the RecipeCreator- Specified by:
setIngredient
in 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:
isShapeless
in 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:
prepareMenu
in 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:
renderMenu
in 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:
writeToJson
in interfaceICustomRecipe<C extends CraftingRecipe<C>,SlotResultTarget>
- Overrides:
writeToJson
in classCustomRecipe<C extends CraftingRecipe<C>,SlotResultTarget>
- Throws:
IOException
-
writeToBuf
public void writeToBuf(me.wolfyscript.utilities.api.nms.network.MCByteBuf byteBuf)- Specified by:
writeToBuf
in interfaceICustomRecipe<C extends CraftingRecipe<C>,SlotResultTarget>
- Overrides:
writeToBuf
in classCustomRecipe<C extends CraftingRecipe<C>,SlotResultTarget>
-