OptiGUI
2.2.0-alpha.1
jvm
OptiGUI API
/
opekope2.optigui.api.interaction
/
IInteractionTarget
/
BlockEntityTarget
Block
Entity
Target
class
BlockEntityTarget
:
Record
,
IInteractionTarget
(
source
)
Represents the target of an interaction as a block entity.
Parameters
block
Entity
The target of the interaction
Members
Constructors
Block
Entity
Target
Link copied to clipboard
constructor
(
blockEntity
:
@
NotNull
BlockEntity
)
Inherited properties
None
Target
Link copied to clipboard
@
NotNull
val
NoneTarget
:
@
NotNull
IInteractionTarget
Represents an interaction without a target.
Functions
compute
Interaction
Data
Link copied to clipboard
@
Nullable
open
fun
computeInteractionData
(
)
:
@
Nullable
IInteractionData
Calculates the interaction data from the given target.
Inherited functions
equals
Link copied to clipboard
abstract
fun
equals
(
p
:
Any
)
:
Boolean
hash
Code
Link copied to clipboard
abstract
fun
hashCode
(
)
:
Int
to
String
Link copied to clipboard
abstract
fun
toString
(
)
:
String