Class AbstractCraftingBuildingModule.Smelting

All Implemented Interfaces:
IBuildingModule, ICraftingBuildingModule, ICreatesResolversModule, IHasRequiredItemsModule, IPersistentModule, ITickingModule, IHasDirty
Direct Known Subclasses:
BuildingBaker.SmeltingModule, BuildingDyer.SmeltingModule, BuildingGlassblower.SmeltingModule, BuildingKitchen.SmeltingModule, BuildingSmeltery.SmeltingModule, BuildingStoneSmeltery.SmeltingModule
Enclosing class:
AbstractCraftingBuildingModule

public abstract static class AbstractCraftingBuildingModule.Smelting extends AbstractCraftingBuildingModule
this module is for furnace-only users
  • Constructor Details

    • Smelting

      public Smelting(JobEntry jobEntry)
      Create a new module.
      Parameters:
      jobEntry - the entry of the job.
  • Method Details

    • getSupportedCraftingTypes

      public Set<CraftingType> getSupportedCraftingTypes()
      Description copied from interface: ICraftingBuildingModule
      Get the supported crafting types.
      Returns:
      a set of types.
    • isRecipeCompatible

      public boolean isRecipeCompatible(@NotNull @NotNull IGenericRecipe recipe)
      Description copied from interface: ICraftingBuildingModule
      Checks if this particular recipe is *possible* to be learned by this building (or otherwise possible to be crafted there). This is checked without regard to specific colony or level of building, or whether there are spare recipe slots or not.
      Parameters:
      recipe - The recipe to check.
      Returns:
      True if this recipe could be produced/taught.
    • getId

      @NotNull public @NotNull String getId()
      Get a string identifier to this.
      Specified by:
      getId in interface ICraftingBuildingModule
      Specified by:
      getId in class AbstractCraftingBuildingModule
      Returns:
      the id.