Interface GeyserConnection
- All Superinterfaces:
CommandSource,org.geysermc.api.connection.Connection
Represents a player connection used in Geyser.
-
Method Summary
Modifier and TypeMethodDescription@NonNull CompletableFuture<@Nullable GeyserEntity>entityByJavaId(@org.checkerframework.checker.index.qual.NonNegative int javaId)voidshowEmote(@NonNull GeyserPlayerEntity emoter, @NonNull String emoteId)Methods inherited from interface org.geysermc.geyser.api.command.CommandSource
hasPermission, isConsole, locale, name, sendMessage, sendMessageMethods inherited from interface org.geysermc.api.connection.Connection
bedrockUsername, inputMode, isLinked, javaUsername, javaUuid, languageCode, platform, sendForm, sendForm, transfer, uiProfile, version, xuid
-
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
GeyserEntityif present in this connection's entity tracker.
-
showEmote
- Parameters:
emoter- the player entity emoting.emoteId- the emote ID to send to the client.
-