java.lang.Object
com.minecolonies.core.colony.buildings.views.AbstractBuildingView
com.minecolonies.core.colony.buildings.workerbuildings.PostBox.View
All Implemented Interfaces:
ICommonBuilding, IBuildingView, IModuleContainerView, IRequester
Enclosing class:
PostBox

public static class PostBox.View extends AbstractBuildingView
ClientSide representation of the building.
  • Constructor Details

    • View

      public View(IColonyView c, net.minecraft.core.BlockPos l)
      Instantiates the view of the building.
      Parameters:
      c - the colonyView.
      l - the location of the block.
  • Method Details

    • getWindow

      @NotNull public @NotNull com.ldtteam.blockui.views.BOWindow getWindow()
      Description copied from class: AbstractBuildingView
      Will return the window if this building has an associated blockui window.
      Specified by:
      getWindow in interface IBuildingView
      Overrides:
      getWindow in class AbstractBuildingView
      Returns:
      blockui window.
    • getRequesterDisplayName

      @NotNull public @NotNull net.minecraft.network.chat.MutableComponent getRequesterDisplayName(@NotNull @NotNull IRequestManager manager, @NotNull @NotNull IRequest<?> request)
      Description copied from interface: IRequester
      Gets the name of the requester that requested the request given by the token.
      Specified by:
      getRequesterDisplayName in interface IRequester
      Overrides:
      getRequesterDisplayName in class AbstractBuildingView
      Parameters:
      manager - the request manager.
      request - the request for which the name of the requester is retrieved
      Returns:
      The display name of the requester.