mirror of
https://github.com/Minestom/Minestom.git
synced 2025-01-08 17:37:42 +01:00
Add EventTrait interface
This commit is contained in:
parent
02fe4c65a2
commit
9c87b4d54f
@ -3,7 +3,7 @@ package net.minestom.server.event.trait;
|
|||||||
import net.minestom.server.entity.Entity;
|
import net.minestom.server.entity.Entity;
|
||||||
import org.jetbrains.annotations.NotNull;
|
import org.jetbrains.annotations.NotNull;
|
||||||
|
|
||||||
public interface EntityEvent {
|
public interface EntityEvent extends EventTrait {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Gets the entity of this event.
|
* Gets the entity of this event.
|
||||||
|
@ -0,0 +1,4 @@
|
|||||||
|
package net.minestom.server.event.trait;
|
||||||
|
|
||||||
|
public interface EventTrait {
|
||||||
|
}
|
@ -3,6 +3,6 @@ package net.minestom.server.event.trait;
|
|||||||
import net.minestom.server.item.ItemStack;
|
import net.minestom.server.item.ItemStack;
|
||||||
import org.jetbrains.annotations.NotNull;
|
import org.jetbrains.annotations.NotNull;
|
||||||
|
|
||||||
public interface ItemEvent {
|
public interface ItemEvent extends EventTrait {
|
||||||
@NotNull ItemStack getItemStack();
|
@NotNull ItemStack getItemStack();
|
||||||
}
|
}
|
||||||
|
@ -3,7 +3,7 @@ package net.minestom.server.event.trait;
|
|||||||
import net.minestom.server.entity.Player;
|
import net.minestom.server.entity.Player;
|
||||||
import org.jetbrains.annotations.NotNull;
|
import org.jetbrains.annotations.NotNull;
|
||||||
|
|
||||||
public interface PlayerEvent {
|
public interface PlayerEvent extends EventTrait {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Gets the player.
|
* Gets the player.
|
||||||
|
Loading…
Reference in New Issue
Block a user