1
0
mirror of https://github.com/GeyserMC/Geyser.git synced 2025-12-31 12:46:39 +00:00

Set up feature branch publishing and vertical offset applying

This commit is contained in:
onebeastchris
2025-12-01 16:35:30 +01:00
parent 8a79001b4b
commit d4f07135f4
5 changed files with 15 additions and 17 deletions

View File

@@ -66,10 +66,7 @@ public interface EntityData {
@Nullable GeyserEntity byGeyserId(@NonNegative long geyserId);
/**
* Displays a player entity as emoting to this client.
*
* @param emoter the player entity emoting
* @param emoteId the emote ID to send to this client
* @deprecated use {@link GeyserConnection#showEmote(GeyserPlayerEntity, String)} instead
*/
@Deprecated
void showEmote(@NonNull GeyserPlayerEntity emoter, @NonNull String emoteId);

View File

@@ -44,9 +44,19 @@ public interface CustomEntityDefinition extends GeyserEntityDefinition {
* Creates or retrieves a GeyserEntityDefinition by the Bedrock entity type identifier.
*
* @param identifier the Bedrock entity identifier
* @return the GeyserEntityDefinition
* @return the CustomEntityDefinition
*/
static @NonNull CustomEntityDefinition of(@NonNull Identifier identifier) {
return GeyserApi.api().provider(GeyserEntityDefinition.class, identifier);
}
/**
* Creates or retrieves a GeyserEntityDefinition by the Bedrock entity type identifier.
*
* @param identifier the Bedrock entity identifier, in string format
* @return the CustomEntityDefinition
*/
static @NonNull CustomEntityDefinition of(@NonNull String identifier) {
return of(Identifier.of(identifier));
}
}