OptiGUI
2.2.0-alpha.1
jvm
OptiGUI API
/
opekope2.optigui.api.interaction
/
IInteractionTarget
/
BlockEntityTarget
Block
Entity
Target
public
final
class
BlockEntityTarget
extends
Record
implements
IInteractionTarget
(
source
)
Represents the target of an interaction as a block entity.
Parameters
block
Entity
The target of the interaction
Members
Constructors
IInteraction
Target.
Block
Entity
Target
Link copied to clipboard
public
void
IInteractionTarget.BlockEntityTarget
(
@
NotNull
(
)
BlockEntity
blockEntity
)
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
(
)