Class AbstractBuildingGuards.View
java.lang.Object
com.minecolonies.core.colony.buildings.views.AbstractBuildingView
com.minecolonies.core.colony.buildings.AbstractBuildingGuards.View
- All Implemented Interfaces:
ICommonBuilding,IBuildingView,IModuleContainerView,IRequester
- Direct Known Subclasses:
BuildingGateHouse.View,BuildingGuardTower.View
- Enclosing class:
AbstractBuildingGuards
The client view for the Guard building.
-
Field Summary
Fields inherited from class com.minecolonies.core.colony.buildings.views.AbstractBuildingView
moduleViews -
Constructor Summary
ConstructorsConstructorDescriptionView(IColonyView c, @NotNull net.minecraft.core.BlockPos l) The client view constructor for the AbstractGuardBuilding. -
Method Summary
Modifier and TypeMethodDescriptionvoiddeserialize(@NotNull net.minecraft.network.RegistryFriendlyByteBuf buf) Read this view from aRegistryFriendlyByteBuf.Getter for the list of residents.net.minecraft.core.BlockPosReturn the position of the mine the guard is patrollingList<net.minecraft.core.BlockPos> intgetRange()Get functional range around building.voidsetMinePos(net.minecraft.core.BlockPos pos) Set the position of the mine the guard is patrollingMethods 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, getWindow, 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
getBuildingDisplayName, getHoverWarningForLevelMethods inherited from interface com.minecolonies.api.colony.buildings.ICommonBuilding
getBuildingLevelEquivalent
-
Constructor Details
-
View
The client view constructor for the AbstractGuardBuilding.- Parameters:
c- the colony.l- the location.
-
-
Method Details
-
getGuards
Getter for the list of residents.- Returns:
- an unmodifiable list.
-
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.
-
getPatrolTargets
-
getMinePos
public net.minecraft.core.BlockPos getMinePos()Return the position of the mine the guard is patrolling- Returns:
- the position of the mine
-
setMinePos
public void setMinePos(net.minecraft.core.BlockPos pos) Set the position of the mine the guard is patrolling- Parameters:
pos- the position of the mine
-
getRange
public int getRange()Description copied from interface:IBuildingViewGet functional range around building.- Returns:
- the range.
-