31 lines
932 B
Kotlin
31 lines
932 B
Kotlin
package net.hareworks.ghostdisplays.api
|
|
|
|
import org.bukkit.Location
|
|
import org.bukkit.entity.BlockDisplay
|
|
import org.bukkit.entity.ItemDisplay
|
|
import org.bukkit.entity.TextDisplay
|
|
import org.bukkit.inventory.ItemStack
|
|
|
|
interface DisplayService {
|
|
fun createTextDisplay(
|
|
location: Location,
|
|
interaction: InteractionOptions = InteractionOptions.Disabled,
|
|
builder: TextDisplay.() -> Unit = {}
|
|
): DisplayController<TextDisplay>
|
|
|
|
fun createBlockDisplay(
|
|
location: Location,
|
|
interaction: InteractionOptions = InteractionOptions.Disabled,
|
|
builder: BlockDisplay.() -> Unit = {}
|
|
): DisplayController<BlockDisplay>
|
|
|
|
fun createItemDisplay(
|
|
location: Location,
|
|
itemStack: ItemStack,
|
|
interaction: InteractionOptions = InteractionOptions.Disabled,
|
|
builder: ItemDisplay.() -> Unit = {}
|
|
): DisplayController<ItemDisplay>
|
|
|
|
fun destroyAll()
|
|
}
|