Class ClientDataHandler
java.lang.Object
tech.anonymoushacker1279.immersiveweapons.event.ClientDataHandler
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic intstatic voidsyncPersistentData(net.minecraft.nbt.CompoundTag tag, UUID playerUUID) Sync persistent data from server to client.
-
Constructor Details
-
ClientDataHandler
public ClientDataHandler()
-
-
Method Details
-
syncPersistentData
Sync persistent data from server to client. This is in a separate class to avoid loading client classes on the dedicated server.- Parameters:
tag- theCompoundTagto sync, should be fromEntity.getPersistentData()playerUUID- theUUIDof the player to sync to
-
getTicksSinceRest
public static int getTicksSinceRest()
-