Interface GeyserConnection

All Superinterfaces:
CommandSource, org.geysermc.api.connection.Connection

public interface GeyserConnection extends org.geysermc.api.connection.Connection, CommandSource
Represents a player connection used in Geyser.
  • Method Details

    • entityByJavaId

      @NonNull CompletableFuture<@Nullable GeyserEntity> entityByJavaId(@org.checkerframework.checker.index.qual.NonNegative int javaId)
      Parameters:
      javaId - the Java entity ID to look up.
      Returns:
      a GeyserEntity if present in this connection's entity tracker.
    • showEmote

      void showEmote(@NonNull GeyserPlayerEntity emoter, @NonNull String emoteId)
      Parameters:
      emoter - the player entity emoting.
      emoteId - the emote ID to send to the client.