net.minestom.server.event.trait.PlayerEvent Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of minestom-snapshots Show documentation
Show all versions of minestom-snapshots Show documentation
1.20.4 Lightweight Minecraft server
package net.minestom.server.event.trait;
import net.minestom.server.entity.Player;
import org.jetbrains.annotations.NotNull;
/**
* Represents any event called on a {@link Player}.
*/
public interface PlayerEvent extends EntityEvent {
/**
* Gets the player.
*
* @return the player
*/
@NotNull Player getPlayer();
/**
* Returns {@link #getPlayer()}.
*/
@Override
default @NotNull Player getEntity() {
return getPlayer();
}
}