接口的使用
org.bukkit.event.Cancellable
使用Cancellable的程序包
-
org.bukkit.event.block中Cancellable的使用
修饰符和类型类说明class当一个方块被玩家破坏的时候,调用本事件.class当一个方块被火烧掉的时候触发此事件.class方块被玩家损坏的事件.class物品被方块(比如发射器,投掷器等)射出的事件.class方块爆炸事件.class方块因为自然条件消退,融化,消失的事件(比如雪融化).class当一个方块因为自然变化被放置、更改或者蔓延时(比如下雪),触发此事件.class液体流动/龙蛋自己传送的事件(源方块到目标方块).class当一个方块在世界中自然生长的时触发此事件(如小麦生长).class当一个方块被点燃时触发.class当玩家放一个方块,而连锁放置了第二个方块时(例如玩家放置一个床)触发本事件.class方块物理事件(例如是沙子掉落).class活塞相关事件class活塞臂推出事件.class活塞臂缩回事件class当一个方块被玩家放置的时候触发此事件.class当一个方块基于自然法则地蔓延时触发此事件(比如菌丝的蔓延).classclass方块搭建成实体时调用本事件.class当树叶消失时触发此事件.class音符盒播放音符的事件[玩家点击/红石触发]class在玩家设置牌子上的内容子时触发. -
org.bukkit.event.enchantment中Cancellable的使用
修饰符和类型类说明class成功附魔物品的事件 (在附魔台里面附魔的)class物品塞入附魔台的事件 - 可以同时调用。 -
org.bukkit.event.entity中Cancellable的使用
修饰符和类型类说明class当一个生物体在世界中出生时触发该事件.class当爬行者被闪电击中时触发该事件.classCalled when an EnderDragon switches controller phase.class当实体的氧气值发生变化时触发本事件class当实体破坏门时触发本事件.classCalled when one Entity breeds with another Entity.class当一个非玩家的实体在改变方块时调用该事件。class当方块造成实体燃烧时触发该事件.class当一个实体造成另外一个实体燃烧时触发该事件.class当实体燃烧时触发该事件class当一个LivingEntity在世界中创建传送门时触发该事件.class当一个实体受到来自方块的伤害时触发该事件 原文: Called when an entity is damaged by a blockclass当一个实体受到另外一个实体伤害时触发该事件class储存伤害事件的数据 原文: Stores data for damage eventsclass当一个实体爆炸的时候触发本事件class当一个实体与其他物体互交时触发本事件classThrown when a entity picks an item up from the groundclass当一个非玩家的实体被传送门传送时触发本事件classCalled before an entity exits a portal.classStores data for health-regain eventsclassCalled when an entity dies and may have the opportunity to be resurrected.classCalled when a LivingEntity shoots a bow firing an arrowclassThrown when a LivingEntity is tamedclassCalled when a creature targets or untargets another entityclassCalled when an Entity targets aLivingEntityand can only target LivingEntity's.classThrown when a non-player entity (such as an Enderman) tries to teleport from one location to another.classSent when an entity's gliding status is toggled with an Elytra.classCalled when an entity has made a decision to explode.class当烟花爆炸时触发本事件class当一个人类实体的饥饿值发生变化时触发本事件class当马跳起时调用此事件.classThis event is called when aItemis removed from the world because it has existed for 5 minutes.classclassCalled when an item is spawned into a worldclassCalled when a splash potion hits an areaclassStores data for pigs being zappedclassCalled immediately prior to a creature being leashed by a player.classCalled when a splash potion hits an areaclass当一个抛射物被发射时触发本事件.classCalled when a sheep's wool is dyedclassCalled when a sheep regrows its woolclass当史莱姆死亡后分裂成小史莱姆时触发本事件classCalled whenever a villager acquires a new trade.classCalled when a villager's trade's maximum uses is increased, due to a player's trade. -
org.bukkit.event.hanging中Cancellable的使用
修饰符和类型类说明class当一个悬挂实体被一个实体移除时调用本事件class当一个悬挂实体被移除时调用.class当一个悬挂实体被放置时触发本事件。 -
org.bukkit.event.inventory中Cancellable的使用
修饰符和类型类说明class当酿造完成时触发这个事件.classCalled when an ItemStack is about to increase the fuel level of a brewing stand.class当一个物品被合成的时候触发这个事件.class当一个物品作为燃料被燃烧的时候触发这个事件.class当一个物品被熔炼完毕时触发这个事件.class当玩家点击物品栏中的格子时触发事件事件.
译注:事实上打开任意容器的物品栏(包括玩家的背包)后点击任何一个地方都会触发这个事件。classThis event is called when a player in creative mode puts down or picks up an item in their inventory / hotbar and when they drop items from their Inventory while in creative mode.classThis event is called when the player drags an item in their cursor across the inventory.classAn abstract base class for events that describe an interaction between a HumanEntity and the contents of an Inventory.classCalled when some entity or block (e.g. hopper) tries to move items directly from one inventory to another.class当玩家打开物品栏时触发本事件class当漏斗/漏斗矿车收起掉落的物品时触发本事件. -
org.bukkit.event.player中Cancellable的使用
修饰符和类型类说明class当玩家聊天时触发这个事件.class已过时。未来版本的Minecraft将不会有成就(取而代之的是进度).class玩家动作事件.classCalled when a player interacts with an armor stand and will either swap, retrieve or place an item.class玩家躺在床上时触发此事件.class玩家用完一只桶后触发此事件.class当玩家使用桶时触发本事件.class水桶装满水事件.class已过时。这个事件将被主线程触发,允许使用所有的 Bukkit API,不像AsyncPlayerChatEvent.class这个事件是,当一个玩家执行一个命令的时候将会被触发(也就是在聊天框里面输入信息以/开头的时候,算作命令,就会触发此事件)。class玩家丢出物品事件.class当玩家编辑或签名书与笔时触发。class当玩家钓鱼时触发本事件.class当玩家游戏模式发生变化时调用此事件.class当玩家在实体上点击某实体上的某位置时触发此事件.class当玩家点击一个实体时调用此事件.class当玩家对一个对象或空气进行交互时触发本事件, 可能在左右手交互时也会被触发classThis event will fire when a player is finishing consuming an item (food, potion, milk bucket).class玩家手持某物品事件.classRepresents when a player has an item repaired via the Mending enchantment.class玩家被服务器踢出事件.class玩家移动事件.class当玩家从地上捡起箭时触发本事件.classclass玩家将要被传送门传送的事件.class玩家剪羊毛时调用此事件.class当玩家统计信息增长时触发本事件.class玩家用快捷键互换主手和副手的物品时触发本事件.class玩家传送事件.class玩家切换飞行状态则调用此事件.class玩家切换潜行状态则调用此事件.class玩家切换疾跑状态时调用此事件class当一个实体被玩家解开拴绳时调用.class玩家移动速度变化事件. -
org.bukkit.event.server中Cancellable的使用
修饰符和类型类说明classEvent triggered for server broadcast messages such as fromServer.broadcast(String, String).class这个事件当服务器RCON收到指令时调用.了解更多.class这个事件当服务器后台发送指令时调用.class当一个CommandSender尝试补全命令时触发本事件. -
org.bukkit.event.vehicle中Cancellable的使用
修饰符和类型类说明class载具创建事件class载具被伤害的事件class载具被损毁的事件(包含被玩家/自然损坏)。class实体进入载具的事件class载具撞击实体的事件class实体退出载具的事件 -
org.bukkit.event.weather中Cancellable的使用
修饰符和类型类说明class雷击事件class世界打雷事件class天气改变事件 -
org.bukkit.event.world中Cancellable的使用
修饰符和类型类说明class当一个区块被卸载时调用class当传送门被创建时调用.class当一个有机结构试图生长的时调用此事件(树苗 -> 树, 蘑菇 -> 巨型蘑菇, 自然生长的或使用骨粉生长的).class当一个世界被卸载时调用.