Class AbstractCraftingBuildingModule.Custom

All Implemented Interfaces:
IBuildingModule, ICraftingBuildingModule, ICreatesResolversModule, IHasRequiredItemsModule, IPersistentModule, ITickingModule, IHasDirty
Direct Known Subclasses:
AbstractDOCraftingBuildingModule, BuildingConcreteMixer.CraftingModule, BuildingCrusher.CraftingModule, BuildingEnchanter.CraftingModule, BuildingLumberjack.CraftingModule, BuildingNetherWorker.CraftingModule, BuildingSifter.CraftingModule, BuildingSmeltery.OreBreakingModule
Enclosing class:
AbstractCraftingBuildingModule

public abstract static class AbstractCraftingBuildingModule.Custom extends AbstractCraftingBuildingModule
this module is for those who can't be taught recipes but can still use custom recipes
  • Constructor Details

    • Custom

      public Custom(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.