FakeOnlinePlayer

abstract class FakeOnlinePlayer(offlinePlayer: OfflinePlayer, location: Location) : Player, OfflinePlayer

A Player which will throw an UnsupportedOperationException when methods which aren't supported by OfflinePlayer are called.

This Player is also granted access to the hasPermission method via permission integrations.

Constructors

Link copied to clipboard
constructor(offlinePlayer: OfflinePlayer, location: Location)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
abstract var absorptionAmount: Double
Link copied to clipboard
abstract val activeItem: @NotNull ItemStack
Link copied to clipboard
abstract val activeItemHand: @NotNull EquipmentSlot
Link copied to clipboard
Link copied to clipboard
abstract val activeItemUsedTime: Int
Link copied to clipboard
@get:NotNull
abstract val activePotionEffects: @NotNull Collection<PotionEffect?>
Link copied to clipboard
abstract val address: @Nullable InetSocketAddress?
Link copied to clipboard
abstract var affectsSpawning: Boolean
Link copied to clipboard
abstract var allowFlight: Boolean
Link copied to clipboard
abstract var arrowCooldown: @NonNegative Int
Link copied to clipboard
abstract var arrowsInBody: @NonNegative Int
Link copied to clipboard
open var arrowsStuck: @NonNegative Int
Link copied to clipboard
@get:Nullable
@get:ApiStatus.Experimental
abstract val asString: @Nullable String?
Link copied to clipboard
abstract val attackCooldown: Float
Link copied to clipboard
abstract val bedLocation: Location
Link copied to clipboard
open var bedSpawnLocation: @Nullable Location?
Link copied to clipboard
abstract var beeStingerCooldown: @NonNegative Int
Link copied to clipboard
abstract var beeStingersInBody: @NonNegative Int
Link copied to clipboard
abstract var bodyYaw: Float
Link copied to clipboard
@get:NotNull
abstract val boundingBox: @NotNull BoundingBox
Link copied to clipboard
abstract var canPickupItems: Boolean
Link copied to clipboard
@get:NotNull
@get:Contract(value = "-> fail")
abstract val category: @NotNull EntityCategory
Link copied to clipboard
@get:NotNull
open val chunk: @NotNull Chunk
Link copied to clipboard
abstract val clientBrandName: @Nullable String?
Link copied to clipboard
abstract val clientViewDistance: Int
Link copied to clipboard
@get:NotNull
abstract val collidableExemptions: @NotNull Set<UUID?>
Link copied to clipboard
@get:ApiStatus.Experimental
@get:NotNull
abstract val combatTracker: @NotNull CombatTracker
Link copied to clipboard
abstract var compassTarget: Location
Link copied to clipboard
@get:ApiStatus.Experimental
abstract val connection: PlayerGameConnection
Link copied to clipboard
abstract val cooldownPeriod: Float
Link copied to clipboard
abstract val currentInput: Input
Link copied to clipboard
@get:Nullable
abstract var customName: @Nullable String?
Link copied to clipboard
abstract var deathScreenScore: Int
Link copied to clipboard
@get:Nullable
abstract val deathSound: @Nullable Sound?
Link copied to clipboard
val Player.destroyProgress: Double?

The current block destroy progress of the player. Between 0 and 1 or null if the player is not breaking a block at the moment.

Link copied to clipboard
abstract val discoveredRecipes: Set<NamespacedKey>
Link copied to clipboard
abstract val displayName: String
Link copied to clipboard
@get:NotNull
abstract val effectivePermissions: @NotNull Set<PermissionAttachmentInfo?>
Link copied to clipboard
abstract var enchantmentSeed: Int
Link copied to clipboard
abstract val enderChest: Inventory
Link copied to clipboard
@get:ApiStatus.Experimental
abstract val enderPearls: Collection<EnderPearl>
Link copied to clipboard
abstract val entityId: Int
Link copied to clipboard
@get:NotNull
abstract val entitySpawnReason: CreatureSpawnEvent.SpawnReason
Link copied to clipboard
abstract val equipment: EntityEquipment
Link copied to clipboard
abstract var exhaustion: Float
Link copied to clipboard
abstract var exp: Float
Link copied to clipboard
abstract var expCooldown: Int
Link copied to clipboard
abstract val expToLevel: Int
Link copied to clipboard
abstract val eyeHeight: Double
Link copied to clipboard
val Entity.eyeInWater: Boolean

If the Entity's eye is underwater.

Link copied to clipboard
@get:NotNull
abstract val eyeLocation: @NotNull Location
Link copied to clipboard
@get:NotNull
abstract val facing: @NotNull BlockFace
Link copied to clipboard
Link copied to clipboard
@get:NotNull
abstract val fallDamageSoundBig: @NotNull Sound
Link copied to clipboard
@get:NotNull
abstract val fallDamageSoundSmall: @NotNull Sound
Link copied to clipboard
abstract var fallDistance: Float
Link copied to clipboard
abstract var fireTicks: Int
Link copied to clipboard
open override val firstPlayed: Long
Link copied to clipboard
abstract val fishHook: @Nullable FishHook?
Link copied to clipboard
abstract var flySpeed: Float
Link copied to clipboard
abstract var foodLevel: Int
Link copied to clipboard
abstract val forwardsMovement: Float
Link copied to clipboard
abstract var freezeTicks: Int
Link copied to clipboard
abstract var frictionState: TriState
Link copied to clipboard
abstract var gameMode: GameMode
Link copied to clipboard
@get:NotNull
@get:ApiStatus.Obsolete(since = "1.20.4")
open val handRaised: @NotNull EquipmentSlot
Link copied to clipboard
@get:ApiStatus.Obsolete(since = "1.20.4")
open val handRaisedTime: Int
Link copied to clipboard
abstract val haProxyAddress: @Nullable InetSocketAddress?
Link copied to clipboard

If the Player has is currently looking into an inventory. Does not detect the player's inventory itself because that is not sent to the server.

Link copied to clipboard
abstract var health: Double
Link copied to clipboard
abstract var healthScale: Double
Link copied to clipboard
abstract val height: Double
Link copied to clipboard
abstract var hurtDirection: Float
Link copied to clipboard
@get:Nullable
abstract val hurtSound: @Nullable Sound?
Link copied to clipboard
abstract val idleDuration: Duration
Link copied to clipboard
abstract val inventory: PlayerInventory
Link copied to clipboard
Link copied to clipboard
open override val isBanned: Boolean
Link copied to clipboard
abstract val isBlocking: Boolean
Link copied to clipboard
abstract val isClimbing: Boolean
Link copied to clipboard
abstract var isCollidable: Boolean
Link copied to clipboard
open override val isConnected: Boolean
Link copied to clipboard
abstract val isConversing: Boolean
Link copied to clipboard
Link copied to clipboard
abstract val isDead: Boolean
Link copied to clipboard
Link copied to clipboard
abstract val isEmpty: Boolean
Link copied to clipboard
abstract var isFlying: Boolean
Link copied to clipboard
Link copied to clipboard
abstract val isFrozen: Boolean
Link copied to clipboard
abstract var isGliding: Boolean
Link copied to clipboard
abstract var isGlowing: Boolean
Link copied to clipboard
@get:ApiStatus.Obsolete(since = "1.20.4")
abstract val isHandRaised: Boolean
Link copied to clipboard
abstract var isHealthScaled: Boolean
Link copied to clipboard
Link copied to clipboard
abstract val isInLava: Boolean
Link copied to clipboard
Link copied to clipboard
abstract val isInRain: Boolean
Link copied to clipboard
abstract val isInsideVehicle: Boolean
Link copied to clipboard
abstract var isInvisible: Boolean
Link copied to clipboard
abstract var isInvulnerable: Boolean
Link copied to clipboard
abstract val isInWater: Boolean
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
abstract val isInWorld: Boolean
Link copied to clipboard
abstract var isJumping: Boolean
Link copied to clipboard
abstract val isLeashed: Boolean
Link copied to clipboard
abstract val isOnGround: Boolean
Link copied to clipboard
open override val isOnline: Boolean
Link copied to clipboard
open override var isOp: Boolean
Link copied to clipboard
abstract var isPersistent: Boolean
Link copied to clipboard
Link copied to clipboard
abstract var isRiptiding: Boolean
Link copied to clipboard
abstract var isSilent: Boolean
Link copied to clipboard
abstract val isSleeping: Boolean
Link copied to clipboard
Link copied to clipboard
abstract var isSneaking: Boolean
Link copied to clipboard
abstract var isSprinting: Boolean
Link copied to clipboard
abstract var isSwimming: Boolean
Link copied to clipboard
abstract val isTicking: Boolean
Link copied to clipboard
abstract val isTransferred: Boolean
Link copied to clipboard
abstract val isUnderWater: Boolean
Link copied to clipboard
abstract val isValid: Boolean
Link copied to clipboard
Link copied to clipboard
abstract var isVisualFire: Boolean
Link copied to clipboard
open override var isWhitelisted: Boolean
Link copied to clipboard
abstract val itemInHand: ItemStack
Link copied to clipboard
@get:Nullable
abstract val itemInUse: @Nullable ItemStack?
Link copied to clipboard
abstract var itemInUseTicks: Int
Link copied to clipboard
abstract val itemOnCursor: ItemStack
Link copied to clipboard
@get:ApiStatus.Obsolete(since = "1.20.4")
open val itemUseRemainingTime: Int
Link copied to clipboard
@get:Nullable
abstract var killer: @Nullable Player?
Link copied to clipboard
abstract var lastDamage: Double
Link copied to clipboard
@get:Nullable
abstract var lastDamageCause: @Nullable EntityDamageEvent?
Link copied to clipboard
open override var lastDeathLocation: @Nullable Location?
Link copied to clipboard
open override val lastLogin: Long
Link copied to clipboard
open override val lastPlayed: Long
Link copied to clipboard
open override val lastSeen: Long
Link copied to clipboard
@get:NotNull
abstract val leashHolder: @NotNull Entity
Link copied to clipboard
abstract var level: Int
Link copied to clipboard
@get:NotNull
abstract val listeningPluginChannels: @NotNull Set<String?>
Link copied to clipboard
open override val locale: String
Link copied to clipboard
val Entity.localizedName: String?

