Interface IRegisteredStructureManagerView
- All Superinterfaces:
ICommonRegisteredStructureManager<IBuildingView,ITownHallView>
- All Known Implementing Classes:
RegisteredStructureManagerView
public interface IRegisteredStructureManagerView
extends ICommonRegisteredStructureManager<IBuildingView,ITownHallView>
-
Method Summary
Modifier and TypeMethodDescriptionvoiddeserializeFromView(boolean isNewSubscription, @NotNull net.minecraft.network.FriendlyByteBuf buf) voidvoidhandleColonyBuildingViewMessage(net.minecraft.core.BlockPos buildingId, @NotNull net.minecraft.network.RegistryFriendlyByteBuf buf) Update a ColonyView's buildings given a network data ColonyView update packet.voidhandleColonyViewRemoveBuildingMessage(net.minecraft.core.BlockPos buildingId) Remove a building from the ColonyView.Methods inherited from interface com.minecolonies.api.colony.managers.interfaces.ICommonRegisteredStructureManager
getBestBuilding, getBestBuilding, getBestBuilding, getBestBuilding, getBuilding, getBuilding, getBuildingExtensions, getBuildings, getColony, getFirstBuildingMatching, getRandomBuilding, getTownHall, hasBuilding, hasTownHall, hasWarehouse
-
Method Details
-
handleColonyViewRemoveBuildingMessage
@Nullable void handleColonyViewRemoveBuildingMessage(net.minecraft.core.BlockPos buildingId) Remove a building from the ColonyView.- Parameters:
buildingId- location of the building.
-
handleColonyBuildingViewMessage
@Nullable void handleColonyBuildingViewMessage(net.minecraft.core.BlockPos buildingId, @NotNull @NotNull net.minecraft.network.RegistryFriendlyByteBuf buf) Update a ColonyView's buildings given a network data ColonyView update packet. This uses a full-replacement - buildings do not get updated and are instead overwritten.- Parameters:
buildingId- location of the building.buf- buffer containing ColonyBuilding information.
-
handleColonyBuildingExtensionViewUpdateMessage
-
deserializeFromView
void deserializeFromView(boolean isNewSubscription, @NotNull @NotNull net.minecraft.network.FriendlyByteBuf buf)
-