Class SpectatorSync
java.lang.Object
com.zenith.feature.spectator.SpectatorSync
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidcheckSpectatorPositionOutOfRender(int chunkX, int chunkZ) static voidcheckSpectatorPositionOutOfRender(ServerSession spectConnection) static floatgetDisplayPitch(ServerSession serverConnection) static floatgetDisplayYaw(ServerSession serverConnection) static EntityPlayergetSpectatorPlayerEntity(ServerSession session) static voidinitSpectator(ServerSession session, Supplier<Collection<CachedData>> cacheSupplier) static voidstatic voidstatic voidstatic voidstatic voidstatic voidsyncSpectatorPositionToEntity(ServerSession spectConnection, Entity target) static voidupdateSpectatorPosition(ServerSession selfSession)
-
Constructor Details
-
SpectatorSync
public SpectatorSync()
-
-
Method Details
-
syncPlayerEquipmentWithSpectatorsFromCache
public static void syncPlayerEquipmentWithSpectatorsFromCache() -
syncPlayerPositionWithSpectators
public static void syncPlayerPositionWithSpectators() -
syncSpectatorPositionToEntity
-
getSpectatorPlayerEntity
-
initSpectator
public static void initSpectator(ServerSession session, Supplier<Collection<CachedData>> cacheSupplier) -
checkSpectatorPositionOutOfRender
-
updateSpectatorPosition
-
sendPlayerSneakStatus
public static void sendPlayerSneakStatus() -
sendSwing
public static void sendSwing() -
sendRespawn
public static void sendRespawn() -
checkSpectatorPositionOutOfRender
public static void checkSpectatorPositionOutOfRender(int chunkX, int chunkZ) -
getDisplayYaw
-
getDisplayPitch
-