The translation key for the name of this BukkitEntity.

Link copied to clipboard
open override val location: Location
Link copied to clipboard
abstract val mainHand: MainHand
Link copied to clipboard
abstract val maxFireTicks: Int
Link copied to clipboard
abstract val maxFreezeTicks: Int
Link copied to clipboard
abstract var maxHealth: Double
Link copied to clipboard
abstract var maximumAir: Int
Link copied to clipboard
Link copied to clipboard
open override val name: String
Link copied to clipboard
open var nextArrowRemoval: @NonNegative Int
Link copied to clipboard
open var nextBeeStingerRemoval: @NonNegative Int
Link copied to clipboard
val Entity.nmsEntity: Entity
val LivingEntity.nmsEntity: LivingEntity
Link copied to clipboard
abstract var noActionTicks: Int
Link copied to clipboard
abstract var noDamageTicks: Int
Link copied to clipboard
Link copied to clipboard
abstract val openInventory: InventoryView
Link copied to clipboard
@get:Nullable
abstract val origin: @Nullable Location?
Link copied to clipboard
Link copied to clipboard
@get:Nullable
abstract val passenger: @Nullable Entity?
Link copied to clipboard
@get:NotNull
abstract val passengers: @NotNull List<Entity?>
Link copied to clipboard
open override val persistentDataContainer: PersistentDataContainer
Link copied to clipboard
@get:NotNull
abstract val pickItemStack: @NotNull ItemStack
Link copied to clipboard
abstract val ping: Int
Link copied to clipboard
@get:NotNull
abstract val pistonMoveReaction: @NotNull PistonMoveReaction
Link copied to clipboard
abstract val pitch: Float
Link copied to clipboard
open override val player: @Nullable Player?
Link copied to clipboard
abstract var playerListFooter: @Nullable String?
Link copied to clipboard
abstract var playerListHeader: @Nullable String?
Link copied to clipboard
abstract val playerListName: String
Link copied to clipboard
abstract var playerListOrder: Int
Link copied to clipboard
open override var playerProfile: PlayerProfile
Link copied to clipboard
abstract val playerTime: Long
Link copied to clipboard
abstract val playerTimeOffset: Long
Link copied to clipboard
abstract val playerWeather: @Nullable WeatherType?
Link copied to clipboard
abstract var portalCooldown: Int
Link copied to clipboard
@get:NotNull
abstract var pose: @NotNull Pose
Link copied to clipboard
open val potentialBedLocation: @Nullable Location?
Link copied to clipboard
abstract val potentialRespawnLocation: @Nullable Location?
Link copied to clipboard
abstract val previousGameMode: @Nullable GameMode?
Link copied to clipboard
abstract val protocolVersion: Int
Link copied to clipboard
abstract var remainingAir: Int
Link copied to clipboard
Link copied to clipboard
@get:Contract(value = "-> null")
open val resourcePackHash: @Nullable String?
Link copied to clipboard
abstract val resourcePackStatus: PlayerResourcePackStatusEvent.Status
Link copied to clipboard
open override var respawnLocation: @Nullable Location?
Link copied to clipboard
abstract var saturatedRegenRate: Int
Link copied to clipboard
abstract var saturation: Float
Link copied to clipboard
@get:NotNull
abstract val scheduler: @NotNull EntityScheduler
Link copied to clipboard
abstract var scoreboard: Scoreboard
Link copied to clipboard
@get:NotNull
abstract val scoreboardEntryName: @NotNull String
Link copied to clipboard
@get:NotNull
abstract val scoreboardTags: @NotNull Set<String?>
Link copied to clipboard
abstract var sendViewDistance: Int
Link copied to clipboard
@get:ApiStatus.Experimental
abstract val sentChunkKeys: @Unmodifiable Set<Long>
Link copied to clipboard
@get:ApiStatus.Experimental
abstract val sentChunks: @Unmodifiable Set<Chunk>
Link copied to clipboard
@get:NotNull
abstract val server: @NotNull Server
Link copied to clipboard
val Player.serverPlayer: ServerPlayer
Link copied to clipboard
Link copied to clipboard
abstract var shoulderEntityLeft: @Nullable Entity?
Link copied to clipboard
abstract var shoulderEntityRight: @Nullable Entity?
Link copied to clipboard
abstract val sidewaysMovement: Float
Link copied to clipboard
abstract var simulationDistance: Int
Link copied to clipboard
abstract val sleepTicks: Int
Link copied to clipboard
@get:NotNull
abstract val spawnCategory: @NotNull SpawnCategory
Link copied to clipboard
abstract var spectatorTarget: @Nullable Entity?
Link copied to clipboard
abstract var starvationRate: Int
Link copied to clipboard
@get:NotNull
abstract val swimHighSpeedSplashSound: @NotNull Sound
Link copied to clipboard
@get:NotNull
abstract val swimSound: @NotNull Sound
Link copied to clipboard
@get:NotNull
abstract val swimSplashSound: @NotNull Sound
Link copied to clipboard
abstract var ticksLived: Int
Link copied to clipboard
abstract var totalExperience: Int
Link copied to clipboard
@get:NotNull
abstract val trackedBy: @NotNull Set<Player?>
Link copied to clipboard
@get:NotNull
abstract val trackedPlayers: @NotNull Set<Player?>
Link copied to clipboard
@get:NotNull
abstract val type: @NotNull EntityType
Link copied to clipboard
open override val uniqueId: UUID
Link copied to clipboard
Link copied to clipboard
abstract val upwardsMovement: Float
Link copied to clipboard
@get:Nullable
abstract val vehicle: @Nullable Entity?
Link copied to clipboard
@get:NotNull
abstract var velocity: @NotNull Vector
Link copied to clipboard
abstract var viewDistance: Int
Link copied to clipboard
abstract val virtualHost: @Nullable InetSocketAddress?
Link copied to clipboard
@get:NotNull
abstract var visualFire: @NotNull TriState
Link copied to clipboard
abstract var walkSpeed: Float
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
abstract var wardenWarningLevel: Int
Link copied to clipboard
abstract val width: Double
Link copied to clipboard
open override val world: World
Link copied to clipboard
abstract var worldBorder: @Nullable WorldBorder?
Link copied to clipboard
abstract val x: Double
Link copied to clipboard
abstract val y: Double
Link copied to clipboard
abstract val yaw: Float
Link copied to clipboard
abstract val z: Double

Functions

Link copied to clipboard
abstract fun abandonConversation(@NotNull p0: @NotNull Conversation)
abstract fun abandonConversation(@NotNull p0: @NotNull Conversation, @NotNull p1: @NotNull ConversationAbandonedEvent)
Link copied to clipboard
abstract fun acceptConversationInput(@NotNull p0: @NotNull String)
Link copied to clipboard
abstract fun activeBossBars(): @UnmodifiableView Iterable<out BossBar>
Link copied to clipboard
Link copied to clipboard
@NotNull
abstract fun addAttachment(@NotNull p0: @NotNull Plugin): @NotNull PermissionAttachment
@Nullable
abstract fun addAttachment(@NotNull p0: @NotNull Plugin, p1: Int): @Nullable PermissionAttachment?
@NotNull
abstract fun addAttachment(@NotNull p0: @NotNull Plugin, @NotNull p1: @NotNull String, p2: Boolean): @NotNull PermissionAttachment
@Nullable
abstract fun addAttachment(@NotNull p0: @NotNull Plugin, @NotNull p1: @NotNull String, p2: Boolean, p3: Int): @Nullable PermissionAttachment?
Link copied to clipboard
Link copied to clipboard
abstract fun addPassenger(@NotNull p0: @NotNull Entity): Boolean
Link copied to clipboard
open fun addPotionEffect(@NotNull effect: @NotNull PotionEffect): Boolean
abstract fun addPotionEffect(@NotNull p0: @NotNull PotionEffect, p1: Boolean): Boolean
Link copied to clipboard
abstract fun addPotionEffects(@NotNull p0: @NotNull Collection<PotionEffect?>): Boolean
Link copied to clipboard
abstract fun addResourcePack(p0: UUID, p1: String, p2: @Nullable ByteArray?, p3: @Nullable String?, p4: Boolean)
Link copied to clipboard
abstract fun addScoreboardTag(@NotNull p0: @NotNull String): Boolean
Link copied to clipboard
fun Player.addToInventoryOrDrop(items: List<ItemStack>)

