Interface EntitySnapshot

All Superinterfaces:
Snapshot, TagReadable
All Known Subinterfaces:
PlayerSnapshot
All Known Implementing Classes:
SnapshotImpl.Entity, SnapshotImpl.Player

public sealed interface EntitySnapshot extends Snapshot, TagReadable permits PlayerSnapshot, SnapshotImpl.Entity
  • Method Details

    • type

      @NotNull @NotNull EntityType type()
    • uuid

      @NotNull @NotNull UUID uuid()
    • id

      int id()
    • position

      @NotNull @NotNull net.minestom.server.coordinate.Pos position()
    • velocity

      @NotNull @NotNull net.minestom.server.coordinate.Vec velocity()
    • instance

      @NotNull @NotNull InstanceSnapshot instance()
    • chunk

      @NotNull @NotNull ChunkSnapshot chunk()
    • viewers

      @NotNull @NotNull Collection<@NotNull PlayerSnapshot> viewers()
    • passengers

      @NotNull @NotNull Collection<@NotNull EntitySnapshot> passengers()
    • vehicle

      @Nullable @Nullable EntitySnapshot vehicle()