# Package net.axay.kspigot.utils

## Types

CardinalDirection
Link copied to clipboard
enum CardinalDirection : Enum<CardinalDirection>
Content copied to clipboard
This enum class is useful for determining cardinal directions (yaw).
FireworkEffectBuilder
Link copied to clipboard
class FireworkEffectBuilder
Content copied to clipboard
KSpigotFirework
Link copied to clipboard
object KSpigotFirework
Content copied to clipboard
KSpigotFireworkBuilder
Link copied to clipboard
class KSpigotFireworkBuilder
Content copied to clipboard
OnlinePlayerMap
Link copied to clipboard
class OnlinePlayerMap<V>
Content copied to clipboard
A map where entries will be removed atomatically when a player leaves the server.
PlayerMapHolder
Link copied to clipboard
object PlayerMapHolder
Content copied to clipboard
VerticalDirection
Link copied to clipboard
enum VerticalDirection : Enum<VerticalDirection>
Content copied to clipboard
This enum class is useful for determining vertical directions (pitch).

## Functions

addEffect
Link copied to clipboard
fun FireworkMeta.addEffect(builder: FireworkEffect.Builder.() -> Unit)
Content copied to clipboard
Opens a new effect builder and adds this new effect to this FireworkMeta.
editMeta
Link copied to clipboard
fun Firework.editMeta(builder: FireworkMeta.() -> Unit)
Content copied to clipboard
Lets you edit the meta of this Firework entity.
fireworkItemStack
Link copied to clipboard
fun fireworkItemStack(amount: Int = 1, builder: FireworkMeta.() -> Unit): ItemStack
Content copied to clipboard
Opens a new FireworkMeta builder and creates an ItemStack with the new FireworkMeta applied.
hasMark
Link copied to clipboard
fun ItemStack.hasMark(key: String): Boolean
Content copied to clipboard
fun PersistentDataHolder.hasMark(key: String): Boolean
Content copied to clipboard
mark
Link copied to clipboard
fun ItemStack.mark(key: String)
Content copied to clipboard
fun PersistentDataHolder.mark(key: String)
Content copied to clipboard
Marks this object with the given key.
reflectField
Link copied to clipboard
fun <T> Any.reflectField(field: String): T
Content copied to clipboard
Loads the value of the given field for this object.
unmark
Link copied to clipboard
fun ItemStack.unmark(key: String)
Content copied to clipboard
fun PersistentDataHolder.unmark(key: String)
Content copied to clipboard
Removes the given key from this objects' markings.