Adds items to the Player's inventory or drops them on the ground if there is not enough space.

fun Player.addToInventoryOrDrop(vararg items: ItemStack)

Adds items to the Player's inventory or drops them on the ground if there is not enough space

Link copied to clipboard
fun Player.addToInventoryPrioritizedOrDrop(prioritizedSlot: Int, itemStack: ItemStack)

Puts an ItemStack on the prioritizedSlot or adds it to the Inventory if the given slot is occupied or drops it on the ground if there is not enough space.

fun Player.addToInventoryPrioritizedOrDrop(prioritizedSlot: EquipmentSlot, itemStack: ItemStack)

Puts an ItemStack on the prioritizedSlot or adds it to the Inventory if the given slot is occupied or drops it on the ground if there is not enough space.

Link copied to clipboard
abstract fun applyMending(p0: Int): Int
Link copied to clipboard
open fun applySkinToPlayerHeadContents(builder: PlayerHeadObjectContents.Builder)
Link copied to clipboard
@NotNull
open fun asHoverEvent(): @NotNull HoverEvent<HoverEvent.ShowEntity?>
open fun asHoverEvent(op: UnaryOperator<HoverEvent.ShowEntity>): HoverEvent<HoverEvent.ShowEntity>
Link copied to clipboard
abstract fun attack(@NotNull p0: @NotNull Entity)
Link copied to clipboard
fun Player.awardAdvancement(key: NamespacedKey)
Link copied to clipboard
open override fun <E : BanEntry<in PlayerProfile>> ban(p0: @Nullable String?, p1: @Nullable Duration?, p2: @Nullable String?): @Nullable E?
open override fun <E : BanEntry<in PlayerProfile>> ban(p0: @Nullable String?, p1: @Nullable Instant?, p2: @Nullable String?): @Nullable E?
open override fun <E : BanEntry<in PlayerProfile>> ban(p0: @Nullable String?, p1: @Nullable Date?, p2: @Nullable String?): @Nullable E?
abstract fun <E : BanEntry<in PlayerProfile>> ban(p0: @Nullable String?, p1: @Nullable Duration?, p2: @Nullable String?, p3: Boolean): @Nullable E?
abstract fun <E : BanEntry<in PlayerProfile>> ban(p0: @Nullable String?, p1: @Nullable Instant?, p2: @Nullable String?, p3: Boolean): @Nullable E?
abstract fun <E : BanEntry<in PlayerProfile>> ban(p0: @Nullable String?, p1: @Nullable Date?, p2: @Nullable String?, p3: Boolean): @Nullable E?
Link copied to clipboard
abstract fun banIp(p0: @Nullable String?, p1: @Nullable Duration?, p2: @Nullable String?, p3: Boolean): @Nullable BanEntry<InetAddress>?
abstract fun banIp(p0: @Nullable String?, p1: @Nullable Instant?, p2: @Nullable String?, p3: Boolean): @Nullable BanEntry<InetAddress>?
abstract fun banIp(p0: @Nullable String?, p1: @Nullable Date?, p2: @Nullable String?, p3: Boolean): @Nullable BanEntry<InetAddress>?
Link copied to clipboard
open fun banPlayer(reason: @Nullable String?): BanEntry<*>
open fun banPlayer(reason: @Nullable String?, expires: @Nullable Date?): BanEntry<*>
open fun banPlayer(reason: @Nullable String?, source: @Nullable String?): BanEntry<*>
open fun banPlayer(reason: @Nullable String?, expires: @Nullable Date?, source: @Nullable String?): BanEntry<*>
open fun banPlayer(reason: @Nullable String?, expires: @Nullable Date?, source: @Nullable String?, kickIfOnline: Boolean): BanEntry<*>
Link copied to clipboard
open fun banPlayerFull(reason: @Nullable String?): @Nullable BanEntry<*>??
open fun banPlayerFull(reason: @Nullable String?, expires: @Nullable Date?): @Nullable BanEntry<*>??
open fun banPlayerFull(reason: @Nullable String?, source: @Nullable String?): @Nullable BanEntry<*>??
open fun banPlayerFull(reason: @Nullable String?, expires: @Nullable Date?, source: @Nullable String?): @Nullable BanEntry<*>??
Link copied to clipboard
open fun banPlayerIP(reason: @Nullable String?): @Nullable BanEntry<*>??
open fun banPlayerIP(reason: @Nullable String?, expires: @Nullable Date?): @Nullable BanEntry<*>??
open fun banPlayerIP(reason: @Nullable String?, kickPlayer: Boolean): @Nullable BanEntry<*>??
open fun banPlayerIP(reason: @Nullable String?, source: @Nullable String?): @Nullable BanEntry<*>??
open fun banPlayerIP(reason: @Nullable String?, expires: @Nullable Date?, kickPlayer: Boolean): @Nullable BanEntry<*>??
open fun banPlayerIP(reason: @Nullable String?, expires: @Nullable Date?, source: @Nullable String?): @Nullable BanEntry<*>??
open fun banPlayerIP(reason: @Nullable String?, source: @Nullable String?, kickPlayer: Boolean): @Nullable BanEntry<*>??
open fun banPlayerIP(reason: @Nullable String?, expires: @Nullable Date?, source: @Nullable String?, kickPlayer: Boolean): @Nullable BanEntry<*>??
Link copied to clipboard
abstract fun beginConversation(@NotNull p0: @NotNull Conversation): Boolean
Link copied to clipboard
open fun boostElytra(firework: ItemStack): @Nullable Firework?
Link copied to clipboard
abstract fun breakBlock(p0: Block): Boolean
Link copied to clipboard
abstract fun broadcastHurtAnimation(@NotNull p0: @NotNull Collection<Player?>)
Link copied to clipboard
abstract fun broadcastSlotBreak(p0: @NotNull EquipmentSlot)
abstract fun broadcastSlotBreak(p0: @NotNull EquipmentSlot, @NotNull p1: @NotNull Collection<Player?>)
Link copied to clipboard
abstract fun calculateTotalExperiencePoints(): @Range(from = 0, to = 2147483647) Int
Link copied to clipboard
Link copied to clipboard
abstract fun canSee(p0: Entity): Boolean
abstract fun canSee(p0: Player): Boolean
Link copied to clipboard
abstract fun canUseEquipmentSlot(p0: @NotNull EquipmentSlot): Boolean
Link copied to clipboard
abstract fun chat(p0: String)
Link copied to clipboard
abstract fun clearActiveItem()
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun clearTitle()
Link copied to clipboard
open fun closeDialog()
Link copied to clipboard
open fun closeInventory()
abstract fun closeInventory(p0: InventoryCloseEvent.Reason)
Link copied to clipboard
abstract fun collidesAt(@NotNull p0: @NotNull Location): Boolean
Link copied to clipboard
@ApiStatus.Experimental
abstract fun completeUsingActiveItem()
Link copied to clipboard
@NotNull
@ApiStatus.Experimental
abstract fun copy(): @NotNull Entity
@NotNull
@ApiStatus.Experimental
abstract fun copy(@NotNull p0: @NotNull Location): @NotNull Entity
Link copied to clipboard
@Nullable
@ApiStatus.Experimental
abstract fun createSnapshot(): @Nullable EntitySnapshot?
Link copied to clipboard
abstract fun customName(): @Nullable Component?
abstract fun customName(p0: @Nullable Component?)
Link copied to clipboard
abstract fun damage(p0: Double)
abstract fun damage(p0: Double, @NotNull p1: @NotNull DamageSource)
abstract fun damage(p0: Double, @Nullable p1: @Nullable Entity?)
Link copied to clipboard
fun LivingEntity.damageItemInHand(hand: EquipmentSlot, damage: Int = 1)

Damages the item in the specified hand by damage amount.

Link copied to clipboard
fun LivingEntity.damageItemInMainHand(damage: Int = 1)

Damages the item in the entity's main hand by damage amount.

