public class CraftingJob
extends java.lang.Object
| Constructor and Description |
|---|
CraftingJob(int id,
int channel,
org.cyclops.commoncapabilities.api.capability.recipehandler.IRecipeDefinition recipe,
int amount,
org.cyclops.commoncapabilities.api.ingredient.IMixedIngredients ingredientsStorage) |
| Modifier and Type | Method and Description |
|---|---|
void |
addDependency(CraftingJob dependency) |
CraftingJob |
clone(CraftingHelpers.IIdentifierGenerator identifierGenerator) |
static CraftingJob |
deserialize(net.minecraft.nbt.CompoundNBT tag) |
boolean |
equals(java.lang.Object obj) |
int |
getAmount() |
int |
getChannel() |
it.unimi.dsi.fastutil.ints.IntList |
getDependencyCraftingJobs() |
it.unimi.dsi.fastutil.ints.IntList |
getDependentCraftingJobs() |
int |
getId() |
org.cyclops.commoncapabilities.api.ingredient.IMixedIngredients |
getIngredientsStorage() |
java.lang.String |
getInitiatorUuid() |
java.util.Map<org.cyclops.commoncapabilities.api.ingredient.IngredientComponent<?,?>,MissingIngredients<?,?>> |
getLastMissingIngredients() |
org.cyclops.commoncapabilities.api.capability.recipehandler.IRecipeDefinition |
getRecipe() |
long |
getStartTick() |
boolean |
isInvalidInputs() |
void |
removeDependency(CraftingJob dependency) |
static net.minecraft.nbt.CompoundNBT |
serialize(CraftingJob craftingJob) |
void |
setAmount(int amount) |
void |
setIngredientsStorage(org.cyclops.commoncapabilities.api.ingredient.IMixedIngredients ingredientsStorage) |
void |
setInitiatorUuid(java.lang.String initiatorUuid) |
void |
setInvalidInputs(boolean invalidInputs) |
void |
setLastMissingIngredients(java.util.Map<org.cyclops.commoncapabilities.api.ingredient.IngredientComponent<?,?>,MissingIngredients<?,?>> lastMissingIngredients) |
void |
setStartTick(long startTick) |
java.lang.String |
toString() |
public CraftingJob(int id,
int channel,
org.cyclops.commoncapabilities.api.capability.recipehandler.IRecipeDefinition recipe,
int amount,
org.cyclops.commoncapabilities.api.ingredient.IMixedIngredients ingredientsStorage)
public int getId()
public int getChannel()
public org.cyclops.commoncapabilities.api.capability.recipehandler.IRecipeDefinition getRecipe()
public it.unimi.dsi.fastutil.ints.IntList getDependencyCraftingJobs()
public it.unimi.dsi.fastutil.ints.IntList getDependentCraftingJobs()
public int getAmount()
public void setAmount(int amount)
public void addDependency(CraftingJob dependency)
public void removeDependency(CraftingJob dependency)
public org.cyclops.commoncapabilities.api.ingredient.IMixedIngredients getIngredientsStorage()
public void setIngredientsStorage(org.cyclops.commoncapabilities.api.ingredient.IMixedIngredients ingredientsStorage)
public java.util.Map<org.cyclops.commoncapabilities.api.ingredient.IngredientComponent<?,?>,MissingIngredients<?,?>> getLastMissingIngredients()
public void setLastMissingIngredients(java.util.Map<org.cyclops.commoncapabilities.api.ingredient.IngredientComponent<?,?>,MissingIngredients<?,?>> lastMissingIngredients)
public long getStartTick()
public void setStartTick(long startTick)
public boolean isInvalidInputs()
public void setInvalidInputs(boolean invalidInputs)
@Nullable public java.lang.String getInitiatorUuid()
public void setInitiatorUuid(java.lang.String initiatorUuid)
public static net.minecraft.nbt.CompoundNBT serialize(CraftingJob craftingJob)
public static CraftingJob deserialize(net.minecraft.nbt.CompoundNBT tag)
public java.lang.String toString()
toString in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic CraftingJob clone(CraftingHelpers.IIdentifierGenerator identifierGenerator)