EntityBreedEvent
EntityBreedEvent
=> org.bukkit.event.Event
=> org.bukkit.event.entity.EntityEvent
=> org.bukkit.event.entity.EntityBreedEvent
Called when one Entity breeds with another Entity.当某一实体与另一实体繁衍后代时触发。
方法声明: public LivingEntity getEntity()
方法签名: ()Lorg/bukkit/entity/LivingEntity;
译注:无文档。该方法用于获取新生的宝宝实体。
方法声明: public LivingEntity getMother()
方法签名: ()Lorg/bukkit/entity/LivingEntity;
Gets the parent creating this entity.@return The "birth" parent该方法用于获取实体的双亲之一。@return 实体的双亲之一。译注:游戏中的生物并没有性别之分,任意两只同类生物即能繁衍,这一过程是性别无涉的。本方法名字中的所谓“Mother”毫无意义。给性别无涉的体系强加“父母”一词,受到了顺性别异性恋的话语体系影响。故翻译时修改为“双亲之一”,以示笔者对于异性恋以外的各种性取向的尊重。另外,笔者并非不尊重多角恋关系,只不过在游戏机制中,繁衍由两只生物参与,因此称“双亲”。
方法声明: public LivingEntity getFather()
方法签名: ()Lorg/bukkit/entity/LivingEntity;
Gets the other parent of the newly born entity.@return the other parent该方法用于获取实体的双亲之一。@return 实体的双亲之一。译注:游戏中的生物并没有性别之分,任意两只同类生物即能繁衍,这一过程是性别无涉的。本方法名字中的所谓“Father”毫无意义。给性别无涉的体系强加“父母”一词,受到了顺性别异性恋的话语体系影响。故翻译时修改为“双亲之一”,以示笔者对于异性恋以外的各种性取向的尊重。另外,笔者并非不尊重多角恋关系,只不过在游戏机制中,繁衍由两只生物参与,因此称“双亲”。
方法声明: public LivingEntity getBreeder()
方法签名: ()Lorg/bukkit/entity/LivingEntity;
Gets the Entity responsible for breeding. Breeder is null for spontaneousconception.@return The Entity who initiated breeding.该方法用于获取引起繁衍的玩家。如果是自然状态下的繁衍,则本方法返回null
。@return 引起繁衍的玩家。
方法声明: public ItemStack getBredWith()
方法签名: ()Lorg/bukkit/inventory/ItemStack;
The ItemStack that was used to initiate breeding, if present.@return ItemStack used to initiate breeding.该方法用于获取引起繁衍的物品堆(如存在)。@return 引起繁衍的物品堆。译注:所谓“引起繁衍的物品堆”,即玩家喂食给动物,使之进入繁衍状态的物品。在游戏机制中,繁衍需要两只动物参与。本方法所返回的物品堆是玩家饲给其中一方的,无法获取用于喂养另外一方的物品堆。
方法声明: public int getExperience()
方法签名: ()I
Get the amount of experience granted by breeding.@return experience amount该方法用于获取繁衍所产生的经验值。@return 繁衍所产生的经验值。
方法声明: public void setExperience(int experience)
方法签名: (I)V
Set the amount of experience granted by breeding.@param experience experience amount该方法用于设置繁衍所产生的经验值。@param experience 繁衍所产生的经验值。
方法声明: public boolean isCancelled()
方法签名: ()Z
方法声明: public void setCancelled(boolean cancel)
方法签名: (Z)V
方法声明: public HandlerList getHandlers()
方法签名: ()Lorg/bukkit/event/HandlerList;
方法声明: public static HandlerList getHandlerList()
方法签名: ()Lorg/bukkit/event/HandlerList;
Last modified 1mo ago