Class BuildingResourcesModuleView

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

public class BuildingResourcesModuleView extends AbstractBuildingModuleView
  • Constructor Details

    • BuildingResourcesModuleView

      public BuildingResourcesModuleView()
  • Method Details

    • deserialize

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

      public int getWorkOrderId()
      Get the work order id.
      Returns:
      a string describing it.
    • getResources

      public Map<String,BuildingBuilderResource> getResources()
      Getter for the needed resources.
      Returns:
      a copy of the HashMap(String, Object).
    • getProgress

      public int getProgress()
      Get the building progress (relative to items used)
      Returns:
      the progress.
    • getCurrentStage

      public int getCurrentStage()
      Get the current stage status.
      Returns:
      the stage.
    • getTotalStages

      public int getTotalStages()
      Get the total number of stages,
      Returns:
      all stages.
    • 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.