Link copied to clipboard
fun LivingEntity.damageItemInOffHand(damage: Int = 1)

Damages the item in the entity's offhand by damage amount.

Link copied to clipboard
abstract fun damageItemStack(p0: @NotNull EquipmentSlot, p1: Int)
@NotNull
abstract fun damageItemStack(@NotNull p0: @NotNull ItemStack, p1: Int): @NotNull ItemStack
Link copied to clipboard
fun LivingEntity.damageToolAttackEntity()

Damages the tool in the entity's main hand as if they've attack an entity.

Link copied to clipboard
fun LivingEntity.damageToolBreakBlock()

Damages the tool in the entity's main hand as if they've broken a block.

Link copied to clipboard
open override fun decrementStatistic(p0: Statistic)
open override fun decrementStatistic(p0: Statistic, p1: Int)
open override fun decrementStatistic(p0: Statistic, p1: Material)
open override fun decrementStatistic(p0: Statistic, p1: EntityType)
open override fun decrementStatistic(p0: Statistic, p1: Material, p2: Int)
open override fun decrementStatistic(p0: Statistic, p1: EntityType, p2: Int)
Link copied to clipboard
open fun deleteMessage(@NotNull signedMessage: @NotNull SignedMessage)
open fun deleteMessage(signature: SignedMessage.Signature?)
Link copied to clipboard
open fun discoverRecipe(recipe: NamespacedKey): Boolean
Link copied to clipboard
abstract fun discoverRecipes(p0: Collection<NamespacedKey>): Int
Link copied to clipboard
abstract fun displayName(): Component
abstract fun displayName(p0: @Nullable Component?)
Link copied to clipboard
@ApiStatus.Obsolete(since = "1.21.4")
abstract fun dropItem(p0: Boolean): Boolean
open fun dropItem(slot: Int): @Nullable Item?
open fun dropItem(slot: EquipmentSlot): @Nullable Item?
open fun dropItem(itemStack: ItemStack): @Nullable Item?
open fun dropItem(slot: Int, amount: Int): @Nullable Item?
open fun dropItem(slot: EquipmentSlot, amount: Int): @Nullable Item?
abstract fun dropItem(p0: ItemStack, p1: Boolean, p2: @Nullable Consumer<Item>?): @Nullable Item?
abstract fun dropItem(p0: Int, p1: Int, p2: Boolean, p3: @Nullable Consumer<Item>?): @Nullable Item?
abstract fun dropItem(p0: EquipmentSlot, p1: Int, p2: Boolean, p3: @Nullable Consumer<Item>?): @Nullable Item?
Link copied to clipboard
abstract fun eject(): Boolean
Link copied to clipboard
@NotNull
open fun filterAudience(@NotNull filter: @NotNull Predicate<in Audience?>): @NotNull Audience
Link copied to clipboard
abstract fun fireworkBoost(p0: ItemStack): @Nullable Firework?
Link copied to clipboard
open fun forEachAudience(@NotNull action: @NotNull Consumer<in Audience?>)
Link copied to clipboard
abstract fun fromMobSpawner(): Boolean
Link copied to clipboard
@NotNull
open operator fun <T : Any?> get(@NotNull pointer: @NotNull Pointer<T?>): @NotNull Optional<T?>
Link copied to clipboard
abstract fun getAdvancementProgress(p0: Advancement): AdvancementProgress
Link copied to clipboard
@Nullable
abstract fun getAttribute(@NotNull p0: @NotNull Attribute): @Nullable AttributeInstance?
Link copied to clipboard
abstract fun <T : Any> getClientOption(p0: ClientOption<T>): T
Link copied to clipboard
abstract fun getCooldown(p0: Key): Int
abstract fun getCooldown(p0: Material): Int
abstract fun getCooldown(p0: ItemStack): Int
Link copied to clipboard
Link copied to clipboard
@Contract(pure = true)
@ApiStatus.Experimental
abstract fun <T : Any> getData(p0: DataComponentType.Valued<T>): @Nullable T?
Link copied to clipboard
@Contract(value = "_, !null -> !null", pure = true)
@ApiStatus.Experimental
abstract fun <T : Any> getDataOrDefault(p0: DataComponentType.Valued<out T>, p1: @Nullable T?): @Nullable T?
Link copied to clipboard
@NotNull
abstract fun getDrinkingSound(@NotNull p0: @NotNull ItemStack): @NotNull Sound
Link copied to clipboard
@NotNull
abstract fun getEatingSound(@NotNull p0: @NotNull ItemStack): @NotNull Sound
Link copied to clipboard
@NotNull
abstract fun getFallDamageSound(p0: Int): @NotNull Sound
Link copied to clipboard
open override fun getFirstPlayed(): Long
Link copied to clipboard
open override fun getLastDeathLocation(): @Nullable Location?
Link copied to clipboard
open override fun getLastLogin(): Long
Link copied to clipboard
open override fun getLastPlayed(): Long
Link copied to clipboard
open override fun getLastSeen(): Long
Link copied to clipboard
@NotNull
abstract fun getLastTwoTargetBlocks(@Nullable p0: @Nullable Set<Material?>??, p1: Int): @NotNull List<Block?>
Link copied to clipboard
@NotNull
abstract fun getLineOfSight(@Nullable p0: @Nullable Set<Material?>??, p1: Int): @NotNull List<Block?>
Link copied to clipboard
open override fun getLocale(): String
Link copied to clipboard
@Contract(value = "null -> null; !null -> !null")
@Nullable
abstract fun getLocation(@Nullable p0: @Nullable Location?): @Nullable Location?
open override fun getLocation(): Location
Link copied to clipboard
@Nullable
abstract fun <T : Any?> getMemory(@NotNull p0: @NotNull MemoryKey<T?>): @Nullable T?
Link copied to clipboard
@NotNull
abstract fun getMetadata(@NotNull p0: @NotNull String): @NotNull List<MetadataValue?>
Link copied to clipboard
open override fun getName(): String
Link copied to clipboard
@NotNull
abstract fun getNearbyEntities(p0: Double, p1: Double, p2: Double): @NotNull List<Entity?>
Link copied to clipboard
@Contract(value = "_, null -> _; _, !null -> !null")
@Nullable
open fun <T : Any?> getOrDefault(@NotNull pointer: @NotNull Pointer<T?>, @Nullable defaultValue: @Nullable T?): @Nullable T?
Link copied to clipboard
open fun <T : Any?> getOrDefaultFrom(@NotNull pointer: @NotNull Pointer<T?>, @NotNull defaultValue: @NotNull Supplier<out T?>): @UnknownNullability T?
Link copied to clipboard
open override fun getPersistentDataContainer(): PersistentDataContainer
Link copied to clipboard
open override fun getPlayer(): @Nullable Player?
Link copied to clipboard
open override fun getPlayerProfile(): PlayerProfile
Link copied to clipboard
@Nullable
abstract fun getPotionEffect(@NotNull p0: @NotNull PotionEffectType): @Nullable PotionEffect?
Link copied to clipboard
open fun getRespawnLocation(): @Nullable Location?
open override fun getRespawnLocation(p0: Boolean): @Nullable Location?
Link copied to clipboard
open override fun getStatistic(p0: Statistic): Int
open override fun getStatistic(p0: Statistic, p1: Material): Int
open override fun getStatistic(p0: Statistic, p1: EntityType): Int
Link copied to clipboard
@Nullable
open fun getTargetBlock(maxDistance: Int): @Nullable Block?
@Nullable
abstract fun getTargetBlock(p0: Int, @NotNull p1: TargetBlockInfo.FluidMode): @Nullable Block?
@NotNull
abstract fun getTargetBlock(@Nullable p0: @Nullable Set<Material?>??, p1: Int): @NotNull Block
Link copied to clipboard
@Nullable
open fun getTargetBlockExact(maxDistance: Int): @Nullable Block?
@Nullable
abstract fun getTargetBlockExact(p0: Int, @NotNull p1: @NotNull FluidCollisionMode): @Nullable Block?
Link copied to clipboard
@Nullable
open fun getTargetBlockFace(maxDistance: Int): @Nullable BlockFace?
@Nullable
abstract fun getTargetBlockFace(p0: Int, @NotNull p1: TargetBlockInfo.FluidMode): @Nullable BlockFace?
@Nullable
abstract fun getTargetBlockFace(p0: Int, @NotNull p1: @NotNull FluidCollisionMode): @Nullable BlockFace?
Link copied to clipboard
@Nullable
open fun getTargetBlockInfo(maxDistance: Int): @Nullable TargetBlockInfo?
@Nullable
abstract fun getTargetBlockInfo(p0: Int, @NotNull p1: TargetBlockInfo.FluidMode): @Nullable TargetBlockInfo?
Link copied to clipboard
@Nullable
open fun getTargetEntity(maxDistance: Int): @Nullable Entity?
@Nullable
abstract fun getTargetEntity(p0: Int, p1: Boolean): @Nullable Entity?
Link copied to clipboard
@Nullable
open fun getTargetEntityInfo(maxDistance: Int): @Nullable TargetEntityInfo?
@Nullable
abstract fun getTargetEntityInfo(p0: Int, p1: Boolean): @Nullable TargetEntityInfo?
Link copied to clipboard
open override fun getUniqueId(): UUID
Link copied to clipboard
open override fun getWorld(): World
Link copied to clipboard
open fun give(items: Collection<ItemStack>): PlayerGiveResult
open fun give(vararg items: ItemStack): PlayerGiveResult
abstract fun give(p0: Collection<ItemStack>, p1: Boolean): PlayerGiveResult
Link copied to clipboard
open fun giveExp(amount: Int)
abstract fun giveExp(p0: Int, p1: Boolean)
Link copied to clipboard
abstract fun giveExpLevels(p0: Int)
Link copied to clipboard
abstract fun hasActiveItem(): Boolean
Link copied to clipboard
abstract fun hasAI(): Boolean
Link copied to clipboard
abstract fun hasCooldown(p0: Material): Boolean
abstract fun hasCooldown(p0: ItemStack): Boolean
Link copied to clipboard
@Contract(pure = true)
@ApiStatus.Experimental
abstract fun hasData(p0: DataComponentType): Boolean
Link copied to clipboard
abstract fun hasDiscoveredRecipe(p0: NamespacedKey): Boolean
Link copied to clipboard
abstract fun hasFixedPose(): Boolean
Link copied to clipboard
abstract fun hasFlyingFallDamage(): TriState
Link copied to clipboard
abstract fun hasGravity(): Boolean
Link copied to clipboard
abstract fun hasLineOfSight(@NotNull p0: @NotNull Location): Boolean
abstract fun hasLineOfSight(@NotNull p0: @NotNull Entity): Boolean
Link copied to clipboard
abstract fun hasMetadata(@NotNull p0: @NotNull String): Boolean
Link copied to clipboard
abstract fun hasNoPhysics(): Boolean
Link copied to clipboard
open override fun hasPermission(name: String): Boolean
open override fun hasPermission(perm: Permission): Boolean
Link copied to clipboard
open override fun hasPlayedBefore(): Boolean
Link copied to clipboard
abstract fun hasPotionEffect(@NotNull p0: @NotNull PotionEffectType): Boolean
Link copied to clipboard
Link copied to clipboard
abstract fun hasSeenWinScreen(): Boolean
Link copied to clipboard
open fun heal(amount: Double)
abstract fun heal(p0: Double, @NotNull p1: EntityRegainHealthEvent.RegainReason)
Link copied to clipboard
open fun hideBossBar(@NotNull bar: @NotNull BossBar)
Link copied to clipboard
abstract fun hideEntity(p0: Plugin, p1: Entity)
Link copied to clipboard
abstract fun hidePlayer(p0: Player)
open fun hidePlayer(plugin: Plugin, player: Player)
Link copied to clipboard
abstract fun hideTitle()
Link copied to clipboard
open fun identity(): Identity
Link copied to clipboard
Link copied to clipboard
open override fun incrementStatistic(p0: Statistic)
open override fun incrementStatistic(p0: Statistic, p1: Int)
open override fun incrementStatistic(p0: Statistic, p1: Material)
open override fun incrementStatistic(p0: Statistic, p1: EntityType)
open override fun incrementStatistic(p0: Statistic, p1: Material, p2: Int)
open override fun incrementStatistic(p0: Statistic, p1: EntityType, p2: Int)
Link copied to clipboard
open override fun isBanned(): Boolean
Link copied to clipboard
abstract fun isChunkSent(p0: Long): Boolean
open fun isChunkSent(chunk: Chunk): Boolean
Link copied to clipboard
open override fun isConnected(): Boolean
Link copied to clipboard
abstract fun isListed(p0: Player): Boolean
Link copied to clipboard
open override fun isOnline(): Boolean
Link copied to clipboard
open override fun isOp(): Boolean
Link copied to clipboard
open override fun isPermissionSet(name: String): Boolean
open override fun isPermissionSet(perm: Permission): Boolean
Link copied to clipboard
abstract fun isTrackedBy(@NotNull p0: @NotNull Player): Boolean
Link copied to clipboard
open override fun isWhitelisted(): Boolean
Link copied to clipboard
open fun kick()
open fun kick(message: @Nullable Component?)
abstract fun kick(p0: @Nullable Component?, p1: PlayerKickEvent.Cause)
Link copied to clipboard
abstract fun kickPlayer(p0: @Nullable String?)
Link copied to clipboard
abstract fun knockback(p0: Double, p1: Double, p2: Double)
Link copied to clipboard
@NotNull
open fun <T : Projectile?> launchProjectile(@NotNull projectile: @NotNull Class<out T?>): @NotNull T & Any
@NotNull
open fun <T : Projectile?> launchProjectile(@NotNull projectile: @NotNull Class<out T?>, @Nullable velocity: @Nullable Vector?): @NotNull T & Any
@NotNull
abstract fun <T : Projectile?> launchProjectile(@NotNull p0: @NotNull Class<out T?>, @Nullable p1: @Nullable Vector?, p2: @Nullable Consumer<in T?>?): @NotNull T & Any
Link copied to clipboard
abstract fun leaveVehicle(): Boolean
Link copied to clipboard
abstract fun listPlayer(p0: Player): Boolean
Link copied to clipboard
abstract fun loadData()
Link copied to clipboard
open override fun locale(): Locale
Link copied to clipboard
abstract fun lockFreezeTicks(p0: Boolean)
Link copied to clipboard
open fun lookAt(@NotNull position: @NotNull Position, @NotNull entityAnchor: @NotNull LookAnchor)
abstract fun lookAt(p0: Double, p1: Double, p2: Double, @NotNull p3: @NotNull LookAnchor)
abstract fun lookAt(p0: Entity, p1: LookAnchor, p2: LookAnchor)
Link copied to clipboard
abstract fun name(): @NotNull Component
Link copied to clipboard
abstract fun openAnvil(p0: @Nullable Location?, p1: Boolean): @Nullable InventoryView?
Link copied to clipboard
open fun openBook(@NotNull book: @NotNull Book)
open fun openBook(book: Book.Builder?)
abstract fun openBook(p0: ItemStack)
Link copied to clipboard
abstract fun openCartographyTable(p0: @Nullable Location?, p1: Boolean): @Nullable InventoryView?
Link copied to clipboard
abstract fun openEnchanting(p0: @Nullable Location?, p1: Boolean): @Nullable InventoryView?
Link copied to clipboard
abstract fun openGrindstone(p0: @Nullable Location?, p1: Boolean): @Nullable InventoryView?
Link copied to clipboard
abstract fun openInventory(p0: Inventory): @Nullable InventoryView?
abstract fun openInventory(p0: InventoryView)
Link copied to clipboard
abstract fun openLoom(p0: @Nullable Location?, p1: Boolean): @Nullable InventoryView?
Link copied to clipboard
open fun openMerchant(trader: Villager, force: Boolean): @Nullable InventoryView?
abstract fun openMerchant(p0: Merchant, p1: Boolean): @Nullable InventoryView?
Link copied to clipboard
open fun openSign(sign: Sign)
abstract fun openSign(p0: Sign, p1: Side)
Link copied to clipboard
abstract fun openSmithingTable(p0: @Nullable Location?, p1: Boolean): @Nullable InventoryView?
Link copied to clipboard
abstract fun openStonecutter(p0: @Nullable Location?, p1: Boolean): @Nullable InventoryView?
Link copied to clipboard
@ApiStatus.Experimental
abstract fun openVirtualSign(p0: Position, p1: Side)
Link copied to clipboard
abstract fun openWorkbench(p0: @Nullable Location?, p1: Boolean): @Nullable InventoryView?
Link copied to clipboard
abstract fun performCommand(p0: String): Boolean
Link copied to clipboard
open fun permissionValue(@NotNull permission: @NotNull String): @NotNull TriState
open fun permissionValue(@NotNull permission: @NotNull Permission): @NotNull TriState
Link copied to clipboard
fun Player.playClickSound()

