Class GeyserEntityData

java.lang.Object
org.geysermc.geyser.entity.GeyserEntityData
All Implemented Interfaces:
org.geysermc.geyser.api.entity.EntityData

public class GeyserEntityData extends Object implements org.geysermc.geyser.api.entity.EntityData
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    @Nullable org.geysermc.geyser.api.entity.type.GeyserEntity
    byGeyserId(@org.checkerframework.checker.index.qual.NonNegative long geyserId)
     
    @Nullable org.geysermc.geyser.api.entity.type.GeyserEntity
    byJavaId(@org.checkerframework.checker.index.qual.NonNegative int javaId)
     
    @Nullable org.geysermc.geyser.api.entity.type.GeyserEntity
    byUuid(@NonNull UUID javaUuid)
     
    @NonNull CompletableFuture<@Nullable org.geysermc.geyser.api.entity.type.GeyserEntity>
    entityByJavaId(@org.checkerframework.checker.index.qual.NonNegative int javaId)
     
    boolean
     
    boolean
    lockMovement(boolean lock, @NonNull UUID owner)
     
    @NonNull org.geysermc.geyser.api.entity.type.player.GeyserPlayerEntity
     
    void
    showEmote(@NonNull org.geysermc.geyser.api.entity.type.player.GeyserPlayerEntity emoter, @NonNull String emoteId)
     
    void
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • GeyserEntityData

      public GeyserEntityData(GeyserSession session)
  • Method Details

    • entityByJavaId

      public @NonNull CompletableFuture<@Nullable org.geysermc.geyser.api.entity.type.GeyserEntity> entityByJavaId(@org.checkerframework.checker.index.qual.NonNegative int javaId)
      Specified by:
      entityByJavaId in interface org.geysermc.geyser.api.entity.EntityData
    • byJavaId

      public @Nullable org.geysermc.geyser.api.entity.type.GeyserEntity byJavaId(@org.checkerframework.checker.index.qual.NonNegative int javaId)
      Specified by:
      byJavaId in interface org.geysermc.geyser.api.entity.EntityData
    • byUuid

      public @Nullable org.geysermc.geyser.api.entity.type.GeyserEntity byUuid(@NonNull UUID javaUuid)
      Specified by:
      byUuid in interface org.geysermc.geyser.api.entity.EntityData
    • byGeyserId

      public @Nullable org.geysermc.geyser.api.entity.type.GeyserEntity byGeyserId(@org.checkerframework.checker.index.qual.NonNegative long geyserId)
      Specified by:
      byGeyserId in interface org.geysermc.geyser.api.entity.EntityData
    • showEmote

      public void showEmote(@NonNull org.geysermc.geyser.api.entity.type.player.GeyserPlayerEntity emoter, @NonNull String emoteId)
      Specified by:
      showEmote in interface org.geysermc.geyser.api.entity.EntityData
    • playerEntity

      public @NonNull org.geysermc.geyser.api.entity.type.player.GeyserPlayerEntity playerEntity()
      Specified by:
      playerEntity in interface org.geysermc.geyser.api.entity.EntityData
    • lockMovement

      public boolean lockMovement(boolean lock, @NonNull UUID owner)
      Specified by:
      lockMovement in interface org.geysermc.geyser.api.entity.EntityData
    • isMovementLocked

      public boolean isMovementLocked()
      Specified by:
      isMovementLocked in interface org.geysermc.geyser.api.entity.EntityData
    • switchHands

      public void switchHands()
      Specified by:
      switchHands in interface org.geysermc.geyser.api.entity.EntityData