Class BuildingTownHall.View
java.lang.Object
com.minecolonies.core.colony.buildings.views.AbstractBuildingView
com.minecolonies.core.colony.buildings.workerbuildings.BuildingTownHall.View
- All Implemented Interfaces:
ICommonBuilding,IBuildingView,IModuleContainerView,ITownHallView,IRequester
- Enclosing class:
BuildingTownHall
ClientSide representation of the building.
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.minecolonies.api.colony.buildings.workerbuildings.ITownHallView
ITownHallView.MapEntry -
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 TypeMethodDescriptionbooleanCheck if the player can use the teleport command.voiddeserialize(@NotNull net.minecraft.network.RegistryFriendlyByteBuf buf) Read this view from aRegistryFriendlyByteBuf.Gets a list if colony events.Getter for the mapdata.Get a list of permission events.@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, 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, getRequesterDisplayName, getResolverIds, getRotationMirror, getStructurePack, getStructurePath, hasModuleView, hasWorkOrder, isBuilding, isBuildingMaxLevel, isDeconstructed, isDeconstructing, 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
allowsAssignment, getAllAssignedCitizens, getBuildingDisplayName, getBuildingDmPrio, getBuildingMaxLevel, getClaimRadius, getColony, getCurrentWorkOrderLevel, getCustomName, getHoverWarningForLevel, getID, getOpenRequests, getOpenRequestsByCitizen, getOpenRequestsOfBuilding, getOpenRequestsOfType, getOpenRequestsOfTypeFiltered, getParent, getRange, getResolverIds, getRotationMirror, getStructurePack, getStructurePath, hasWorkOrder, isBuilding, isBuildingMaxLevel, isDeconstructed, isDeconstructing, isRepairing, openGui, setBuildingType, setCustomNameMethods inherited from interface com.minecolonies.api.colony.buildings.ICommonBuilding
getBuildingLevel, getBuildingLevelEquivalent, getBuildingType, getContainers, getPosition, getPrestigeMethods inherited from interface com.minecolonies.api.colony.buildings.views.IModuleContainerView
getAllModuleViews, getModuleView, getModuleView, getModuleViewByType, getModuleViewMatching, getModuleViews, hasModuleView, registerModuleMethods inherited from interface com.minecolonies.api.colony.requestsystem.requester.IRequester
getId, getLocation, getRequesterDisplayName, onRequestedRequestCancelled, onRequestedRequestComplete
-
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.
-
deserialize
public void deserialize(@NotNull @NotNull net.minecraft.network.RegistryFriendlyByteBuf buf) Description copied from class:AbstractBuildingViewRead this view from aRegistryFriendlyByteBuf.- Specified by:
deserializein interfaceIBuildingView- Overrides:
deserializein classAbstractBuildingView- Parameters:
buf- The buffer to read this view from.
-
getPermissionEvents
Description copied from interface:ITownHallViewGet a list of permission events.- Specified by:
getPermissionEventsin interfaceITownHallView- Returns:
- a copy of the list of events.
-
getColonyEvents
Description copied from interface:ITownHallViewGets a list if colony events.- Specified by:
getColonyEventsin interfaceITownHallView- Returns:
- a copy of the list of events.
-
canPlayerUseTP
public boolean canPlayerUseTP()Description copied from interface:ITownHallViewCheck if the player can use the teleport command.- Specified by:
canPlayerUseTPin interfaceITownHallView- Returns:
- true if so.
-
getMapDataList
Description copied from interface:ITownHallViewGetter for the mapdata.- Specified by:
getMapDataListin interfaceITownHallView- Returns:
- the original list.
-