Class BuildingFarmer.FarmerFieldsModuleView

All Implemented Interfaces:
IBuildingModuleView
Enclosing class:
BuildingFarmer

public static class BuildingFarmer.FarmerFieldsModuleView extends FieldsModuleView
Field module view implementation for the farmer.
  • Constructor Details

    • FarmerFieldsModuleView

      public FarmerFieldsModuleView()
  • Method Details

    • getWindow

      public com.ldtteam.blockui.views.BOWindow getWindow()
      Description copied from interface: IBuildingModuleView
      Get the matching window for the module.
      Returns:
      the window.
    • canAssignFieldOverride

      public boolean canAssignFieldOverride(IBuildingExtension field)
      Description copied from class: FieldsModuleView
      Additional checks to see if this field can be assigned to the building.
      Specified by:
      canAssignFieldOverride in class FieldsModuleView
      Parameters:
      field - the field which is being added.
      Returns:
      true if so.
    • getFieldsInColony

      protected List<IBuildingExtension> getFieldsInColony()
      Description copied from class: FieldsModuleView
      Obtains the list of fields from the colony.
      Specified by:
      getFieldsInColony in class FieldsModuleView
      Returns:
      the list of field instances.
    • getFieldWarningTooltip

      @Nullable public @Nullable net.minecraft.network.chat.MutableComponent getFieldWarningTooltip(IBuildingExtension field)
      Description copied from class: FieldsModuleView
      Get a warning text component for the specific field whenever this field cannot be assigned for any reason.
      Overrides:
      getFieldWarningTooltip in class FieldsModuleView
      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.