surf-api
Toggle table of contents
1.21.4-2.1.3-SNAPSHOT
jvm
Platform filter
jvm
Switch theme
Search in API
surf-api
surf-api-bukkit-api
/
dev.slne.surf.surfapi.bukkit.api.builder
Package-level
declarations
Types
Functions
Types
Item
Marker
Link copied to clipboard
@
Target
(
allowedTargets
=
[
AnnotationTarget.TYPE
]
)
@
DslMarker
annotation class
ItemMarker
Meta
Marker
Link copied to clipboard
@
Target
(
allowedTargets
=
[
AnnotationTarget.TYPE
]
)
@
DslMarker
annotation class
MetaMarker
Functions
build
Item
Link copied to clipboard
fun
buildItem
(
material
:
Material
,
amount
:
Int
=
1
,
init
:
ItemStack
.
(
)
->
Unit
)
:
ItemStack
display
Name
Link copied to clipboard
fun
ItemStack
.
displayName
(
name
:
Component
)
lore
Link copied to clipboard
fun
ItemStack
.
lore
(
vararg
lore
:
Component
)
meta
Link copied to clipboard
inline
fun
<
M
:
ItemMeta
>
ItemStack
.
meta
(
crossinline
init
:
M
.
(
)
->
Unit
)
@
JvmName
(
name
=
"meta0"
)
fun
ItemStack
.
meta
(
init
:
ItemMeta
.
(
)
->
Unit
)