Plays the ui button click sound for the player.

Link copied to clipboard
abstract fun playEffect(@NotNull p0: @NotNull EntityEffect)
abstract fun <T : Any> playEffect(p0: Location, p1: Effect, p2: @Nullable T?)
abstract fun playEffect(p0: Location, p1: Effect, p2: Int)
Link copied to clipboard
abstract fun playerListFooter(): @Nullable Component?
Link copied to clipboard
abstract fun playerListHeader(): @Nullable Component?
Link copied to clipboard
abstract fun playerListName(): Component
abstract fun playerListName(p0: @Nullable Component?)
Link copied to clipboard
abstract fun playHurtAnimation(p0: Float)
Link copied to clipboard
fun Player.playItemPickupSound()
Link copied to clipboard
open fun playNote(loc: Location, instrument: Byte, note: Byte)
abstract fun playNote(p0: Location, p1: Instrument, p2: Note)
Link copied to clipboard
open fun playPickupItemAnimation(@NotNull item: @NotNull Item)
abstract fun playPickupItemAnimation(@NotNull p0: @NotNull Item, p1: Int)
Link copied to clipboard
open fun playSound(@NotNull sound: @NotNull Sound)
open fun playSound(@NotNull sound: @NotNull Sound, emitter: Sound.Emitter?)
open fun playSound(@NotNull sound: @NotNull Sound, x: Double, y: Double, z: Double)
open fun playSound(location: Location, sound: String, volume: Float, pitch: Float)
open fun playSound(location: Location, sound: Sound, volume: Float, pitch: Float)
open fun playSound(entity: Entity, sound: String, volume: Float, pitch: Float)
open fun playSound(entity: Entity, sound: Sound, volume: Float, pitch: Float)
abstract fun playSound(p0: Location, p1: String, p2: SoundCategory, p3: Float, p4: Float)
abstract fun playSound(p0: Location, p1: Sound, p2: SoundCategory, p3: Float, p4: Float)
abstract fun playSound(p0: Entity, p1: String, p2: SoundCategory, p3: Float, p4: Float)
abstract fun playSound(p0: Entity, p1: Sound, p2: SoundCategory, p3: Float, p4: Float)
abstract fun playSound(p0: Location, p1: String, p2: SoundCategory, p3: Float, p4: Float, p5: Long)
abstract fun playSound(p0: Location, p1: Sound, p2: SoundCategory, p3: Float, p4: Float, p5: Long)
abstract fun playSound(p0: Entity, p1: String, p2: SoundCategory, p3: Float, p4: Float, p5: Long)
abstract fun playSound(p0: Entity, p1: Sound, p2: SoundCategory, p3: Float, p4: Float, p5: Long)
Link copied to clipboard
@NotNull
open fun pointers(): @NotNull Pointers
Link copied to clipboard
@Nullable
open fun rayTraceBlocks(maxDistance: Double): @Nullable RayTraceResult?
@Nullable
abstract fun rayTraceBlocks(p0: Double, @NotNull p1: @NotNull FluidCollisionMode): @Nullable RayTraceResult?
Link copied to clipboard
@Nullable
open fun rayTraceEntities(maxDistance: Int): @Nullable RayTraceResult?
@Nullable
abstract fun rayTraceEntities(p0: Int, p1: Boolean): @Nullable RayTraceResult?
Link copied to clipboard
abstract fun recalculatePermissions()
Link copied to clipboard
abstract fun registerAttribute(@NotNull p0: @NotNull Attribute)
Link copied to clipboard
abstract fun releaseLeftShoulderEntity(): @Nullable Entity?
Link copied to clipboard
abstract fun releaseRightShoulderEntity(): @Nullable Entity?
Link copied to clipboard
abstract fun remove()
Link copied to clipboard
abstract fun removeAttachment(@NotNull p0: @NotNull PermissionAttachment)
Link copied to clipboard
Link copied to clipboard
abstract fun removeMetadata(@NotNull p0: @NotNull String, @NotNull p1: @NotNull Plugin)
Link copied to clipboard
abstract fun removePassenger(@NotNull p0: @NotNull Entity): Boolean
Link copied to clipboard
abstract fun removePotionEffect(@NotNull p0: @NotNull PotionEffectType)
Link copied to clipboard
abstract fun removeResourcePack(p0: UUID)
Link copied to clipboard
open fun removeResourcePacks(@NotNull ids: @NotNull Iterable<UUID?>)
open fun removeResourcePacks(@NotNull request: @NotNull ResourcePackRequest)
open fun removeResourcePacks(@NotNull request: @NotNull ResourcePackRequestLike)
open fun removeResourcePacks(@NotNull id: @NotNull UUID, @NotNull vararg others: @NotNull UUID)
open fun removeResourcePacks(@NotNull request: @NotNull ResourcePackInfoLike, @NotNull vararg others: @NotNull ResourcePackInfoLike)
abstract fun removeResourcePacks()
Link copied to clipboard
abstract fun removeScoreboardTag(@NotNull p0: @NotNull String): Boolean
Link copied to clipboard
abstract fun resetCooldown()
Link copied to clipboard
abstract fun resetIdleDuration()
Link copied to clipboard
abstract fun resetMaxHealth()
Link copied to clipboard
abstract fun resetPlayerTime()
Link copied to clipboard
abstract fun resetPlayerWeather()
Link copied to clipboard
abstract fun resetTitle()
Link copied to clipboard
abstract fun retrieveCookie(p0: NamespacedKey): CompletableFuture<@Nullable ByteArray?>
Link copied to clipboard
abstract fun saveData()
Link copied to clipboard
fun Player.send(vararg bufs: FriendlyByteBuf, retain: Boolean = true, flush: Boolean = true)
fun Player.send(packets: Iterable<Packet<*>>)
fun Player.send(vararg packets: Packet<*>)
Link copied to clipboard
open fun sendActionBar(@NotNull message: @NotNull Component)
open fun sendActionBar(@NotNull message: @NotNull ComponentLike)
abstract fun sendActionBar(p0: String)
abstract fun sendActionBar(vararg p0: BaseComponent)
abstract fun sendActionBar(p0: Char, p1: String)
Link copied to clipboard
abstract fun sendBlockChange(p0: Location, p1: BlockData)
abstract fun sendBlockChange(p0: Location, p1: Material, p2: Byte)
Link copied to clipboard
abstract fun sendBlockChanges(p0: Collection<BlockState>)
open fun sendBlockChanges(blocks: Collection<BlockState>, suppressLightUpdates: Boolean)
Link copied to clipboard
open fun sendBlockDamage(loc: Location, progress: Float)
abstract fun sendBlockDamage(p0: Location, p1: Float, p2: Int)
abstract fun sendBlockDamage(p0: Location, p1: Float, p2: Entity)
Link copied to clipboard
abstract fun sendBlockUpdate(p0: Location, p1: TileState)
Link copied to clipboard
abstract fun sendEntityEffect(p0: EntityEffect, p1: Entity)
Link copied to clipboard
abstract fun sendEquipmentChange(p0: LivingEntity, p1: Map<EquipmentSlot, @Nullable ItemStack?>)
abstract fun sendEquipmentChange(p0: LivingEntity, p1: EquipmentSlot, p2: @Nullable ItemStack?)
Link copied to clipboard
abstract fun sendExperienceChange(p0: Float)
abstract fun sendExperienceChange(p0: Float, p1: Int)
Link copied to clipboard
abstract fun sendHealthUpdate()
abstract fun sendHealthUpdate(p0: Double, p1: Int, p2: Float)
Link copied to clipboard
abstract fun sendHurtAnimation(p0: Float)
Link copied to clipboard
abstract fun sendLinks(p0: ServerLinks)
Link copied to clipboard
abstract fun sendMap(p0: MapView)
Link copied to clipboard
open fun sendMessage(@NotNull message: @NotNull Component)
open fun sendMessage(@NotNull message: @NotNull ComponentLike)
open fun sendMessage(@NotNull signedMessage: @NotNull SignedMessage, boundChatType: ChatType.Bound?)
open fun sendMessage(@NotNull source: @NotNull Identified, @NotNull message: @NotNull Component)
open fun sendMessage(@NotNull source: @NotNull Identified, @NotNull message: @NotNull ComponentLike)
open fun sendMessage(@NotNull source: @NotNull Identity, @NotNull message: @NotNull Component)
open fun sendMessage(@NotNull source: @NotNull Identity, @NotNull message: @NotNull ComponentLike)
@ApiStatus.ScheduledForRemoval(inVersion = "5.0.0")
open fun sendMessage(@NotNull message: @NotNull Component, @NotNull type: @NotNull MessageType)
open fun sendMessage(@NotNull message: @NotNull Component, boundChatType: ChatType.Bound?)
@ApiStatus.ScheduledForRemoval(inVersion = "5.0.0")
open fun sendMessage(@NotNull message: @NotNull ComponentLike, @NotNull type: @NotNull MessageType)
open fun sendMessage(@NotNull message: @NotNull ComponentLike, boundChatType: ChatType.Bound?)
@ApiStatus.ScheduledForRemoval(inVersion = "5.0.0")
open fun sendMessage(@NotNull source: @NotNull Identified, @NotNull message: @NotNull Component, @NotNull type: @NotNull MessageType)
@ApiStatus.ScheduledForRemoval(inVersion = "5.0.0")
open fun sendMessage(@NotNull source: @NotNull Identified, @NotNull message: @NotNull ComponentLike, @NotNull type: @NotNull MessageType)
open fun sendMessage(identity: @NotNull Identity, message: @NotNull Component, type: @NotNull MessageType)
@ApiStatus.ScheduledForRemoval(inVersion = "5.0.0")
open fun sendMessage(@NotNull source: @NotNull Identity, @NotNull message: @NotNull ComponentLike, @NotNull type: @NotNull MessageType)
@ApiStatus.Obsolete
abstract fun sendMessage(@NotNull p0: @NotNull String)
@ApiStatus.Obsolete
abstract fun sendMessage(@NotNull vararg p0: @NotNull String)
open fun sendMessage(component: BaseComponent)
open fun sendMessage(vararg components: BaseComponent)
abstract fun sendMessage(@Nullable p0: @Nullable UUID?, @NotNull p1: @NotNull String)
abstract fun sendMessage(@Nullable p0: @Nullable UUID?, @NotNull vararg p1: @NotNull String)
open fun sendMessage(position: ChatMessageType, vararg components: BaseComponent)
Link copied to clipboard
abstract fun sendMultiBlockChange(p0: Map<out Position, BlockData>)
open fun sendMultiBlockChange(blockChanges: Map<out Position, BlockData>, suppressLightUpdates: Boolean)
Link copied to clipboard
abstract fun sendOpLevel(p0: Byte)
Link copied to clipboard
open fun sendPlainMessage(@NotNull message: @NotNull String)
Link copied to clipboard
open fun sendPlayerListFooter(@NotNull footer: @NotNull Component)
open fun sendPlayerListFooter(@NotNull footer: @NotNull ComponentLike)
Link copied to clipboard
open fun sendPlayerListHeader(@NotNull header: @NotNull Component)
open fun sendPlayerListHeader(@NotNull header: @NotNull ComponentLike)
Link copied to clipboard
open fun sendPlayerListHeaderAndFooter(@NotNull header: @NotNull Component, @NotNull footer: @NotNull Component)
open fun sendPlayerListHeaderAndFooter(@NotNull header: @NotNull ComponentLike, @NotNull footer: @NotNull ComponentLike)
Link copied to clipboard
abstract fun sendPluginMessage(@NotNull p0: @NotNull Plugin, @NotNull p1: @NotNull String, p2: @NotNull ByteArray)
Link copied to clipboard
abstract fun sendPotionEffectChange(p0: LivingEntity, p1: PotionEffect)
Link copied to clipboard
abstract fun sendPotionEffectChangeRemove(p0: LivingEntity, p1: PotionEffectType)
Link copied to clipboard
abstract fun sendRawMessage(p0: String)
abstract fun sendRawMessage(@Nullable p0: @Nullable UUID?, @NotNull p1: @NotNull String)
Link copied to clipboard
open fun sendResourcePacks(@NotNull request: @NotNull ResourcePackRequest)
open fun sendResourcePacks(@NotNull request: @NotNull ResourcePackRequestLike)
open fun sendResourcePacks(@NotNull first: @NotNull ResourcePackInfoLike, @NotNull vararg others: @NotNull ResourcePackInfoLike)
Link copied to clipboard
open fun sendRichMessage(@NotNull message: @NotNull String)
open fun sendRichMessage(@NotNull message: @NotNull String, vararg resolvers: @NotNull TagResolver)
Link copied to clipboard
abstract fun sendSignChange(p0: Location, p1: @Nullable Array<out @Nullable String?>??)
open fun sendSignChange(loc: Location, lines: @Nullable List<out Component>??)
abstract fun sendSignChange(p0: Location, p1: @Nullable Array<out @Nullable String?>??, p2: DyeColor)
open fun sendSignChange(loc: Location, lines: @Nullable List<out Component>??, hasGlowingText: Boolean)
open fun sendSignChange(loc: Location, lines: @Nullable List<out Component>??, dyeColor: DyeColor)
abstract fun sendSignChange(p0: Location, p1: @Nullable Array<out @Nullable String?>??, p2: DyeColor, p3: Boolean)
abstract fun sendSignChange(p0: Location, p1: @Nullable List<out Component>??, p2: DyeColor, p3: Boolean)
Link copied to clipboard
abstract fun sendTitle(p0: Title)
abstract fun sendTitle(p0: @Nullable String?, p1: @Nullable String?)
abstract fun sendTitle(p0: @Nullable String?, p1: @Nullable String?, p2: Int, p3: Int, p4: Int)
Link copied to clipboard
open fun <T : Any?> sendTitlePart(@NotNull part: @NotNull TitlePart<T?>, @NotNull value: @NotNull T & Any)
Link copied to clipboard
@NotNull
@ApiStatus.OverrideOnly
open override fun serialize(): @NotNull Map<String?, Any?>
Link copied to clipboard
abstract fun setAI(p0: Boolean)
Link copied to clipboard
abstract fun setCooldown(p0: Key, p1: Int)
open fun setCooldown(material: Material, ticks: Int)
abstract fun setCooldown(p0: ItemStack, p1: Int)
Link copied to clipboard
Link copied to clipboard
abstract fun setDisplayName(p0: @Nullable String?)
Link copied to clipboard
abstract fun setExperienceLevelAndProgress(p0: @Range(from = 0, to = 2147483647) Int)
Link copied to clipboard
abstract fun setFlyingFallDamage(p0: TriState)
Link copied to clipboard
abstract fun setGravity(p0: Boolean)
Link copied to clipboard
abstract fun setHasSeenWinScreen(p0: Boolean)
Link copied to clipboard
abstract fun setItemInHand(p0: @Nullable ItemStack?)
Link copied to clipboard
abstract fun setItemOnCursor(p0: @Nullable ItemStack?)
Link copied to clipboard
abstract fun setLeashHolder(@Nullable p0: @Nullable Entity?): Boolean
Link copied to clipboard
abstract fun <T : Any?> setMemory(@NotNull p0: @NotNull MemoryKey<T?>, @Nullable p1: @Nullable T?)
Link copied to clipboard
abstract fun setMetadata(@NotNull p0: @NotNull String, @NotNull p1: @NotNull MetadataValue)
Link copied to clipboard
abstract fun setNoPhysics(p0: Boolean)
Link copied to clipboard
open override fun setOp(p0: Boolean)
Link copied to clipboard
abstract fun setPassenger(@NotNull p0: @NotNull Entity): Boolean
Link copied to clipboard
abstract fun setPlayerListHeaderFooter(p0: @Nullable Array<out BaseComponent>??, p1: @Nullable Array<out BaseComponent>??)
abstract fun setPlayerListHeaderFooter(p0: @Nullable String?, p1: @Nullable String?)
abstract fun setPlayerListHeaderFooter(p0: @Nullable BaseComponent?, p1: @Nullable BaseComponent?)
Link copied to clipboard
abstract fun setPlayerListName(p0: @Nullable String?)
Link copied to clipboard
abstract fun setPlayerTime(p0: Long, p1: Boolean)
Link copied to clipboard
abstract fun setPlayerWeather(p0: WeatherType)
Link copied to clipboard
open fun setResourcePack(url: String)
open fun setResourcePack(url: String, hash: @Nullable ByteArray?)
open fun setResourcePack(url: String, hash: String)
open fun setResourcePack(url: String, hash: @Nullable ByteArray?, force: Boolean)
open fun setResourcePack(url: String, hash: @Nullable ByteArray?, prompt: @Nullable String?)
open fun setResourcePack(url: String, hash: @Nullable ByteArray?, prompt: @Nullable Component?)
open fun setResourcePack(url: String, hash: String, required: Boolean)
abstract fun setResourcePack(p0: String, p1: @Nullable ByteArray?, p2: @Nullable String?, p3: Boolean)
open fun setResourcePack(url: String, hash: @Nullable ByteArray?, prompt: @Nullable Component?, force: Boolean)
open fun setResourcePack(url: String, hash: String, required: Boolean, resourcePackPrompt: @Nullable Component?)
abstract fun setResourcePack(p0: UUID, p1: String, p2: @Nullable ByteArray?, p3: @Nullable String?, p4: Boolean)
abstract fun setResourcePack(p0: UUID, p1: String, p2: @Nullable ByteArray?, p3: @Nullable Component?, p4: Boolean)
open fun setResourcePack(uuid: UUID, url: String, hash: String, resourcePackPrompt: @Nullable Component?, required: Boolean)
Link copied to clipboard
abstract fun setRotation(p0: Float, p1: Float)
Link copied to clipboard
open override fun setStatistic(p0: Statistic, p1: Int)
open override fun setStatistic(p0: Statistic, p1: Material, p2: Int)
open override fun setStatistic(p0: Statistic, p1: EntityType, p2: Int)
Link copied to clipboard
abstract fun setSubtitle(p0: Array<out BaseComponent>)
abstract fun setSubtitle(p0: BaseComponent)
Link copied to clipboard
open fun setTexturePack(url: String)
Link copied to clipboard
abstract fun setTitleTimes(p0: Int, p1: Int, p2: Int)
Link copied to clipboard
open override fun setWhitelisted(p0: Boolean)
Link copied to clipboard
abstract fun setWindowProperty(p0: InventoryView.Property, p1: Int): Boolean
Link copied to clipboard
open fun showBossBar(@NotNull bar: @NotNull BossBar)
Link copied to clipboard
abstract fun showDemoScreen()
Link copied to clipboard
open fun showDialog(@NotNull dialog: @NotNull DialogLike)
Link copied to clipboard
abstract fun showElderGuardian(p0: Boolean)
Link copied to clipboard
abstract fun showEntity(p0: Plugin, p1: Entity)
Link copied to clipboard
abstract fun showPlayer(p0: Player)
open fun showPlayer(plugin: Plugin, player: Player)
Link copied to clipboard
fun Player.showRecipes(id: String): Boolean

