mirror of
https://github.com/Minestom/Minestom.git
synced 2025-01-07 00:48:28 +01:00
Inline EffectPacket
This commit is contained in:
parent
d3d809f714
commit
ebd17fdf81
@ -3,20 +3,25 @@ package net.minestom.server.registry;
|
|||||||
import net.kyori.adventure.key.Key;
|
import net.kyori.adventure.key.Key;
|
||||||
import net.kyori.adventure.key.Keyed;
|
import net.kyori.adventure.key.Keyed;
|
||||||
import net.minestom.server.utils.NamespaceID;
|
import net.minestom.server.utils.NamespaceID;
|
||||||
|
import org.jetbrains.annotations.Contract;
|
||||||
import org.jetbrains.annotations.NotNull;
|
import org.jetbrains.annotations.NotNull;
|
||||||
|
|
||||||
public interface ProtocolObject extends Keyed {
|
public interface ProtocolObject extends Keyed {
|
||||||
|
|
||||||
|
@Contract(pure = true)
|
||||||
@NotNull NamespaceID namespace();
|
@NotNull NamespaceID namespace();
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
@Contract(pure = true)
|
||||||
default @NotNull Key key() {
|
default @NotNull Key key() {
|
||||||
return namespace();
|
return namespace();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Contract(pure = true)
|
||||||
default @NotNull String name() {
|
default @NotNull String name() {
|
||||||
return namespace().asString();
|
return namespace().asString();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Contract(pure = true)
|
||||||
int id();
|
int id();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user