public class LocatableEntitySender extends Object implements LocatableCommandSender
| Constructor and Description |
|---|
LocatableEntitySender(org.bukkit.entity.Entity entity)
Constructs a new
LocatableEntity with an internal command sender of entity |
| Modifier and Type | Method and Description |
|---|---|
@NotNull org.bukkit.Location |
getLocation()
Gets the location of this object
|
@NotNull org.bukkit.command.CommandSender |
getSender()
Gets the sender of the command that got executed
|
@NotNull org.bukkit.World |
getWorld()
Gets which world this object is located in
|
public LocatableEntitySender(org.bukkit.entity.Entity entity)
LocatableEntity with an internal command sender of entityentity - The internal entity to use@NotNull public @NotNull org.bukkit.Location getLocation()
LocatableCommandSendergetLocation in interface LocatableCommandSender@NotNull public @NotNull org.bukkit.World getWorld()
LocatableCommandSendergetWorld in interface LocatableCommandSender@NotNull public @NotNull org.bukkit.command.CommandSender getSender()
LocatableCommandSendergetSender in interface LocatableCommandSenderCopyright © 2024. All rights reserved.