BukkitCustomEntity

public interface BukkitCustomEntity implements CustomEntityHandle

Custom Bedrock presentation bound to a real Bukkit entity.

The wrapped entity still exists normally on the server, so AI, damage, persistence, targeting, Bukkit events and plugin interactions keep using the real entity. This handle only prepares Bedrock clients to render that same Java entity id as a registered custom entity and keeps runtime properties in sync.

prepareSpawnFor must be called before the viewer receives the entity spawn packet. If the viewer is already tracking the entity, callers need to force a normal server retrack/respawn before the custom Bedrock definition can take effect.

Inheritors

Types

Link copied to clipboard
public interface Builder

Functions

Link copied to clipboard
public abstract Entity entity()
Link copied to clipboard
public abstract void forgetViewer(UUID uuid)
public abstract void forgetViewer(Player player)
Link copied to clipboard
public abstract boolean isValid()
Link copied to clipboard
public abstract void prepareSpawnFor(Collection<? extends Player> players)
public abstract void prepareSpawnFor(Player player)
Link copied to clipboard
public abstract void remove()
Removes this custom presentation handle without removing the wrapped Bukkit entity.
Link copied to clipboard
public abstract void syncTo(Player player)
Link copied to clipboard
public abstract void syncToViewers()

Inherited functions

Link copied to clipboard
Link copied to clipboard
public abstract int getEntityId()
Link copied to clipboard
public abstract Location getLocation()
Link copied to clipboard
public abstract UUID getUniqueId()
Link copied to clipboard
public abstract Set<UUID> getViewers()
Link copied to clipboard
public abstract void setColor(Integer color)
Link copied to clipboard
public abstract void setHitbox(float width, float height)
Link copied to clipboard
public abstract void setProperties(Map<String, ? extends Object> properties)
Link copied to clipboard
public abstract void setProperty(String identifier, Object value)
Link copied to clipboard
public abstract void setScale(float scale)
Link copied to clipboard
public abstract void setVariant(Integer variant)