public static class PartTypeInterfaceCrafting.State extends org.cyclops.integrateddynamics.core.part.PartStateBase<PartTypeInterfaceCrafting> implements ICraftingInterface, ICraftingResultsSink
| Constructor and Description |
|---|
State() |
| Modifier and Type | Method and Description |
|---|---|
<T,M> void |
addResult(org.cyclops.commoncapabilities.api.ingredient.IngredientComponent<T,M> ingredientComponent,
T instance)
Add the given instance.
|
void |
cancelCraftingJob(int channel,
int craftingJobId)
Cancel the given crafting job.
|
boolean |
canScheduleCraftingJobs() |
<T> net.minecraftforge.common.util.LazyOptional<T> |
getCapability(net.minecraftforge.common.capabilities.Capability<T> capability,
org.cyclops.integrateddynamics.api.network.INetwork network,
org.cyclops.integrateddynamics.api.network.IPartNetwork partNetwork,
org.cyclops.integrateddynamics.api.part.PartTarget target) |
int |
getChannel() |
int |
getChannelCrafting() |
CraftingJobHandler |
getCraftingJobHandler() |
java.util.Iterator<CraftingJob> |
getCraftingJobs() |
int |
getCraftingJobsCount() |
CraftingJobStatus |
getCraftingJobStatus(ICraftingNetwork network,
int channel,
int craftingJobId)
Get the status for the given crafting job.
|
ICraftingNetwork |
getCraftingNetwork() |
protected int |
getDefaultUpdateInterval() |
it.unimi.dsi.fastutil.ints.IntSet |
getDelayedRecipeReloads() |
net.minecraft.util.Direction |
getIngredientComponentTargetSideOverride(org.cyclops.commoncapabilities.api.ingredient.IngredientComponent<?,?> ingredientComponent) |
java.util.List<org.cyclops.commoncapabilities.api.ingredient.IngredientInstanceWrapper<?,?>> |
getInventoryOutputBuffer() |
org.cyclops.cyclopscore.inventory.SimpleInventory |
getInventoryVariables() |
java.util.Map<org.cyclops.commoncapabilities.api.ingredient.IngredientComponent<?,?>,java.util.List<org.cyclops.commoncapabilities.api.ingredient.IPrototypedIngredient<?,?>>> |
getPendingCraftingJobOutputs(int craftingJobId)
Get the pending outputs for the given crafting job.
|
org.cyclops.integrateddynamics.api.part.PrioritizedPartPos |
getPosition() |
java.util.Collection<org.cyclops.commoncapabilities.api.capability.recipehandler.IRecipeDefinition> |
getRecipes() |
it.unimi.dsi.fastutil.ints.Int2ObjectMap<org.cyclops.commoncapabilities.api.capability.recipehandler.IRecipeDefinition> |
getRecipesIndexed() |
net.minecraft.util.text.IFormattableTextComponent |
getRecipeSlotUnlocalizedMessage(int slot) |
org.cyclops.integrateddynamics.api.part.PartTarget |
getTarget() |
boolean |
isDisableCraftingCheck() |
boolean |
isRecipeSlotValid(int slot) |
void |
onDirty() |
void |
readFromNBT(net.minecraft.nbt.CompoundNBT tag) |
protected void |
reloadRecipe(int slot) |
void |
reloadRecipes() |
void |
scheduleCraftingJob(CraftingJob craftingJob)
Add the given crafting job to the list of crafting jobs.
|
void |
setChannelCrafting(int channelCrafting) |
void |
setDisableCraftingCheck(boolean disableCraftingCheck) |
void |
setIngredientComponentTargetSideOverride(org.cyclops.commoncapabilities.api.ingredient.IngredientComponent<?,?> ingredientComponent,
net.minecraft.util.Direction side) |
void |
setLastPlayer(net.minecraft.entity.player.PlayerEntity lastPlayer) |
void |
setNetworks(org.cyclops.integrateddynamics.api.network.INetwork network,
ICraftingNetwork craftingNetwork,
org.cyclops.integrateddynamics.api.network.IPartNetwork partNetwork,
int channel) |
void |
setShouldAddToCraftingNetwork(boolean shouldAddToCraftingNetwork) |
void |
setTarget(org.cyclops.integrateddynamics.api.part.PartTarget target) |
boolean |
shouldAddToCraftingNetwork() |
protected <C,T,M> C |
wrapStorageCapability(net.minecraftforge.common.capabilities.Capability<C> capability,
org.cyclops.commoncapabilities.api.ingredient.IngredientComponent<T,M> ingredientComponent) |
void |
writeToNBT(net.minecraft.nbt.CompoundNBT tag) |
addVolatileCapability, forceBlockRenderUpdate, gatherCapabilities, generateId, getAspectProperties, getId, getPriority, getTargetSideOverride, getUpdateInterval, isDirtyAndReset, isEnabled, isForceBlockRenderUpdateAndReset, isUpdateAndReset, readAspectProperties, removeVolatileCapability, sendUpdate, setAspectProperties, setChannel, setEnabled, setPriority, setTargetSideOverride, setUpdateInterval, writeAspectPropertiesclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcreateComparatorprotected int getDefaultUpdateInterval()
getDefaultUpdateInterval in class org.cyclops.integrateddynamics.core.part.PartStateBase<PartTypeInterfaceCrafting>public org.cyclops.cyclopscore.inventory.SimpleInventory getInventoryVariables()
public void writeToNBT(net.minecraft.nbt.CompoundNBT tag)
writeToNBT in interface org.cyclops.integrateddynamics.api.part.IPartState<PartTypeInterfaceCrafting>writeToNBT in class org.cyclops.integrateddynamics.core.part.PartStateBase<PartTypeInterfaceCrafting>public void readFromNBT(net.minecraft.nbt.CompoundNBT tag)
readFromNBT in interface org.cyclops.integrateddynamics.api.part.IPartState<PartTypeInterfaceCrafting>readFromNBT in class org.cyclops.integrateddynamics.core.part.PartStateBase<PartTypeInterfaceCrafting>public void setChannelCrafting(int channelCrafting)
public int getChannelCrafting()
public void reloadRecipes()
protected void reloadRecipe(int slot)
public void setLastPlayer(net.minecraft.entity.player.PlayerEntity lastPlayer)
public void onDirty()
onDirty in interface org.cyclops.cyclopscore.persist.IDirtyMarkListeneronDirty in class org.cyclops.integrateddynamics.core.part.PartStateBase<PartTypeInterfaceCrafting>public void setTarget(org.cyclops.integrateddynamics.api.part.PartTarget target)
public org.cyclops.integrateddynamics.api.part.PartTarget getTarget()
public void setNetworks(@Nullable
org.cyclops.integrateddynamics.api.network.INetwork network,
@Nullable
ICraftingNetwork craftingNetwork,
@Nullable
org.cyclops.integrateddynamics.api.network.IPartNetwork partNetwork,
int channel)
public ICraftingNetwork getCraftingNetwork()
public int getChannel()
getChannel in interface org.cyclops.integrateddynamics.api.part.IPartState<PartTypeInterfaceCrafting>getChannel in class org.cyclops.integrateddynamics.core.part.PartStateBase<PartTypeInterfaceCrafting>public java.util.Collection<org.cyclops.commoncapabilities.api.capability.recipehandler.IRecipeDefinition> getRecipes()
getRecipes in interface ICraftingInterfacepublic it.unimi.dsi.fastutil.ints.Int2ObjectMap<org.cyclops.commoncapabilities.api.capability.recipehandler.IRecipeDefinition> getRecipesIndexed()
public boolean canScheduleCraftingJobs()
canScheduleCraftingJobs in interface ICraftingInterfacepublic void scheduleCraftingJob(CraftingJob craftingJob)
ICraftingInterfacescheduleCraftingJob in interface ICraftingInterfacecraftingJob - The crafting job.public int getCraftingJobsCount()
getCraftingJobsCount in interface ICraftingInterfacepublic java.util.Iterator<CraftingJob> getCraftingJobs()
getCraftingJobs in interface ICraftingInterfacepublic java.util.Map<org.cyclops.commoncapabilities.api.ingredient.IngredientComponent<?,?>,java.util.List<org.cyclops.commoncapabilities.api.ingredient.IPrototypedIngredient<?,?>>> getPendingCraftingJobOutputs(int craftingJobId)
ICraftingInterfacegetPendingCraftingJobOutputs in interface ICraftingInterfacecraftingJobId - A crafting job id.public CraftingJobStatus getCraftingJobStatus(ICraftingNetwork network, int channel, int craftingJobId)
ICraftingInterfacegetCraftingJobStatus in interface ICraftingInterfacenetwork - The network.channel - The channel.craftingJobId - A crafting job id.public void cancelCraftingJob(int channel,
int craftingJobId)
ICraftingInterfaceICraftingNetwork.cancelCraftingJob(int, int).cancelCraftingJob in interface ICraftingInterfacechannel - The channel.craftingJobId - A crafting job id.public org.cyclops.integrateddynamics.api.part.PrioritizedPartPos getPosition()
getPosition in interface ICraftingInterfacepublic CraftingJobHandler getCraftingJobHandler()
public boolean shouldAddToCraftingNetwork()
public void setShouldAddToCraftingNetwork(boolean shouldAddToCraftingNetwork)
public java.util.List<org.cyclops.commoncapabilities.api.ingredient.IngredientInstanceWrapper<?,?>> getInventoryOutputBuffer()
public <T> net.minecraftforge.common.util.LazyOptional<T> getCapability(net.minecraftforge.common.capabilities.Capability<T> capability,
org.cyclops.integrateddynamics.api.network.INetwork network,
org.cyclops.integrateddynamics.api.network.IPartNetwork partNetwork,
org.cyclops.integrateddynamics.api.part.PartTarget target)
getCapability in interface org.cyclops.integrateddynamics.api.part.IPartState<PartTypeInterfaceCrafting>getCapability in class org.cyclops.integrateddynamics.core.part.PartStateBase<PartTypeInterfaceCrafting>protected <C,T,M> C wrapStorageCapability(net.minecraftforge.common.capabilities.Capability<C> capability,
org.cyclops.commoncapabilities.api.ingredient.IngredientComponent<T,M> ingredientComponent)
public <T,M> void addResult(org.cyclops.commoncapabilities.api.ingredient.IngredientComponent<T,M> ingredientComponent,
T instance)
ICraftingResultsSinkaddResult in interface ICraftingResultsSinkT - The instance type.M - The matching condition parameter, may be Void.ingredientComponent - An ingredient component type.instance - An instance.public void setIngredientComponentTargetSideOverride(org.cyclops.commoncapabilities.api.ingredient.IngredientComponent<?,?> ingredientComponent,
net.minecraft.util.Direction side)
public net.minecraft.util.Direction getIngredientComponentTargetSideOverride(org.cyclops.commoncapabilities.api.ingredient.IngredientComponent<?,?> ingredientComponent)
public boolean isRecipeSlotValid(int slot)
@Nullable public net.minecraft.util.text.IFormattableTextComponent getRecipeSlotUnlocalizedMessage(int slot)
public it.unimi.dsi.fastutil.ints.IntSet getDelayedRecipeReloads()
public void setDisableCraftingCheck(boolean disableCraftingCheck)
public boolean isDisableCraftingCheck()