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 Summary
Modifier and TypeMethodDescription@NotNull @UnmodifiableView Iterable<? extends net.kyori.adventure.bossbar.BossBar>
bossBars()
default Stream<? extends net.kyori.adventure.bossbar.BossBar>
default Optional<BlockPosition>
getBlockLookingAt(int scanLength)
default EntityType<LivePlayer,PlayerSnapshot>
getType()
Gets the type of the entityboolean
hasPermission(Permission permission)
void
sendMessage(@NotNull net.kyori.adventure.text.Component message)
void
setBlock(@NotNull BlockDetails details, @NotNull Vector3<Integer> position)
Methods inherited from interface org.core.entity.living.human.AbstractHuman
getExhaustionLevel, getFoodLevel, getName, getSaturationLevel, isSneaking, setExhaustionLevel, setFood, setSaturationLevel, setSneaking
Methods inherited from interface net.kyori.adventure.audience.Audience
clearTitle, deleteMessage, deleteMessage, filterAudience, forEachAudience, hideBossBar, openBook, openBook, playSound, playSound, playSound, resetTitle, sendActionBar, sendActionBar, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendPlayerListFooter, sendPlayerListFooter, sendPlayerListHeader, sendPlayerListHeader, sendPlayerListHeaderAndFooter, sendPlayerListHeaderAndFooter, sendTitlePart, showBossBar, showTitle, stopSound, stopSound
Methods inherited from interface org.core.source.command.CommandSource
sudo, sudo
Methods inherited from interface org.core.entity.Entity
addPassengers, addPassengers, clearPassengers, getAttachedTo, getCustomNameComponent, getFacingDirection, getPassengers, getPitch, getPosition, getRoll, getVelocity, getYaw, hasGravity, hasPassengers, isCustomNameVisible, isOnGround, isRemoved, removePassengers, removePassengers, setCustomName, setCustomName, setCustomNameVisible, setGravity, setPitch, setPosition, setPosition, setPosition, setPosition, setRoll, setVelocity, setVelocity, setYaw
Methods inherited from interface org.core.entity.LiveEntity
remove
Methods inherited from interface org.core.source.Messageable
sendMessage, sendMessage, sendPlainMessage
Methods inherited from interface org.core.entity.living.human.player.Player
createSnapshot, getInventory, isViewingInventory
Methods inherited from interface net.kyori.adventure.pointer.Pointered
get, getOrDefault, getOrDefaultFrom, pointers
Methods inherited from interface org.core.entity.living.human.player.User
getAccount, getName, getUniqueId
-
Method Details
-
getBlockLookingAt
-
getBlockLookingAt
-
getType
Description copied from interface:Entity
Gets the type of the entity- Specified by:
getType
in interfaceEntity<LiveEntity>
- Specified by:
getType
in interfacePlayer<LiveEntity>
- Returns:
- The Entity Type
-
setBlock
-
hasPermission
-
bossBars
@NotNull @NotNull @UnmodifiableView Iterable<? extends net.kyori.adventure.bossbar.BossBar> bossBars() -
bossBarsStream
-
sendMessage
void sendMessage(@NotNull @NotNull net.kyori.adventure.text.Component message)- Specified by:
sendMessage
in interfacenet.kyori.adventure.audience.Audience
- Specified by:
sendMessage
in interfaceMessageable
-