Class PartTypeInterfaceCrafting.State
java.lang.Object
org.cyclops.integrateddynamics.core.part.PartStateBase<P>
org.cyclops.integratedcrafting.core.part.PartTypeInterfaceCraftingBase.State<PartTypeInterfaceCrafting,PartTypeInterfaceCrafting.State>
org.cyclops.integratedcrafting.part.PartTypeInterfaceCrafting.State
- All Implemented Interfaces:
org.cyclops.cyclopscore.persist.IDirtyMarkListener,ICraftingInterface,ICraftingResultsSink,org.cyclops.integrateddynamics.api.part.IPartState<PartTypeInterfaceCrafting>
- Enclosing class:
- PartTypeInterfaceCrafting
public static class PartTypeInterfaceCrafting.State
extends PartTypeInterfaceCraftingBase.State<PartTypeInterfaceCrafting,PartTypeInterfaceCrafting.State>
-
Field Summary
FieldsFields inherited from class org.cyclops.integratedcrafting.core.part.PartTypeInterfaceCraftingBase.State
craftingNetwork, lastPlayer, network, partNetwork, valueDeseralizationContextFields inherited from interface org.cyclops.integrateddynamics.api.part.IPartState
GLOBALCOUNTER_KEY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionit.unimi.dsi.fastutil.ints.IntSetorg.cyclops.cyclopscore.inventory.SimpleInventoryCollection<org.cyclops.commoncapabilities.api.capability.recipehandler.IRecipeDefinition>it.unimi.dsi.fastutil.ints.Int2ObjectMap<org.cyclops.commoncapabilities.api.capability.recipehandler.IRecipeDefinition>net.minecraft.network.chat.MutableComponentgetRecipeSlotUnlocalizedMessage(int slot) booleanbooleanisRecipeSlotValid(int slot) voidonDirty()voidreadFromNBT(org.cyclops.integrateddynamics.api.evaluate.variable.ValueDeseralizationContext valueDeseralizationContext, net.minecraft.nbt.CompoundTag tag) protected voidreloadRecipe(int slot, boolean initialize) voidreloadRecipes(boolean initialize) voidsetDisableCraftingCheck(boolean disableCraftingCheck) voidwriteToNBT(net.minecraft.nbt.CompoundTag tag) Methods inherited from class org.cyclops.integratedcrafting.core.part.PartTypeInterfaceCraftingBase.State
addResult, cancelCraftingJob, canScheduleCraftingJobs, fillCraftingJobBufferFromStorage, flushInventoryOutputBuffer, getCapability, getChannel, getChannelCrafting, getCraftingJobHandler, getCraftingJobs, getCraftingJobsCount, getCraftingJobStatus, getCraftingNetwork, getDefaultUpdateInterval, getIngredientComponentTargetSideOverride, getInventoryOutputBuffer, getPendingCraftingJobOutputs, getPosition, getTarget, scheduleCraftingJob, setChannelCrafting, setIngredientComponentTargetSideOverride, setLastPlayer, setNetworks, setShouldAddToCraftingNetwork, setTarget, shouldAddToCraftingNetwork, wrapStorageCapabilityMethods inherited from class org.cyclops.integrateddynamics.core.part.PartStateBase
addVolatileCapability, clearInventoriesNamed, forceBlockRenderUpdate, gatherCapabilities, generateId, getAspectProperties, getId, getInventoriesNamed, getInventoryNamed, getMaxOffset, getOffsetVariableError, getPriority, getTargetOffset, getTargetSideOverride, getUpdateInterval, initializeOffsets, isDirtyAndReset, isEnabled, isForceBlockRenderUpdateAndReset, isUpdateAndReset, markDirty, markOffsetVariablesChanged, readAspectProperties, removeVolatileCapability, requiresOffsetUpdates, sendUpdate, setAspectProperties, setChannel, setEnabled, setInventoryNamed, setMaxOffset, setPriority, setTargetOffset, setTargetSideOverride, setUpdateInterval, updateOffsetVariables, writeAspectPropertiesMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.cyclops.integrateddynamics.api.part.IPartState
loadInventoryNamed, saveInventoryNamed
-
Field Details
-
ticksAfterReload
protected int ticksAfterReload
-
-
Constructor Details
-
State
public State()
-
-
Method Details
-
getInventoryVariables
public org.cyclops.cyclopscore.inventory.SimpleInventory getInventoryVariables()- Returns:
- The inner variables inventory
-
writeToNBT
public void writeToNBT(net.minecraft.nbt.CompoundTag tag) - Specified by:
writeToNBTin interfaceorg.cyclops.integrateddynamics.api.part.IPartState<PartTypeInterfaceCrafting>- Overrides:
writeToNBTin classPartTypeInterfaceCraftingBase.State<PartTypeInterfaceCrafting,PartTypeInterfaceCrafting.State>
-
readFromNBT
public void readFromNBT(org.cyclops.integrateddynamics.api.evaluate.variable.ValueDeseralizationContext valueDeseralizationContext, net.minecraft.nbt.CompoundTag tag) - Specified by:
readFromNBTin interfaceorg.cyclops.integrateddynamics.api.part.IPartState<PartTypeInterfaceCrafting>- Overrides:
readFromNBTin classPartTypeInterfaceCraftingBase.State<PartTypeInterfaceCrafting,PartTypeInterfaceCrafting.State>
-
reloadRecipes
public void reloadRecipes(boolean initialize) -
reloadRecipe
protected void reloadRecipe(int slot, boolean initialize) -
onDirty
public void onDirty()- Specified by:
onDirtyin interfaceorg.cyclops.cyclopscore.persist.IDirtyMarkListener- Overrides:
onDirtyin classorg.cyclops.integrateddynamics.core.part.PartStateBase<PartTypeInterfaceCrafting>
-
getRecipes
public Collection<org.cyclops.commoncapabilities.api.capability.recipehandler.IRecipeDefinition> getRecipes()- Returns:
- The collection of recipes that is exposed by this crafting interface.
-
getRecipesIndexed
public it.unimi.dsi.fastutil.ints.Int2ObjectMap<org.cyclops.commoncapabilities.api.capability.recipehandler.IRecipeDefinition> getRecipesIndexed() -
isRecipeSlotValid
public boolean isRecipeSlotValid(int slot) -
getRecipeSlotUnlocalizedMessage
@Nullable public net.minecraft.network.chat.MutableComponent getRecipeSlotUnlocalizedMessage(int slot) -
getDelayedRecipeReloads
public it.unimi.dsi.fastutil.ints.IntSet getDelayedRecipeReloads() -
setDisableCraftingCheck
public void setDisableCraftingCheck(boolean disableCraftingCheck) -
isDisableCraftingCheck
public boolean isDisableCraftingCheck()
-