Class SpectatorSync

java.lang.Object
com.zenith.feature.spectator.SpectatorSync

public final class SpectatorSync extends Object
  • Constructor Details

    • SpectatorSync

      public SpectatorSync()
  • Method Details

    • syncPlayerEquipmentWithSpectatorsFromCache

      public static void syncPlayerEquipmentWithSpectatorsFromCache()
    • syncPlayerPositionWithSpectators

      public static void syncPlayerPositionWithSpectators()
    • syncSpectatorPositionToEntity

      public static void syncSpectatorPositionToEntity(ServerSession spectConnection, Entity target)
    • getSpectatorPlayerEntity

      public static EntityPlayer getSpectatorPlayerEntity(ServerSession session)
    • initSpectator

      public static void initSpectator(ServerSession session, Supplier<Collection<CachedData>> cacheSupplier)
    • checkSpectatorPositionOutOfRender

      public static void checkSpectatorPositionOutOfRender(ServerSession spectConnection)
    • updateSpectatorPosition

      public static void updateSpectatorPosition(ServerSession selfSession)
    • sendPlayerPose

      public static void sendPlayerPose()
    • sendSwing

      public static void sendSwing()
    • sendRespawn

      public static void sendRespawn()
    • checkSpectatorPositionOutOfRender

      public static void checkSpectatorPositionOutOfRender(int chunkX, int chunkZ)
    • getDisplayYaw

      public static float getDisplayYaw(ServerSession serverConnection)
    • getDisplayPitch

      public static float getDisplayPitch(ServerSession serverConnection)