BukkitCustomEntityImpl

Constructors

Link copied to clipboard
public void BukkitCustomEntityImpl(Entity entity, CustomEntityDefinition definition)

Properties

Link copied to clipboard
public final Set<UUID> viewers

Functions

Link copied to clipboard
Link copied to clipboard
public Entity entity()
Link copied to clipboard
public void forgetViewer(UUID uuid)
public void forgetViewer(Player player)
Link copied to clipboard
public Set<UUID> getCurrentViewers()
Gets all players who can currently see this entity.
Link copied to clipboard
public int getEntityId()
Link copied to clipboard
public Location getLocation()
Link copied to clipboard
public Location getTrackingLocation()
Gets the location used for tracking distance.
Link copied to clipboard
public UUID getUniqueId()
Link copied to clipboard
public Entity getVehicle()
Gets the vehicle entity this is attached to, if any.
Link copied to clipboard
public Set<UUID> getViewers()
Link copied to clipboard
public World getWorld()
Gets the world this entity is in.
Link copied to clipboard
public void hideFromPlayer(Player player)
Hides this entity from a player.
Link copied to clipboard
public boolean isValid()
Link copied to clipboard
public boolean isVisibleTo(Player player)
Checks if this entity is currently visible to a player.
Link copied to clipboard
public void prepareSpawnFor(Collection<? extends Player> players)
public void prepareSpawnFor(Player player)
Link copied to clipboard
public void remount()
Called when the entity needs to remount to its vehicle.
Link copied to clipboard
public void remove()
Removes this custom presentation handle without removing the wrapped Bukkit entity.
Link copied to clipboard
public void setColor(Integer color)
Link copied to clipboard
public void setHitbox(float width, float height)
Link copied to clipboard
public void setProperties(Map<String, ? extends Object> properties)
Link copied to clipboard
public void setProperty(String identifier, Object value)
Link copied to clipboard
public void setScale(float scale)
Link copied to clipboard
public void setVariant(Integer variant)
Link copied to clipboard
public void showToPlayer(Player player)
Shows this entity to a player.
Link copied to clipboard
public void syncTo(Player player)
Link copied to clipboard
public void syncToViewers()

Inherited functions

Link copied to clipboard
public boolean canBeSeenBy(Player player)
Checks whether a player is allowed to see this entity, independent of range and world.
Link copied to clipboard
public void updateTracking()
Updates a moving anchor before visibility is evaluated.