SkeletonWatchers

public class SkeletonWatchers

Constructors

Link copied to clipboard
public void SkeletonWatchers(Skeleton skeleton)

Properties

Link copied to clipboard
public final Set<UUID> javaViewers

Functions

Link copied to clipboard
public void bindBody(UUID bodyId)
Shares the hidden players of every model on this body; players hidden before the model got it move over.
Link copied to clipboard
public static void clearHiddenPlayers()
Link copied to clipboard
public static void forgetHiddenPlayers(UUID bodyId)
Forgets who was hidden from the models on a body that is gone for good.
Link copied to clipboard
public Set<UUID> getJavaViewers()
Live view of the Java Edition viewers, safe to read from the model clock.
Link copied to clipboard
public HashSet<UUID> getViewers()
Link copied to clipboard
public boolean hasObservers()
Link copied to clipboard
public void hideFromPlayer(Player player)
Hides the whole model from one player until showToPlayer, while other viewers keep it.
Link copied to clipboard
Whether every Java viewer's client tracked the model's entity at the last primary-thread check.
Link copied to clipboard
public boolean isHiddenFrom(Player player)
Link copied to clipboard
public void refreshEntityTracking()
Rechecks that every Java viewer's client tracks the model's entity.
Link copied to clipboard
public void releaseTrackedBodies()
Releases every tracked body when the model goes away.
Link copied to clipboard
public void restoreBodyTracking()
Gives the body back the server's own tracking range when the model goes away.
Link copied to clipboard
public void reveilTrackedBody(Player player)
Restores the veil on a tracked body that showUnderlyingEntity lifted for this viewer.
Link copied to clipboard
public void sendPackets(Bone bone, AbstractPacketBundle abstractPacketBundle)
Link copied to clipboard
public void showToPlayer(Player player)
Lets a hidden player back in; the next watcher update shows them the model if it is in range and in sight.
Link copied to clipboard
public void tickPrimaryThread()
Refreshes all state that touches Bukkit worlds, players, entities, potion effects, or block ray tracing.