Tries to open the recipe explorer for the recipes for id, and returns whether the attempt was successful, i.e. if there were any recipes for the item.

fun Player.showRecipes(item: ItemStack): Boolean

Tries to open the recipe explorer for the recipes of item, and returns whether the attempt was successful, i.e. if there were any recipes for the item.

Link copied to clipboard
open fun showTitle(@NotNull title: @NotNull Title)
abstract fun showTitle(p0: Array<out @Nullable BaseComponent?>)
abstract fun showTitle(p0: @Nullable BaseComponent?)
abstract fun showTitle(p0: Array<out @Nullable BaseComponent?>, p1: Array<out @Nullable BaseComponent?>, p2: Int, p3: Int, p4: Int)
abstract fun showTitle(p0: @Nullable BaseComponent?, p1: @Nullable BaseComponent?, p2: Int, p3: Int, p4: Int)
Link copied to clipboard
fun Player.showUsages(id: String): Boolean

Tries to open the recipe explorer for the usages for id, and returns whether the attempt was successful, i.e. if there were any usages for the item.

fun Player.showUsages(item: ItemStack): Boolean

Tries to open the recipe explorer for the usages of item, and returns whether the attempt was successful, i.e. if there were any usages for the item.

Link copied to clipboard
abstract fun showWinScreen()
Link copied to clipboard
abstract fun sleep(p0: Location, p1: Boolean): Boolean
Link copied to clipboard
open fun spawnAt(@NotNull location: @NotNull Location): Boolean
abstract fun spawnAt(@NotNull p0: @NotNull Location, @NotNull p1: CreatureSpawnEvent.SpawnReason): Boolean
Link copied to clipboard
open fun spawnParticle(particle: Particle, location: Location, count: Int)
open fun <T : Any> spawnParticle(particle: Particle, location: Location, count: Int, data: @Nullable T?)
open fun spawnParticle(particle: Particle, x: Double, y: Double, z: Double, count: Int)
open fun <T : Any> spawnParticle(particle: Particle, x: Double, y: Double, z: Double, count: Int, data: @Nullable T?)
open fun spawnParticle(particle: Particle, location: Location, count: Int, offsetX: Double, offsetY: Double, offsetZ: Double)
open fun <T : Any> spawnParticle(particle: Particle, location: Location, count: Int, offsetX: Double, offsetY: Double, offsetZ: Double, data: @Nullable T?)
open fun spawnParticle(particle: Particle, location: Location, count: Int, offsetX: Double, offsetY: Double, offsetZ: Double, extra: Double)
open fun spawnParticle(particle: Particle, x: Double, y: Double, z: Double, count: Int, offsetX: Double, offsetY: Double, offsetZ: Double)
open fun <T : Any> spawnParticle(particle: Particle, location: Location, count: Int, offsetX: Double, offsetY: Double, offsetZ: Double, extra: Double, data: @Nullable T?)
open fun <T : Any> spawnParticle(particle: Particle, x: Double, y: Double, z: Double, count: Int, offsetX: Double, offsetY: Double, offsetZ: Double, data: @Nullable T?)
open fun spawnParticle(particle: Particle, x: Double, y: Double, z: Double, count: Int, offsetX: Double, offsetY: Double, offsetZ: Double, extra: Double)
open fun <T : Any> spawnParticle(particle: Particle, location: Location, count: Int, offsetX: Double, offsetY: Double, offsetZ: Double, extra: Double, data: @Nullable T?, force: Boolean)
open fun <T : Any> spawnParticle(particle: Particle, x: Double, y: Double, z: Double, count: Int, offsetX: Double, offsetY: Double, offsetZ: Double, extra: Double, data: @Nullable T?)
abstract fun <T : Any> spawnParticle(p0: Particle, p1: Double, p2: Double, p3: Double, p4: Int, p5: Double, p6: Double, p7: Double, p8: Double, p9: @Nullable T?, p10: Boolean)
Link copied to clipboard
abstract fun spigot(): Player.Spigot
Link copied to clipboard
abstract fun startRiptideAttack(p0: Int, p1: Float, p2: @Nullable ItemStack?)
Link copied to clipboard
@ApiStatus.Experimental
abstract fun startUsingItem(@NotNull p0: @NotNull EquipmentSlot)
Link copied to clipboard
abstract fun stopAllSounds()
Link copied to clipboard
open fun stopSound(@NotNull sound: @NotNull Sound)
open fun stopSound(@NotNull stop: @NotNull SoundStop)
open fun stopSound(sound: String)
open fun stopSound(sound: Sound)
abstract fun stopSound(p0: SoundCategory)
abstract fun stopSound(p0: String, p1: @Nullable SoundCategory?)
open fun stopSound(sound: Sound, category: @Nullable SoundCategory?)
Link copied to clipboard
abstract fun storeCookie(p0: NamespacedKey, p1: ByteArray)
Link copied to clipboard
open fun swingHand(@NotNull hand: @NotNull EquipmentSlot)
Link copied to clipboard
fun Player.swingHandEventless(hand: EquipmentSlot)

