Add EventTrait interface

This commit is contained in:
TheMode 2021-06-02 07:15:28 +02:00
parent 02fe4c65a2
commit 9c87b4d54f
4 changed files with 7 additions and 3 deletions

View File

@ -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.

View File

@ -0,0 +1,4 @@
package net.minestom.server.event.trait;
public interface EventTrait {
}

View File

@ -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();
} }

View File

@ -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.