Class BuildingLumberjack.View
java.lang.Object
com.minecolonies.core.colony.buildings.views.AbstractBuildingView
com.minecolonies.core.colony.buildings.workerbuildings.BuildingLumberjack.View
- All Implemented Interfaces:
ICommonBuilding,IBuildingView,IModuleContainerView,IRequester
- Enclosing class:
- BuildingLumberjack
The client side 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 TypeMethodDescriptionvoiddeserialize(@NotNull net.minecraft.network.FriendlyByteBuf buf) Read this view from aFriendlyByteBuf.net.minecraft.core.BlockPosnet.minecraft.core.BlockPosbooleanMethods 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, getRotation, getStructurePack, getStructurePath, getWindow, 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
-
deserialize
public void deserialize(@NotNull @NotNull net.minecraft.network.FriendlyByteBuf buf) Description copied from class:AbstractBuildingViewRead this view from aFriendlyByteBuf.- Specified by:
deserializein interfaceIBuildingView- Overrides:
deserializein classAbstractBuildingView- Parameters:
buf- The buffer to read this view from.
-
shouldRestrict
public boolean shouldRestrict() -
getStartRestriction
public net.minecraft.core.BlockPos getStartRestriction() -
getEndRestriction
public net.minecraft.core.BlockPos getEndRestriction()
-