接口的使用
org.bukkit.entity.HumanEntity
程序包
说明
为在
世界
内存在的非三维像素单位(实体)提供的接口,包含玩家、怪物、抛射物等.参与操作玩家物品栏和物品交互的类.
与战利品表产生与操作有关的类 (Minecraft Wiki - 战利品表).
-
org.bukkit.entity中HumanEntity的使用
-
org.bukkit.event.entity中HumanEntity的使用
修饰符和类型方法说明EntityExhaustionEvent.getEntity()
FoodLevelChangeEvent.getEntity()
EntityEnterLoveModeEvent.getHumanEntity()
获取导致动物进入求爱模式的人类实体.限定符构造器说明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. -
org.bukkit.inventory中HumanEntity的使用
-
org.bukkit.loot中HumanEntity的使用
修饰符和类型方法说明LootContext.getKiller()
Get theHumanEntity
who killed theLootContext.getLootedEntity()
.修饰符和类型方法说明LootContext.Builder.killer
(@Nullable HumanEntity killer) Set theHumanEntity
that killedLootContext.getLootedEntity()
.