Class PostBox.View
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
ClientSide representation of the building.
-
Field Summary
Fields inherited from class com.minecolonies.core.colony.buildings.views.AbstractBuildingView
moduleViews -
Constructor Summary
ConstructorsConstructorDescriptionView(IColonyView c, net.minecraft.core.BlockPos l) Instantiates the view of the building. -
Method Summary
Modifier and TypeMethodDescription@NotNull net.minecraft.network.chat.MutableComponentgetRequesterDisplayName(@NotNull IRequestManager manager, @NotNull IRequest<?> request) Gets the name of the requester that requested the request given by the token.@NotNull com.ldtteam.blockui.views.BOWindowWill return the window if this building has an associated blockui window.Methods inherited from class com.minecolonies.core.colony.buildings.views.AbstractBuildingView
allowsAssignment, deserialize, getAllAssignedCitizens, getAllModuleViews, getBuildingDmPrio, getBuildingLevel, getBuildingMaxLevel, getBuildingType, getCitizensByRequest, getClaimRadius, getColony, getContainers, getCurrentWorkOrderLevel, getCustomName, getId, getID, getLocation, getModuleView, getModuleView, getModuleViewByType, getModuleViewMatching, getModuleViews, getOpenRequests, getOpenRequestsByCitizen, getOpenRequestsOfBuilding, getOpenRequestsOfType, getOpenRequestsOfTypeFiltered, getParent, getPosition, getPrestige, getResolverIds, getRotation, getStructurePack, getStructurePath, hasModuleView, hasWorkOrder, isBuilding, isBuildingMaxLevel, isDeconstructed, isDeconstructing, isMirrored, isRepairing, onRequestedRequestCancelled, onRequestedRequestComplete, openGui, registerModule, setBuildingType, setCustomNameMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.minecolonies.api.colony.buildings.views.IBuildingView
getBuildingDisplayName, getHoverWarningForLevel, getRangeMethods inherited from interface com.minecolonies.api.colony.buildings.ICommonBuilding
getBuildingLevelEquivalent
-
Constructor Details
-
View
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:AbstractBuildingViewWill return the window if this building has an associated blockui window.- Specified by:
getWindowin interfaceIBuildingView- Overrides:
getWindowin classAbstractBuildingView- 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:IRequesterGets the name of the requester that requested the request given by the token.- Specified by:
getRequesterDisplayNamein interfaceIRequester- Overrides:
getRequesterDisplayNamein classAbstractBuildingView- Parameters:
manager- the request manager.request- the request for which the name of the requester is retrieved- Returns:
- The display name of the requester.
-