All Downloads are FREE. Search and download functionalities are using the official Maven repository.

net.minestom.server.snapshot.EntitySnapshot Maven / Gradle / Ivy

There is a newer version: 7320437640
Show newest version
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();
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy