Class SyncedTemperature
java.lang.Object
me.desht.pneumaticcraft.common.heat.SyncedTemperature
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintCall client side to get the synced temperature.voidtick()Call server side on a regular basis.
-
Constructor Details
-
SyncedTemperature
-
-
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.
-