CraftEntityView

class CraftEntityView(val source: CraftEntity) : CraftEntity

Constructors

Link copied to clipboard
constructor(source: CraftEntity)

Properties

Link copied to clipboard
open val asString: String?
Link copied to clipboard
open val boundingBox: BoundingBox
Link copied to clipboard
@get:NotNull
open val chunk: @NotNull Chunk
Link copied to clipboard
open var customName: String?
Link copied to clipboard
open override val effectivePermissions: Set<PermissionAttachmentInfo?>
Link copied to clipboard
open val entityId: Int
Link copied to clipboard
open val entitySpawnReason: CreatureSpawnEvent.SpawnReason
Link copied to clipboard
open val facing: BlockFace
Link copied to clipboard
Link copied to clipboard
open var fireTicks: Int
Link copied to clipboard
open var freezeTicks: Int
Link copied to clipboard
open override var handle: Entity
Link copied to clipboard
open val handleRaw: Entity?
Link copied to clipboard
open val height: Double
Link copied to clipboard
Link copied to clipboard
open val isDead: Boolean
Link copied to clipboard
open val isEmpty: Boolean
Link copied to clipboard
Link copied to clipboard
open val isFrozen: Boolean
Link copied to clipboard
open var isGlowing: Boolean
Link copied to clipboard
Link copied to clipboard
open val isInLava: Boolean
Link copied to clipboard
Link copied to clipboard
open val isInRain: Boolean
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open val isInWater: Boolean
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open val isInWorld: Boolean
Link copied to clipboard
Link copied to clipboard
open var isOp: Boolean
Link copied to clipboard
Link copied to clipboard
open var isSilent: Boolean
Link copied to clipboard
Link copied to clipboard
open val isTicking: Boolean
Link copied to clipboard
Link copied to clipboard
open val isValid: Boolean
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open override var lastDamageCause: EntityDamageEvent?
Link copied to clipboard
open val location: Location
Link copied to clipboard
open val maxFireTicks: Int
Link copied to clipboard
Link copied to clipboard
open val name: String
Link copied to clipboard
open val origin: Location?
Link copied to clipboard
open val passenger: Entity?
Link copied to clipboard
open val passengers: List<Entity?>
Link copied to clipboard
open override val persistentDataContainer: CraftPersistentDataContainer
Link copied to clipboard
open val pickItemStack: ItemStack
Link copied to clipboard
open val pistonMoveReaction: PistonMoveReaction
Link copied to clipboard
open val pitch: Float
Link copied to clipboard
Link copied to clipboard
open var pose: Pose
Link copied to clipboard
val scheduler: EntityScheduler
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open val server: Server
Link copied to clipboard
val source: CraftEntity
Link copied to clipboard
open val spawnCategory: SpawnCategory
Link copied to clipboard
open val swimHighSpeedSplashSound: Sound
Link copied to clipboard
open val swimSound: Sound
Link copied to clipboard
open val swimSplashSound: Sound
Link copied to clipboard
val taskScheduler: EntityScheduler?
Link copied to clipboard
open var ticksLived: Int
Link copied to clipboard
open val trackedBy: Set<Player?>
Link copied to clipboard
open val trackedPlayers: Set<Player?>
Link copied to clipboard
val type: EntityType
Link copied to clipboard
open val uniqueId: UUID
Link copied to clipboard
val CraftEntity.unsafeHandle: Entity
Link copied to clipboard
open val vehicle: Entity?
Link copied to clipboard
open var velocity: Vector
Link copied to clipboard
open var visualFire: TriState
Link copied to clipboard
open val width: Double
Link copied to clipboard
open val world: World
Link copied to clipboard
open val x: Double
Link copied to clipboard
open val y: Double
Link copied to clipboard
open val yaw: Float
Link copied to clipboard
open val z: Double

Functions

