Interface LivePlayer

All Superinterfaces:
AbstractHuman<LiveEntity>, net.kyori.adventure.audience.Audience, CommandSource, Entity<LiveEntity>, EntityProjectileSource, EntitySource, InventoryHoldingEntity<LiveEntity>, LiveEntity, LivingEntity<LiveEntity>, Messageable, Player<LiveEntity>, net.kyori.adventure.pointer.Pointered, Positionable<SyncExactPosition>, ProjectileSource, Source, Tamer<LiveEntity>, User

public interface LivePlayer extends Player<LiveEntity>, LiveEntity, net.kyori.adventure.audience.Audience, CommandSource
  • Method Details

    • getBlockLookingAt

      Optional<BlockPosition> getBlockLookingAt(int scanLength)
    • getBlockLookingAt

      default Optional<BlockPosition> getBlockLookingAt()
    • getType

      default EntityType<LivePlayer,​PlayerSnapshot> getType()
      Description copied from interface: Entity
      Gets the type of the entity
      Specified by:
      getType in interface Entity<LiveEntity>
      Specified by:
      getType in interface Player<LiveEntity>
      Returns:
      The Entity Type
    • setBlock

      void setBlock(@NotNull @NotNull BlockDetails details, @NotNull @NotNull Vector3<Integer> position)
    • hasPermission

      boolean hasPermission(Permission permission)
    • bossBars

      @NotNull @NotNull @UnmodifiableView Iterable<? extends net.kyori.adventure.bossbar.BossBar> bossBars()
    • bossBarsStream

      default Stream<? extends net.kyori.adventure.bossbar.BossBar> bossBarsStream()
    • sendMessage

      void sendMessage(@NotNull @NotNull net.kyori.adventure.text.Component message)
      Specified by:
      sendMessage in interface net.kyori.adventure.audience.Audience
      Specified by:
      sendMessage in interface Messageable