Interface EntityData


public interface EntityData
This class holds all the methods that relate to entities. Can be accessed through GeyserConnection.entities().
  • Method Details

    • entityByJavaId

      @Deprecated @NonNull CompletableFuture<@Nullable GeyserEntity> entityByJavaId(@org.checkerframework.checker.index.qual.NonNegative int javaId)
      Deprecated.
    • byJavaId

      @Nullable GeyserEntity byJavaId(@org.checkerframework.checker.index.qual.NonNegative int javaId)
      Returns a GeyserEntity to e.g. make them play an emote.
      Parameters:
      javaId - the Java entity ID to look up
      Returns:
      a GeyserEntity if present in this connection's entity tracker
    • byUuid

      @Nullable GeyserEntity byUuid(@NonNull UUID javaUuid)
      Returns a GeyserEntity to e.g. update entity properties.
    • byGeyserId

      @Nullable GeyserEntity byGeyserId(@org.checkerframework.checker.index.qual.NonNegative long geyserId)
      Returns a GeyserEntity based on a Geyser entity id
    • showEmote

      @Deprecated void showEmote(@NonNull GeyserPlayerEntity emoter, @NonNull String emoteId)
    • playerEntity

      @Deprecated @NonNull GeyserPlayerEntity playerEntity()
    • lockMovement

      boolean lockMovement(boolean lock, @NonNull UUID owner)
      (Un)locks the client's movement inputs, so that they cannot move. To ensure that movement is only unlocked when all locks are released, you must supply a UUID with this method, and use the same UUID to unlock the camera.
      Parameters:
      lock - whether to lock the movement
      owner - the owner of the lock
      Returns:
      if the movement is locked after this method call
    • isMovementLocked

      boolean isMovementLocked()
      Returns whether the client's movement is currently locked.
      Returns:
      whether the movement is locked
    • switchHands

      @Deprecated void switchHands()