接口的使用
org.bukkit.command.CommandSender
程序包
说明
Bukkit的常用类.
与处理玩家输入的非聊天消息(即命令)相关的类.
通过Bukkit实现来模拟Minecraft原生命令(1.12后所有模拟命令被删除)并提供一些其他必要的命令.
为在
世界
内存在的非三维像素单位(实体)提供的接口,包含玩家、怪物、抛射物等.为不同种类的
矿车
提供的接口.与服务器程序状态变化有关的
事件
.用于操作默认的命令和主题帮助系统的类(你可以将你的命令帮助添加到系统命令帮助系统(help命令)内等等).
用Java编写的处理
插件
的类.-
org.bukkit中CommandSender的使用
修饰符和类型方法说明static boolean
Bukkit.dispatchCommand
(CommandSender sender, String commandLine) Dispatches a command on this server, and executes it if found.boolean
Server.dispatchCommand
(CommandSender sender, String commandLine) 在服务器执行一个命令WorldCreator.generator
(String generator, CommandSender output) 设置将用于创建或加载的生成器。static ChunkGenerator
WorldCreator.getGeneratorForName
(String world, String name, CommandSender output) 试图使用指定的名称获取ChunkGenerator
。 -
org.bukkit.command中CommandSender的使用
修饰符和类型接口说明interface
interface
interface
interface
修饰符和类型方法说明ProxiedCommandSender.getCallee()
返回CommandSender正在运行的命令.ProxiedCommandSender.getCaller()
返回触发这个代理命令的CommandSender.修饰符和类型方法说明static void
Command.broadcastCommandMessage
(CommandSender source, String message) static void
Command.broadcastCommandMessage
(CommandSender source, String message, boolean sendToSource) boolean
CommandMap.dispatch
(CommandSender sender, String cmdLine) 查找请求的命令并执行,如果找到了。boolean
SimpleCommandMap.dispatch
(CommandSender sender, String commandLine) 查找请求的命令并执行,如果找到了。abstract boolean
Command.execute
(CommandSender sender, String commandLabel, String[] args) 执行命令.boolean
FormattedCommandAlias.execute
(CommandSender sender, String commandLabel, String[] args) boolean
MultipleCommandAlias.execute
(CommandSender sender, String commandLabel, String[] args) boolean
PluginCommand.execute
(CommandSender sender, String commandLabel, String[] args) 执行一个命令.boolean
CommandExecutor.onCommand
(CommandSender sender, Command command, String label, String[] args) 执行给定的命令,成功时返回.TabCompleter.onTabComplete
(CommandSender sender, Command command, String alias, String[] args) 用命令传递的参数请求可能的补全项的list.Command.tabComplete
(CommandSender sender, String alias, String[] args) 执行此命令的tab补全时返回选项列表.Command.tabComplete
(CommandSender sender, String alias, String[] args, Location location) 执行此命令的tab补全时返回选项列表.CommandMap.tabComplete
(CommandSender sender, String cmdLine) 查找请求的命令并执行适当的tab补全器,如果找到了.CommandMap.tabComplete
(CommandSender sender, String cmdLine, Location location) Looks for the requested command and executes an appropriate tab-completer if found.PluginCommand.tabComplete
(CommandSender sender, String alias, String[] args) 执行此命令的tab补全时返回选项列表.SimpleCommandMap.tabComplete
(CommandSender sender, String cmdLine) SimpleCommandMap.tabComplete
(CommandSender sender, String cmdLine, Location location) boolean
Command.testPermission
(CommandSender target) 测试给定的CommandSender
能否执行此命令.boolean
Command.testPermissionSilent
(CommandSender target) 测试给定的CommandSender
能否执行这个命令. -
org.bukkit.command.defaults中CommandSender的使用
修饰符和类型方法说明boolean
HelpCommand.execute
(CommandSender sender, String currentAlias, String[] args) boolean
PluginsCommand.execute
(CommandSender sender, String currentAlias, String[] args) boolean
ReloadCommand.execute
(CommandSender sender, String currentAlias, String[] args) boolean
TimingsCommand.execute
(CommandSender sender, String currentAlias, String[] args) boolean
VersionCommand.execute
(CommandSender sender, String currentAlias, String[] args) HelpCommand.tabComplete
(CommandSender sender, String alias, String[] args) PluginsCommand.tabComplete
(CommandSender sender, String alias, String[] args) ReloadCommand.tabComplete
(CommandSender sender, String alias, String[] args) TimingsCommand.tabComplete
(CommandSender sender, String alias, String[] args) VersionCommand.tabComplete
(CommandSender sender, String alias, String[] args) -
org.bukkit.entity中CommandSender的使用
修饰符和类型接口说明interface
Represents a Horse-like creature.interface
代表一个有年龄和繁殖能力的实体.interface
代表环境生物(只有蝙蝠属于这一行列).interface
代表动物.interface
代表一片即将对处于其中的生物施加药水效果的区域效果云 (即喷溅药水使用后形成的雾).interface
interface
表示一只箭矢.interface
表示一只蝙蝠.interface
代表烈焰人怪物.interface
代表船实体interface
代表蜘蛛(洞穴蜘蛛).interface
Represents Horse-like creatures which can carry an inventory.interface
代表鸡.interface
Represents a single part of aComplexLivingEntity
interface
Represents a complex living entity - one that is made up of various smaller partsinterface
代表牛.interface
Represents a Creature.interface
代表爬行者.interface
表示一个有生命值和可以被伤害的实体(Entity
)。interface
Represents a Donkey - variant ofChestedHorse
.interface
interface
代表抛出的鸡蛋.interface
Represents an ElderGuardian - variant ofGuardian
.interface
一个水晶,能治疗附近的末影龙interface
Represents an Ender Dragoninterface
代表末影龙部分/Represents an ender dragon partinterface
代表末影人.interface
interface
代表抛出的末影珍珠实体.interface
Represents an EnderSignal, which is created upon throwing an ender eye.interface
Represents a base entity in the worldinterface
Represents an Evoker "Illager".interface
Represents Evoker Fangs.interface
Represents an Experience Orb.interface
A representation of an explosive entityinterface
Represents a falling blockinterface
Represents a Fireball.interface
interface
已过时。interface
Represents a fishing hook.interface
代表能飞行的实体.interface
代表恶魂.interface
代表巨人.interface
一个可以伤害敌人的傀儡.interface
interface
代表悬挂实体.interface
代表一匹马.interface
代表人类实体, 比如一个NPC或一名玩家interface
代表一具尸壳 -Zombie
的变异体.interface
Represents a type of "Illager".interface
Represents an Illusioner "Illager".interface
村民守卫者——铁傀儡.interface
Represents an Item.interface
代表物品展示框.interface
代表大的火球(Fireball
).interface
Represents a Leash Hitch on a fenceinterface
代表雷击的实例,可能会或者不会造成伤害。interface
Represents a thrown lingering potion bottleinterface
代表一个生物实体,如一只怪物或一名玩家。interface
表示一只羊驼.interface
代表羊驼唾沫.interface
Represents a MagmaCube.interface
Represents a minecart entity.interface
代表怪物.interface
Represents a Mule - variant ofChestedHorse
.interface
代表哞菇(Cow
).interface
代表非玩家角色.interface
代表豹猫.interface
代表画.interface
Represents a Parrot.interface
代表猪.interface
代表僵尸猪人.interface
玩家对象interface
Represents a polar bear.interface
Represents a shootable entity.interface
interface
代表羊.interface
interface
interface
代表蠢虫.interface
代表骷髅.interface
Represents a SkeletonHorse - variant ofAbstractHorse
.interface
代表史莱姆.interface
代表小的火球(Fireball
).interface
代表雪球.interface
代表雪人实体.interface
Represents a spectral arrow.interface
Represents a spell casting "Illager".interface
代表蜘蛛.interface
Represents a thrown splash potion bottleinterface
代表鱿鱼.interface
Represents a Stray - variant ofSkeleton
.interface
interface
代表抛出的附魔之瓶.interface
Represents a thrown potion bottleinterface
interface
Represents a Primed TNT.interface
Represents a vehicle entity.interface
Represents a Vex.interface
Represents a villager NPCinterface
Represents a Vindicator.interface
代表海洋生物.interface
代表与天气有关的实体,例如雷暴.interface
代表女巫.interface
代表凋零boss.interface
Represents a WitherSkeleton - variant ofSkeleton
.interface
代表凋零之首.interface
代表狼.interface
代表僵尸.interface
Represents a ZombieHorse - variant ofAbstractHorse
.interface
-
org.bukkit.entity.minecart中CommandSender的使用
修饰符和类型接口说明interface
代表命令方块矿车.interface
代表TNT矿车,可以被引爆.interface
代表漏斗矿车.interface
代表动力矿车.当玩家往动力矿车里放燃料
后它就会自己移动.interface
代表可乘坐的矿车.interface
代表有刷怪箱
在里面的矿车(即刷怪箱矿车).interface
代表运输矿车,你可以使用InventoryHolder
里的方法来访问. -
org.bukkit.event.server中CommandSender的使用
修饰符和类型方法说明ServerCommandEvent.getSender()
得到命令发送者(后台).TabCompleteEvent.getSender()
获取正在补全这个命令的发送者.修饰符和类型方法说明BroadcastMessageEvent.getRecipients()
Gets a set of recipients that this chat message will be displayed to.限定符构造器说明RemoteServerCommandEvent
(CommandSender sender, String command) ServerCommandEvent
(CommandSender sender, String command) TabCompleteEvent
(CommandSender sender, String buffer, List<String> completions) -
org.bukkit.help中CommandSender的使用
修饰符和类型方法说明protected String
IndexHelpTopic.buildIndexLine
(CommandSender sender, HelpTopic topic) Builds individual lines in the index topic.protected String
IndexHelpTopic.buildPreamble
(CommandSender sender) Builds the topic preamble.boolean
GenericCommandHelpTopic.canSee
(CommandSender sender) abstract boolean
HelpTopic.canSee
(CommandSender player) Determines if aPlayer
is allowed to see this help topic.boolean
IndexHelpTopic.canSee
(CommandSender sender) HelpTopic.getFullText
(CommandSender forWho) Returns the full description of this help topic that is displayed when the user requests this topic's details.IndexHelpTopic.getFullText
(CommandSender sender) -
org.bukkit.plugin.java中CommandSender的使用
修饰符和类型方法说明boolean
JavaPlugin.onCommand
(CommandSender sender, Command command, String label, String[] args) 执行给定的命令,成功时返回.JavaPlugin.onTabComplete
(CommandSender sender, Command command, String alias, String[] args) 用命令传递的参数请求可能的补全项的list.
FishHook