接口的使用
org.bukkit.entity.HumanEntity
使用HumanEntity的程序包
程序包
说明
为在
世界
内存在的非三维像素单位(实体)提供的接口,包含玩家、怪物、抛射物等.参与操作玩家物品栏和物品交互的类.
与战利品表产生与操作有关的类 (Minecraft Wiki - 战利品表).
-
org.bukkit.entity中HumanEntity的使用
-
org.bukkit.event.entity中HumanEntity的使用
修饰符和类型方法说明EntityExhaustionEvent.getEntity()
FoodLevelChangeEvent.getEntity()
EntityEnterLoveModeEvent.getHumanEntity()
获取导致动物进入求爱模式的人类实体.参数类型为HumanEntity的org.bukkit.event.entity中的构造器限定符构造器说明EntityEnterLoveModeEvent
(@NotNull Animals animalInLove, @Nullable HumanEntity humanEntity, int ticksInLove) EntityExhaustionEvent
(@NotNull HumanEntity who, @NotNull EntityExhaustionEvent.ExhaustionReason exhaustionReason, float exhaustion) FoodLevelChangeEvent
(@NotNull HumanEntity what, int level) FoodLevelChangeEvent
(@NotNull HumanEntity what, int level, @Nullable ItemStack item) -
org.bukkit.event.inventory中HumanEntity的使用
修饰符和类型方法说明final @NotNull HumanEntity
InventoryCloseEvent.getPlayer()
获取涉及此事件的玩家final @NotNull HumanEntity
InventoryOpenEvent.getPlayer()
返回涉及此事件的玩家.InventoryInteractEvent.getWhoClicked()
Gets the player who performed the click.返回变量类型为HumanEntity的类型的org.bukkit.event.inventory中的方法 -
org.bukkit.inventory中HumanEntity的使用
修饰符和类型方法说明PlayerInventory.getHolder()
InventoryView.getPlayer()
获取正查看此窗口的玩家.Merchant.getTrader()
获取该商人正在进行交易的玩家, 如果目前没有交易,则返回null.返回变量类型为HumanEntity的类型的org.bukkit.inventory中的方法 -
org.bukkit.loot中HumanEntity的使用
返回HumanEntity的org.bukkit.loot中的方法修饰符和类型方法说明LootContext.getKiller()
Get theHumanEntity
who killed theLootContext.getLootedEntity()
.参数类型为HumanEntity的org.bukkit.loot中的方法修饰符和类型方法说明LootContext.Builder.killer
(@Nullable HumanEntity killer) Set theHumanEntity
that killedLootContext.getLootedEntity()
.