Lets the player swing their hand without triggering any server-side interaction related events.

Link copied to clipboard
abstract fun swingMainHand()
Link copied to clipboard

Lets the player swing their main hand without triggering any server-side interaction related events.

Link copied to clipboard
abstract fun swingOffHand()
Link copied to clipboard

Lets the player swing their off-hand without triggering any server-side interaction related events.

Link copied to clipboard
abstract fun teamDisplayName(): @NotNull Component
Link copied to clipboard
abstract fun teleport(@NotNull p0: @NotNull Location): Boolean
abstract fun teleport(@NotNull p0: @NotNull Entity): Boolean
open fun teleport(@NotNull location: @NotNull Location, @NotNull vararg teleportFlags: @NotNull TeleportFlag): Boolean
abstract fun teleport(@NotNull p0: @NotNull Location, @NotNull p1: PlayerTeleportEvent.TeleportCause): Boolean
abstract fun teleport(@NotNull p0: @NotNull Entity, @NotNull p1: PlayerTeleportEvent.TeleportCause): Boolean
abstract fun teleport(@NotNull p0: @NotNull Location, @NotNull p1: PlayerTeleportEvent.TeleportCause, @NotNull vararg p2: @NotNull TeleportFlag): Boolean
Link copied to clipboard
fun Entity.teleport(modifyLocation: Location.() -> Unit)

