Class BuildingFarmer.FarmerFieldsModuleView
java.lang.Object
com.minecolonies.api.colony.buildings.modules.AbstractBuildingModuleView
com.minecolonies.core.colony.buildings.moduleviews.FieldsModuleView
com.minecolonies.core.colony.buildings.workerbuildings.BuildingFarmer.FarmerFieldsModuleView
- All Implemented Interfaces:
IBuildingModuleView
- Enclosing class:
BuildingFarmer
Field module view implementation for the farmer.
-
Field Summary
Fields inherited from class com.minecolonies.api.colony.buildings.modules.AbstractBuildingModuleView
buildingView, colonyView -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanAdditional checks to see if this field can be assigned to the building.protected List<IBuildingExtension> Obtains the list of fields from the colony.@Nullable net.minecraft.network.chat.MutableComponentGet a warning text component for the specific field whenever this field cannot be assigned for any reason.com.ldtteam.blockui.views.BOWindowGet the matching window for the module.Methods inherited from class com.minecolonies.core.colony.buildings.moduleviews.FieldsModuleView
assignField, assignFieldManually, canAssignField, deserialize, freeField, getDesc, getFields, getIconResourceLocation, getMaxFieldCount, getOwnedFields, setAssignFieldManuallyMethods inherited from class com.minecolonies.api.colony.buildings.modules.AbstractBuildingModuleView
canBeHiredAs, getBuildingView, getColony, getProducer, setBuildingView, setColonyView, 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.IBuildingModuleView
getIcon, isPageVisible
-
Constructor Details
-
FarmerFieldsModuleView
public FarmerFieldsModuleView()
-
-
Method Details
-
getWindow
public com.ldtteam.blockui.views.BOWindow getWindow()Description copied from interface:IBuildingModuleViewGet the matching window for the module.- Returns:
- the window.
-
canAssignFieldOverride
Description copied from class:FieldsModuleViewAdditional checks to see if this field can be assigned to the building.- Specified by:
canAssignFieldOverridein classFieldsModuleView- Parameters:
field- the field which is being added.- Returns:
- true if so.
-
getFieldsInColony
Description copied from class:FieldsModuleViewObtains the list of fields from the colony.- Specified by:
getFieldsInColonyin classFieldsModuleView- Returns:
- the list of field instances.
-
getFieldWarningTooltip
@Nullable public @Nullable net.minecraft.network.chat.MutableComponent getFieldWarningTooltip(IBuildingExtension field) Description copied from class:FieldsModuleViewGet a warning text component for the specific field whenever this field cannot be assigned for any reason.- Overrides:
getFieldWarningTooltipin classFieldsModuleView- Parameters:
field- the field in question.- Returns:
- a text component that should be shown if there is a problem for the specific field, else null.
-