Class BuildingShepherd.HerdingModule
java.lang.Object
com.minecolonies.api.colony.buildings.modules.AbstractBuildingModule
com.minecolonies.core.colony.buildings.modules.AnimalHerdingModule
com.minecolonies.core.colony.buildings.workerbuildings.BuildingShepherd.HerdingModule
- All Implemented Interfaces:
IBuildingModule,IHasRequiredItemsModule,IHasDirty
- Enclosing class:
- BuildingShepherd
Sheep herding module
-
Field Summary
Fields inherited from class com.minecolonies.api.colony.buildings.modules.AbstractBuildingModule
building, isDirty -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription@NotNull List<IGenericRecipe>getRecipesForDisplayPurposesOnly(@NotNull net.minecraft.world.entity.animal.Animal animal) Get a list of "recipes" for items obtainable by herding the given animal.Methods inherited from class com.minecolonies.core.colony.buildings.modules.AnimalHerdingModule
getBreedingItems, getHerdingJob, getLootTables, getRequiredItemsAndAmount, isCompatible, reservedStacksExcludingMethods inherited from class com.minecolonies.api.colony.buildings.modules.AbstractBuildingModule
checkDirty, clearDirty, getBuilding, getProducer, markDirty, setBuilding, 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, serializeToView, setBuilding, setProducerMethods inherited from interface com.minecolonies.api.util.IHasDirty
checkDirty, clearDirty, markDirtyMethods inherited from interface com.minecolonies.api.colony.buildings.modules.IHasRequiredItemsModule
reservedStacks
-
Constructor Details
-
HerdingModule
public HerdingModule()
-
-
Method Details
-
getRecipesForDisplayPurposesOnly
@NotNull public @NotNull List<IGenericRecipe> getRecipesForDisplayPurposesOnly(@NotNull @NotNull net.minecraft.world.entity.animal.Animal animal) Description copied from class:AnimalHerdingModuleGet a list of "recipes" for items obtainable by herding the given animal. This can include loot drops for killing the animal as well as anything else acquired through other means. These are purely for JEI display purposes and don't have to represent actual crafting recipes.- Overrides:
getRecipesForDisplayPurposesOnlyin classAnimalHerdingModule- Parameters:
animal- An example animal. (Don't use specific properties of this; it's only for checking type.)- Returns:
- the list of additional display recipes.
-