Class BuildingBeekeeper.HerdingModule
java.lang.Object
com.minecolonies.api.colony.buildings.modules.AbstractBuildingModule
com.minecolonies.core.colony.buildings.modules.AnimalHerdingModule
com.minecolonies.core.colony.buildings.workerbuildings.BuildingBeekeeper.HerdingModule
- All Implemented Interfaces:
IBuildingModule,IHasRequiredItemsModule,IHasDirty
- Enclosing class:
- BuildingBeekeeper
Bee 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<ItemStorage>Gets the item required to breed the animal.@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
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
-
getBreedingItems
Description copied from class:AnimalHerdingModuleGets the item required to breed the animal.- Overrides:
getBreedingItemsin classAnimalHerdingModule- Returns:
- The animal's preferred breeding item (as a list of alternatives).
-
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.
-