Interface IRegisteredStructureManagerView

All Superinterfaces:
ICommonRegisteredStructureManager<IBuildingView,ITownHallView>
All Known Implementing Classes:
RegisteredStructureManagerView

public interface IRegisteredStructureManagerView extends ICommonRegisteredStructureManager<IBuildingView,ITownHallView>
  • 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

      void handleColonyBuildingExtensionViewUpdateMessage(Set<IBuildingExtension> extensions)
    • deserializeFromView

      void deserializeFromView(boolean isNewSubscription, @NotNull @NotNull net.minecraft.network.FriendlyByteBuf buf)