mirror of
https://github.com/Minestom/Minestom.git
synced 2024-09-28 14:37:31 +02:00
fdd3e2c53c
Signed-off-by: TheMode <themode@outlook.fr>
35 lines
859 B
Java
35 lines
859 B
Java
package net.minestom.server.snapshot;
|
|
|
|
import net.minestom.server.coordinate.Pos;
|
|
import net.minestom.server.coordinate.Vec;
|
|
import net.minestom.server.entity.EntityType;
|
|
import net.minestom.server.tag.TagReadable;
|
|
import org.jetbrains.annotations.NotNull;
|
|
import org.jetbrains.annotations.Nullable;
|
|
|
|
import java.util.Collection;
|
|
import java.util.UUID;
|
|
|
|
public sealed interface EntitySnapshot extends Snapshot, TagReadable
|
|
permits PlayerSnapshot, SnapshotImpl.Entity {
|
|
@NotNull EntityType type();
|
|
|
|
@NotNull UUID uuid();
|
|
|
|
int id();
|
|
|
|
@NotNull Pos position();
|
|
|
|
@NotNull Vec velocity();
|
|
|
|
@NotNull InstanceSnapshot instance();
|
|
|
|
@NotNull ChunkSnapshot chunk();
|
|
|
|
@NotNull Collection<@NotNull PlayerSnapshot> viewers();
|
|
|
|
@NotNull Collection<@NotNull EntitySnapshot> passengers();
|
|
|
|
@Nullable EntitySnapshot vehicle();
|
|
}
|