Package net.axay.kspigot.utils

Types

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

Functions

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