Class LivingBuildingModuleView

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

public class LivingBuildingModuleView extends AbstractBuildingModuleView
Client side version of the living building module.
  • Constructor Details

    • LivingBuildingModuleView

      public LivingBuildingModuleView()
  • Method Details

    • getAssignedCitizens

      public List<Integer> getAssignedCitizens()
      Get the list of residents
      Returns:
    • remove

      public void remove(int id)
      Remove a resident by citizen data id
      Parameters:
      id -
    • add

      public void add(int id)
      Add a resident by citizen data id
      Parameters:
      id -
    • getDesc

      public net.minecraft.network.chat.Component getDesc()
      Description copied from interface: IBuildingModuleView
      Get the lang string for the title.
      Returns:
      the lang string.
    • 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.
    • isPageVisible

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

      public int getMax()
    • getHiringMode

      public HiringMode getHiringMode()
    • setHiringMode

      public void setHiringMode(HiringMode value)