Class SyncedTemperature

java.lang.Object
me.desht.pneumaticcraft.common.heat.SyncedTemperature

public class SyncedTemperature extends Object
Designed to sync temperature to client but only when changed by a certain amount, the delta being dependent on the temperature at the time. Include as a field in your BE and mark as @DescSynced, or in an Entity and use the data manager to sync the temperature.
  • Constructor Details

  • Method Details

    • getSyncedTemp

      public int getSyncedTemp()
      Call client side to get the synced temperature.
      Returns:
      the synced temperature
    • tick

      public void tick()
      Call server side on a regular basis.