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

public class SyncHandler extends Object
  • Constructor Details

    • SyncHandler

      public SyncHandler()
  • 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
    • debugDataHandler

      public static void debugDataHandler(float lastDamageDealt, float lastDamageTaken, UUID playerUUID)
      Sync damage values for debug tracing data from server to client. This is in a separate class to avoid loading client classes on the dedicated server.
      Parameters:
      lastDamageDealt - the damage dealt
      lastDamageTaken - the damage taken
      playerUUID - the UUID of the player to sync to