net.minestom.server.snapshot.EntitySnapshot Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of minestom-snapshots Show documentation
Show all versions of minestom-snapshots Show documentation
1.20.4 Lightweight Minecraft server
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();
}