Teleports the BukkitEntity after modifying its location using the modifyLocation lambda.

Link copied to clipboard
open fun teleportAsync(@NotNull loc: @NotNull Location): @NotNull CompletableFuture<Boolean?>
open fun teleportAsync(@NotNull loc: @NotNull Location, @NotNull vararg teleportFlags: @NotNull TeleportFlag): @NotNull CompletableFuture<Boolean?>
open fun teleportAsync(@NotNull loc: @NotNull Location, @NotNull cause: PlayerTeleportEvent.TeleportCause): @NotNull CompletableFuture<Boolean?>
abstract fun teleportAsync(@NotNull p0: @NotNull Location, @NotNull p1: PlayerTeleportEvent.TeleportCause, @NotNull vararg p2: @NotNull TeleportFlag): @NotNull CompletableFuture<Boolean?>
Link copied to clipboard
abstract fun transfer(p0: String, p1: Int)
Link copied to clipboard
open fun undiscoverRecipe(recipe: NamespacedKey): Boolean
Link copied to clipboard
abstract fun undiscoverRecipes(p0: Collection<NamespacedKey>): Int
Link copied to clipboard
abstract fun unlistPlayer(p0: Player): Boolean
Link copied to clipboard
abstract fun updateCommands()
Link copied to clipboard
abstract fun updateInventory()
Link copied to clipboard
abstract fun updateTitle(p0: Title)
Link copied to clipboard
abstract fun wakeup(p0: Boolean)
Link copied to clipboard
abstract fun wouldCollideUsing(@NotNull p0: @NotNull BoundingBox): Boolean