All Downloads are FREE. Search and download functionalities are using the official Maven repository.

net.minestom.server.event.trait.PlayerEvent Maven / Gradle / Ivy

There is a newer version: 7320437640
Show newest version
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();
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy