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) void@Nullable IMessagehandleColonyBuildingViewMessage(net.minecraft.core.BlockPos buildingId, @NotNull net.minecraft.network.FriendlyByteBuf buf) Update a ColonyView's buildings given a network data ColonyView update packet.@Nullable IMessagehandleColonyViewRemoveBuildingMessage(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 @Nullable IMessage handleColonyViewRemoveBuildingMessage(net.minecraft.core.BlockPos buildingId) Remove a building from the ColonyView.- Parameters:
buildingId- location of the building.- Returns:
- null == no response.
-
handleColonyBuildingViewMessage
@Nullable @Nullable IMessage handleColonyBuildingViewMessage(net.minecraft.core.BlockPos buildingId, @NotNull @NotNull net.minecraft.network.FriendlyByteBuf 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.- Returns:
- null == no response.
-
handleColonyBuildingExtensionViewUpdateMessage
-
deserializeFromView
void deserializeFromView(boolean isNewSubscription, @NotNull @NotNull net.minecraft.network.FriendlyByteBuf buf)
-