Link copied to clipboard
open fun addAttachment(plugin: Plugin): PermissionAttachment
open fun addAttachment(plugin: Plugin, ticks: Int): PermissionAttachment?
open fun addAttachment(plugin: Plugin, name: String, value: Boolean): PermissionAttachment
open fun addAttachment(plugin: Plugin, name: String, value: Boolean, ticks: Int): PermissionAttachment?
Link copied to clipboard
open fun addPassenger(passenger: Entity): Boolean
Link copied to clipboard
Link copied to clipboard
@NotNull
open fun asHoverEvent(): @NotNull HoverEvent<HoverEvent.ShowEntity?>
@NotNull
open fun asHoverEvent(@NotNull op: @NotNull UnaryOperator<HoverEvent.ShowEntity?>): @NotNull HoverEvent<HoverEvent.ShowEntity?>
Link copied to clipboard
open fun broadcastHurtAnimation(players: Collection<Player?>)
Link copied to clipboard
Link copied to clipboard
open fun clearTitle()
Link copied to clipboard
open fun collidesAt(@NotNull location: @NotNull Location): Boolean
Link copied to clipboard
open fun copy(): Entity
open fun copy(location: Location): Entity
Link copied to clipboard
open fun createSnapshot(): EntitySnapshot?
Link copied to clipboard
open fun customName(): Component?
open fun customName(customName: Component?)
Link copied to clipboard
open fun deleteMessage(@NotNull signedMessage: @NotNull SignedMessage)
open fun deleteMessage(signature: SignedMessage.Signature?)
Link copied to clipboard
open fun eject(): Boolean
Link copied to clipboard
@NotNull
open fun filterAudience(@NotNull filter: @NotNull Predicate<in Audience?>): @NotNull Audience
Link copied to clipboard
open fun forEachAudience(@NotNull action: @NotNull Consumer<in Audience?>)
Link copied to clipboard
Link copied to clipboard
@NotNull
open operator fun <T : Any?> get(@NotNull pointer: @NotNull Pointer<T?>): @NotNull Optional<T?>
Link copied to clipboard
@Nullable
open fun <T : Any?> getData(@NotNull type: DataComponentType.Valued<T>): @Nullable T?
Link copied to clipboard
@Nullable
open fun <T : Any?> getDataOrDefault(@NotNull type: DataComponentType.Valued<out T>, @Nullable fallback: @Nullable T?): @Nullable T?
Link copied to clipboard
open override fun getEffectivePermissions(): Set<PermissionAttachmentInfo?>
Link copied to clipboard
open override fun getHandle(): Entity
Link copied to clipboard
open override fun getLastDamageCause(): EntityDamageEvent?
Link copied to clipboard
open fun getMetadata(metadataKey: String): List<MetadataValue?>
Link copied to clipboard
open fun getNearbyEntities(x: Double, y: Double, z: Double): 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(): CraftPersistentDataContainer
Link copied to clipboard
open fun hasData(@NotNull type: @NotNull DataComponentType): Boolean
Link copied to clipboard
open fun hasFixedPose(): Boolean
Link copied to clipboard
open fun hasGravity(): Boolean
Link copied to clipboard
open fun hasMetadata(metadataKey: String): Boolean
Link copied to clipboard
open 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 fun hideBossBar(@NotNull bar: @NotNull BossBar)
Link copied to clipboard
open override fun isPermissionSet(name: String): Boolean
open override fun isPermissionSet(perm: Permission): Boolean
Link copied to clipboard
open fun isTrackedBy(player: Player): Boolean
Link copied to clipboard
open fun leaveVehicle(): Boolean
Link copied to clipboard
open fun lockFreezeTicks(locked: Boolean)
Link copied to clipboard
open fun lookAt(@NotNull position: @NotNull Position, @NotNull entityAnchor: @NotNull LookAnchor)
open fun lookAt(x: Double, y: Double, z: Double, entityAnchor: LookAnchor)
Link copied to clipboard
open fun name(): @NotNull Component
Link copied to clipboard
open fun openBook(@NotNull book: @NotNull Book)
open fun openBook(book: Book.Builder?)
Link copied to clipboard
open override fun permissionValue(permission: String): TriState
open override fun permissionValue(permission: Permission): TriState
Link copied to clipboard
open fun playEffect(effect: EntityEffect)
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)
Link copied to clipboard
open fun pointers(): Pointers
Link copied to clipboard
open fun readBukkitValues(c: CompoundTag?)
Link copied to clipboard
open override fun recalculatePermissions()
Link copied to clipboard
open fun remove()
Link copied to clipboard
open fun removeAttachment(attachment: PermissionAttachment)
Link copied to clipboard
open fun removeMetadata(metadataKey: String, owningPlugin: Plugin)
Link copied to clipboard
open fun removePassenger(passenger: Entity): Boolean
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)
Link copied to clipboard
Link copied to clipboard
open fun resetTitle()
Link copied to clipboard
open fun sendActionBar(@NotNull message: @NotNull Component)
open fun sendActionBar(@NotNull message: @NotNull ComponentLike)
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)
open fun sendMessage(message: String)
open fun sendMessage(vararg messages: String)
open fun sendMessage(@NotNull component: @NotNull BaseComponent)
open fun sendMessage(@NotNull vararg components: @NotNull BaseComponent)
open fun sendMessage(sender: UUID?, message: String)
open fun sendMessage(sender: UUID?, vararg messages: String)
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
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
open fun <T : Any?> sendTitlePart(@NotNull part: @NotNull TitlePart<T?>, @NotNull value: @NotNull T & Any)
Link copied to clipboard
open fun setGravity(gravity: Boolean)
Link copied to clipboard
open override fun setLastDamageCause(event: EntityDamageEvent?)
Link copied to clipboard
open fun setMetadata(metadataKey: String, newMetadataValue: MetadataValue)
Link copied to clipboard
open fun setNoPhysics(noPhysics: Boolean)
Link copied to clipboard
open fun setPassenger(passenger: Entity): Boolean
Link copied to clipboard
open fun setPose(pose: Pose, fixed: Boolean)
Link copied to clipboard
open fun setRotation(yaw: Float, pitch: Float)
Link copied to clipboard
open fun showBossBar(@NotNull bar: @NotNull BossBar)
Link copied to clipboard
open fun showTitle(@NotNull title: @NotNull Title)
Link copied to clipboard
open fun spawnAt(@NotNull location: @NotNull Location): Boolean
open fun spawnAt(location: Location, reason: CreatureSpawnEvent.SpawnReason): Boolean
Link copied to clipboard
open fun spigot(): Entity.Spigot
Link copied to clipboard
open fun stopSound(@NotNull sound: @NotNull Sound)
open fun stopSound(@NotNull stop: @NotNull SoundStop)
Link copied to clipboard
open fun storeBukkitValues(c: CompoundTag?)
Link copied to clipboard
open fun teamDisplayName(): @NotNull Component
Link copied to clipboard
open fun teleport(location: Location): Boolean
open fun teleport(destination: Entity): Boolean
open fun teleport(@NotNull location: @NotNull Location, @NotNull vararg teleportFlags: @NotNull TeleportFlag): Boolean
open fun teleport(location: Location, cause: PlayerTeleportEvent.TeleportCause): Boolean
open fun teleport(destination: Entity, cause: PlayerTeleportEvent.TeleportCause): Boolean
open fun teleport(location: Location, cause: PlayerTeleportEvent.TeleportCause, vararg flags: TeleportFlag): Boolean
Link copied to clipboard
open fun teleportAsync(@NotNull loc: @NotNull Location): @NotNull CompletableFuture<Boolean?>
open fun teleportAsync(@NotNull loc: @NotNull Location, @NotNull cause: PlayerTeleportEvent.TeleportCause): @NotNull CompletableFuture<Boolean?>
open fun teleportAsync(location: Location, cause: PlayerTeleportEvent.TeleportCause, vararg teleportFlags: TeleportFlag): CompletableFuture<Boolean?>
Link copied to clipboard
open fun update(player: ServerPlayer?)
Link copied to clipboard
open fun wouldCollideUsing(@NotNull boundingBox: @NotNull BoundingBox): Boolean