OptiGUI
2.2.0-alpha.1
jvm
OptiGUI API
/
opekope2.optigui.api.interaction
/
IInteractionTarget
/
EntityTarget
Entity
Target
public
final
class
EntityTarget
extends
Record
implements
IInteractionTarget
(
source
)
Represents the target of an interaction as an entity.
Parameters
entity
The target of the interaction
Members
Constructors
IInteraction
Target.
Entity
Target
Link copied to clipboard
public
void
IInteractionTarget.EntityTarget
(
@
NotNull
(
)
Entity
entity
)
Inherited properties
None
Target
Link copied to clipboard
@
NotNull
(
)
public
final
static
@
NotNull
(
)
IInteractionTarget
NoneTarget
Represents an interaction without a target.
Functions
compute
Interaction
Data
Link copied to clipboard
@
Nullable
(
)
public
@
Nullable
(
)
IInteractionData
computeInteractionData
(
)
Calculates the interaction data from the given target.
Inherited functions
equals
Link copied to clipboard
public
abstract
boolean
equals
(
Object
p
)
hash
Code
Link copied to clipboard
public
abstract
int
hashCode
(
)
to
String
Link copied to clipboard
public
abstract
String
toString
(
)