SystemCore
Toggle table of contents
1.7.4
jvm
Platform filter
jvm
Switch theme
Search in API
SystemCore
SystemCore
/
com.system32.systemCore.managers.usableItems
/
UsableItemsManager
Usable
Items
Manager
class
UsableItemsManager
:
Listener
Members
Constructors
Usable
Items
Manager
Link copied to clipboard
constructor
(
)
Types
Usable
Item
Link copied to clipboard
data
class
UsableItem
(
val
item
:
ItemStack
,
val
validate
:
(
PlayerInteractEvent
)
->
Boolean
=
{ true }
,
val
onUse
:
(
PlayerInteractEvent
)
->
Unit
)
Functions
on
Player
Use
Link copied to clipboard
fun
onPlayerUse
(
event
:
PlayerInteractEvent
)
register
Link copied to clipboard
fun
register
(
item
:
ItemStack
,
validate
:
(
PlayerInteractEvent
)
->
Boolean
=
{ true }
,
onUse
:
(
PlayerInteractEvent
)
->
Unit
)