Class ClientDataHandler

java.lang.Object
tech.anonymoushacker1279.immersiveweapons.event.ClientDataHandler

public class ClientDataHandler extends Object
  • Constructor Details

    • ClientDataHandler

      public ClientDataHandler()
  • Method Details

    • syncPersistentData

      public static void syncPersistentData(net.minecraft.nbt.CompoundTag tag, UUID playerUUID)
      Sync persistent data from server to client. This is in a separate class to avoid loading client classes on the dedicated server.
      Parameters:
      tag - the CompoundTag to sync, should be from Entity.getPersistentData()
      playerUUID - the UUID of the player to sync to
    • getTicksSinceRest

      public static int getTicksSinceRest()