Class BarracksStatisticsModule

All Implemented Interfaces:
IBuildingModule, IPersistentModule, IHasDirty

public class BarracksStatisticsModule extends BuildingStatisticsModule
Building statistic module.
  • Constructor Details

    • BarracksStatisticsModule

      public BarracksStatisticsModule()
  • Method Details

    • serializeToView

      public void serializeToView(net.minecraft.network.RegistryFriendlyByteBuf buf, boolean fullSync)
      Serializes the composite stats of all towers associated with this barracks
      Specified by:
      serializeToView in interface IBuildingModule
      Overrides:
      serializeToView in class BuildingStatisticsModule
      Parameters:
      buf - the buffer to write to
      fullSync - whether to serialize the full stats or only the dirty ones