Package-level declarations

Properties

Link copied to clipboard

Gets if the server is currently running on a Folia or a Paper build.

Functions

Link copied to clipboard
fun Location.direction(): DVec3
Link copied to clipboard
fun <V> Map<String, V>.forWorld(world: World): V?
Link copied to clipboard
fun Location.isometry(): DIso3
Link copied to clipboard
fun Plugin.key(value: String): NamespacedKey
Link copied to clipboard
fun DIso3.location(world: World): Location
fun DVec3.location(world: World, pitch: Float = 0.0f, yaw: Float = 0.0f): Location
Link copied to clipboard

Increments and gets the internal entity ID counter.

Link copied to clipboard
fun Chunk.position(): IVec2
fun Location.position(): DVec3
fun Block.position(): IVec3
Link copied to clipboard
fun Plugin.registerEvents(listener: Listener)
Link copied to clipboard
fun Location.rotation(): DQuat
Link copied to clipboard
fun Player.sendPacket(packet: PacketWrapper<*>)

Sends a packet to a player using the global PacketEvents.getAPI instance.

Link copied to clipboard
inline fun <E : Entity> World.spawn(position: DVec3, reason: CreatureSpawnEvent.SpawnReason = SpawnReason.CUSTOM, crossinline beforeSpawn: (E) -> Unit = {}): @NotNull E
inline fun <E : Entity> World.spawn(location: Location, reason: CreatureSpawnEvent.SpawnReason = SpawnReason.CUSTOM, crossinline beforeSpawn: (E) -> Unit = {}): @NotNull E
Link copied to clipboard
fun World.spawnTracker(position: DVec3, beforeSpawn: (Entity) -> Unit = {}): Entity
Link copied to clipboard
fun TextColor.toColor(): @NotNull Color
Link copied to clipboard
fun Vector.toDVec(): DVec3
Link copied to clipboard
fun Vector.toFVec(): FVec3
Link copied to clipboard
fun Key.toNamespaced(): NamespacedKey
Link copied to clipboard
fun Key.toResourceLocation(): ResourceLocation
Link copied to clipboard
fun Color.toTextColor(): @NotNull TextColor
Link copied to clipboard
fun DVec3.toVector(): Vector
fun FVec3.toVector(): Vector
Link copied to clipboard
fun <M : ItemMeta> ItemStack.withMeta(block: (M) -> Unit): ItemStack