FakeGlowItemFrame

class FakeGlowItemFrame(location: Location, autoRegister: Boolean, beforeSpawn: (FakeGlowItemFrame, ItemFrameMetadata) -> Unit?, val metadata: ItemFrameMetadata) : FakeEntity<ItemFrameMetadata>

Constructors

Link copied to clipboard
constructor(location: Location, autoRegister: Boolean = true, beforeSpawn: (FakeGlowItemFrame, ItemFrameMetadata) -> Unit? = null)
constructor(location: Location, autoRegister: Boolean, beforeSpawn: (FakeGlowItemFrame, ItemFrameMetadata) -> Unit?, metadata: ItemFrameMetadata)

Properties

Link copied to clipboard
var despawnHandler: (Player) -> Unit?
Link copied to clipboard
Link copied to clipboard
val location: Location
Link copied to clipboard
open override val metadata: ItemFrameMetadata
Link copied to clipboard
var spawnHandler: (Player) -> Unit?
Link copied to clipboard
val viewers: Set<Player>

Functions

Link copied to clipboard
fun despawn(player: Player)

Despawns the FakeEntity for a specific Player.

Link copied to clipboard
fun register()

Registers this FakeEntity in the FakeEntityManager.

Link copied to clipboard
fun remove()

Removes the FakeEntity from the chunk entities Map and despawns it for all current viewers.

Link copied to clipboard
fun setEquipment(slot: EquipmentSlot, bukkitStack: ItemStack?, sendPacket: Boolean)

Sets the equipment for a specific EquipmentSlot.

Link copied to clipboard
fun spawn(player: Player)

Spawns the FakeEntity for a specific Player.

Link copied to clipboard
fun teleport(modifyLocation: Location.() -> Unit)

Teleports the FakeEntity to a different location. (Different worlds aren't supported)

fun teleport(newLocation: Location, forceTeleport: Boolean = false)

Teleports the FakeEntity to a different location.

Link copied to clipboard
fun updateEntityData(sendPacket: Boolean, update: ItemFrameMetadata.() -> Unit)

Updates the entity data of this FakeEntity