CommandAPI 9.7.0
An API for the command UI introduced in Minecraft 1.13
dev.jorel.commandapi.wrappers.NativeProxyCommandSender Interface Reference

A simple representation of Minecraft's CommandListenerWrapper, in the form of Bukkit's ProxiedCommandSender. More...

+ Inheritance diagram for dev.jorel.commandapi.wrappers.NativeProxyCommandSender:

Public Member Functions

Location getLocation ()
 Returns the location that this native command sender represents. More...
 
World getWorld ()
 Returns the world that this native command sender represents. More...
 

Static Public Member Functions

static NativeProxyCommandSender from (CommandSender caller, CommandSender callee, Location location, World world)
 Constructs a NativeProxyCommandSender, which is basically Minecraft's CommandListenerWrapper. More...
 

Detailed Description

A simple representation of Minecraft's CommandListenerWrapper, in the form of Bukkit's ProxiedCommandSender.

Member Function Documentation

◆ from()

static NativeProxyCommandSender dev.jorel.commandapi.wrappers.NativeProxyCommandSender.from ( CommandSender  caller,
CommandSender  callee,
Location  location,
World  world 
)
static

Constructs a NativeProxyCommandSender, which is basically Minecraft's CommandListenerWrapper.

Parameters
callerthe command sender that actually sent the command
calleethe command sender that will be executing the command
locationthe proxied location that the command will be run at
worldthe proxied world that the command will be run in

◆ getLocation()

Location dev.jorel.commandapi.wrappers.NativeProxyCommandSender.getLocation ( )

Returns the location that this native command sender represents.

Returns
the location that this native command sender represents

◆ getWorld()

World dev.jorel.commandapi.wrappers.NativeProxyCommandSender.getWorld ( )

Returns the world that this native command sender represents.

Returns
the world that this native command sender represents