Class AbstractCraftingBuildingModule.Domum
java.lang.Object
com.minecolonies.api.colony.buildings.modules.AbstractBuildingModule
com.minecolonies.core.colony.buildings.modules.AbstractCraftingBuildingModule
com.minecolonies.core.colony.buildings.modules.AbstractCraftingBuildingModule.Domum
- All Implemented Interfaces:
IBuildingModule,ICraftingBuildingModule,ICreatesResolversModule,IHasRequiredItemsModule,IPersistentModule,ITickingModule,IHasDirty
- Direct Known Subclasses:
BuildingFletcher.DOCraftingModule,BuildingGlassblower.DOCraftingModule,BuildingMechanic.DOCraftingModule,BuildingSawmill.DOCraftingModule,BuildingStonemason.DOCraftingModule
- Enclosing class:
AbstractCraftingBuildingModule
public abstract static class AbstractCraftingBuildingModule.Domum
extends AbstractCraftingBuildingModule
this module is for Domum Ornamentum cutter recipes
-
Nested Class Summary
Nested classes/interfaces inherited from class com.minecolonies.core.colony.buildings.modules.AbstractCraftingBuildingModule
AbstractCraftingBuildingModule.Brewing, AbstractCraftingBuildingModule.Crafting, AbstractCraftingBuildingModule.Custom, AbstractCraftingBuildingModule.Domum, AbstractCraftingBuildingModule.Smelting -
Field Summary
Fields inherited from class com.minecolonies.core.colony.buildings.modules.AbstractCraftingBuildingModule
building, disabledRecipes, jobEntry, RECIPE_MODE, recipesFields inherited from class com.minecolonies.api.colony.buildings.modules.AbstractBuildingModule
isDirty -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription@NotNull StringgetId()Gets an id *suffix* for this particular crafting module, to disambiguate between multiple modules with the same job.Get the supported crafting types.booleanisRecipeCompatible(@NotNull IGenericRecipe recipe) Checks if this particular recipe is *possible* to be learned by this building (or otherwise possible to be crafted there).Methods inherited from class com.minecolonies.core.colony.buildings.modules.AbstractCraftingBuildingModule
addRecipe, addRecipeToList, canLearnManyRecipes, canRecipeBeAdded, checkForWorkerSpecificRecipes, clearRecipes, createResolvers, deserializeNBT, fullFillRecipe, getAdditionalRecipesForDisplayPurposesOnly, getCraftingJob, getCraftingLuck, getCraftingTool, getCustomRecipeKey, getFirstFulfillableRecipe, getFirstRecipe, getFirstRecipe, getIngredientValidator, getMaxRecipes, getRecipes, getRequiredItemsAndAmount, getWarehouseCount, handleRecipeUpdate, holdsRecipe, improveRecipe, isDisabled, isPreTaughtRecipe, isRecipeCompatibleWithCraftingModule, isVisible, onColonyTick, removeRecipe, replaceRecipe, reservedStacksExcluding, serializeNBT, serializeToView, setBuilding, switchOrder, toggle, updateWorkerAvailableForRecipesMethods inherited from class com.minecolonies.api.colony.buildings.modules.AbstractBuildingModule
checkDirty, clearDirty, getBuilding, getProducer, markDirty, setProducerMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.minecolonies.api.colony.buildings.modules.IBuildingModule
getBuilding, getProducer, serializeToView, setProducerMethods inherited from interface com.minecolonies.api.colony.buildings.modules.ICraftingBuildingModule
canLearn, getAdditionalLootTables, getUidMethods inherited from interface com.minecolonies.api.util.IHasDirty
checkDirty, clearDirty, markDirtyMethods inherited from interface com.minecolonies.api.colony.buildings.modules.IHasRequiredItemsModule
reservedStacks
-
Constructor Details
-
Domum
Create a new module.- Parameters:
jobEntry- the entry of the job.
-
-
Method Details
-
getSupportedCraftingTypes
Description copied from interface:ICraftingBuildingModuleGet the supported crafting types.- Returns:
- a set of types.
-
isRecipeCompatible
Description copied from interface:ICraftingBuildingModuleChecks 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
Description copied from interface:ICraftingBuildingModuleGets an id *suffix* for this particular crafting module, to disambiguate between multiple modules with the same job. This is not unique by itself.- Specified by:
getIdin interfaceICraftingBuildingModule- Specified by:
getIdin classAbstractCraftingBuildingModule- Returns:
- The disambiguating id suffix.
-