Class BuildingCook.View
java.lang.Object
com.minecolonies.core.colony.buildings.views.AbstractBuildingView
com.minecolonies.core.colony.buildings.workerbuildings.BuildingCook.View
- All Implemented Interfaces:
ICommonBuilding,IBuildingView,IModuleContainerView,IRequester
- Enclosing class:
BuildingCook
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.RegistryFriendlyByteBuf buf) Read this view from aRegistryFriendlyByteBuf.it.unimi.dsi.fastutil.ints.IntSetGet the set of customers from the dining hall.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, 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, 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.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.
-
getCustomers
public it.unimi.dsi.fastutil.ints.IntSet getCustomers()Get the set of customers from the dining hall.- Returns:
- the set of customers
-