类 BabyEntitySpawnEvent
java.lang.Object
net.minecraftforge.eventbus.api.Event
net.minecraftforge.event.entity.living.BabyEntitySpawnEvent
public class BabyEntitySpawnEvent
extends net.minecraftforge.eventbus.api.Event
BabyEntitySpawnEvent is fired just before a baby entity is about to be spawned.
Parents will have disengaged their relationship.
It is possible to change the child completely by using
This event is fired from
This event is
If this event is canceled, the child Entity is not added to the world, and the parents
will no longer attempt to mate.
This event does not have a result.
This event is fired on the
Parents will have disengaged their relationship.
Cancelable
It is possible to change the child completely by using
setChild(AgeableMob)
This event is fired from
Animal.spawnChildFromBreeding(ServerLevel, Animal)
and
Animal.spawnChildFromBreeding(ServerLevel, Animal)
parentA
contains the initiating parent entity.parentB
contains the secondary parent entity.causedByPlayer
contains the player responsible for the breading (if applicable).child
contains the child that will be spawned.This event is
Cancelable
.If this event is canceled, the child Entity is not added to the world, and the parents
will no longer attempt to mate.
This event does not have a result.
Event.HasResult
This event is fired on the
MinecraftForge.EVENT_BUS
.-
嵌套类概要
从类继承的嵌套类/接口 net.minecraftforge.eventbus.api.Event
net.minecraftforge.eventbus.api.Event.HasResult, net.minecraftforge.eventbus.api.Event.Result
-
字段概要
字段 -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明@Nullable Player
@Nullable AgeableMob
getChild()
void
setChild
(AgeableMob proposedChild) 从类继承的方法 net.minecraftforge.eventbus.api.Event
getListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult
-
字段详细资料
-
parentA
-
parentB
-
causedByPlayer
-
child
-
-
构造器详细资料
-
BabyEntitySpawnEvent
-
-
方法详细资料
-
getParentA
-
getParentB
-
getCausedByPlayer
-
getChild
-
setChild
-