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:
@@ -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);
|
||||
|
||||
@@ -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));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user