Class MinerLevelManagementModuleView

java.lang.Object
com.minecolonies.api.colony.buildings.modules.AbstractBuildingModuleView
com.minecolonies.core.colony.buildings.moduleviews.MinerLevelManagementModuleView
All Implemented Interfaces:
IBuildingModuleView

public class MinerLevelManagementModuleView extends AbstractBuildingModuleView
Miner guard assignment module.
  • Field Details

    • levelsInfo

      public List<net.minecraft.util.Tuple<Integer,Integer>> levelsInfo
      The tuple of number of nodes and y depth per all levels.
    • current

      public int current
      The level the miner currently works on.
  • Constructor Details

    • MinerLevelManagementModuleView

      public MinerLevelManagementModuleView()
  • Method Details

    • deserialize

      public void deserialize(@NotNull @NotNull net.minecraft.network.FriendlyByteBuf buf)
      Description copied from interface: IBuildingModuleView
      Deserialize the data on the client side.
      Parameters:
      buf - the buffer to read it from.
    • getWindow

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

      public net.minecraft.resources.ResourceLocation getIconResourceLocation()
      Description copied from interface: IBuildingModuleView
      Get the resource location of the icon for the module view.
      Returns:
      the resource location.
    • getDesc

      public net.minecraft.network.chat.Component getDesc()
      Description copied from interface: IBuildingModuleView
      Get the lang string for the title.
      Returns:
      the lang string.
    • isPageVisible

      public boolean isPageVisible()
      Description copied from interface: IBuildingModuleView
      Whether this module appears as a GUI page.
      Returns:
      true to show the GUI page.
    • doesWorkOrderExist

      public boolean doesWorkOrderExist(int row)
      Check if there is a workorder for this node already.
      Parameters:
      row - the row of the level.
      Returns:
      true if so.