Class EnchanterStationsModuleView

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

public class EnchanterStationsModuleView extends AbstractBuildingModuleView
  • Constructor Details

    • EnchanterStationsModuleView

      public EnchanterStationsModuleView()
  • 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.
    • getBuildingsToGatherFrom

      public List<net.minecraft.core.BlockPos> getBuildingsToGatherFrom()
      Getter for the list.
      Returns:
      the list.
    • addWorker

      public void addWorker(net.minecraft.core.BlockPos blockPos)
      Add a new worker to gather xp from.
      Parameters:
      blockPos - the pos of the building.
    • removeWorker

      public void removeWorker(net.minecraft.core.BlockPos blockPos)
      Remove a worker to stop gathering from.
      Parameters:
      blockPos - the pos of that worker.
    • 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.