Class PartTypeInterfaceCrafting.State

java.lang.Object
org.cyclops.integrateddynamics.core.part.PartStateBase<P>
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 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:
      writeToNBT in interface org.cyclops.integrateddynamics.api.part.IPartState<PartTypeInterfaceCrafting>
      Overrides:
      writeToNBT in class PartTypeInterfaceCraftingBase.State<PartTypeInterfaceCrafting,PartTypeInterfaceCrafting.State>
    • readFromNBT

      public void readFromNBT(org.cyclops.integrateddynamics.api.evaluate.variable.ValueDeseralizationContext valueDeseralizationContext, net.minecraft.nbt.CompoundTag tag)
      Specified by:
      readFromNBT in interface org.cyclops.integrateddynamics.api.part.IPartState<PartTypeInterfaceCrafting>
      Overrides:
      readFromNBT in class PartTypeInterfaceCraftingBase.State<PartTypeInterfaceCrafting,PartTypeInterfaceCrafting.State>
    • reloadRecipes

      public void reloadRecipes(boolean initialize)
      Overrides:
      reloadRecipes in class PartTypeInterfaceCraftingBase.State<PartTypeInterfaceCrafting,PartTypeInterfaceCrafting.State>
    • reloadRecipe

      protected void reloadRecipe(int slot, boolean initialize)
    • onDirty

      public void onDirty()
      Specified by:
      onDirty in interface org.cyclops.cyclopscore.persist.IDirtyMarkListener
      Overrides:
      onDirty in class org.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()