Search in sources :

Example 1 with SpectateEntityEvent

use of org.lanternpowered.server.entity.event.SpectateEntityEvent in project LanternServer by LanternPowered.

the class LanternPlayer method setSpectatorTarget.

@Override
public void setSpectatorTarget(@Nullable Entity entity) {
    this.spectatorEntity = entity;
    triggerEvent(new SpectateEntityEvent(entity));
}
Also used : SpectateEntityEvent(org.lanternpowered.server.entity.event.SpectateEntityEvent)

Aggregations

SpectateEntityEvent (org.lanternpowered.server.entity.event.SpectateEntityEvent)1