类 ExplosionKnockbackEvent
java.lang.Object
net.neoforged.bus.api.Event
net.neoforged.neoforge.event.level.ExplosionEvent
net.neoforged.neoforge.event.level.ExplosionKnockbackEvent
ExplosionKnockbackEvent is fired once the explosion has calculated the knockback velocity to add to the entity caught in blast.
This event is not
This event does not use
.
This event is fired on the
This event is not
ICancellableEvent
.This event does not use
引用无效
HasResult
This event is fired on the
NeoForge.EVENT_BUS
.-
嵌套类概要
从类继承的嵌套类/接口 net.neoforged.neoforge.event.level.ExplosionEvent
ExplosionEvent.Detonate, ExplosionEvent.Start
-
字段概要
字段 -
构造器概要
构造器构造器说明ExplosionKnockbackEvent
(Level level, ServerExplosion explosion, Entity entity, Vec3 knockbackVelocity, List<BlockPos> blockList) -
方法概要
修饰符和类型方法说明return the list of blocks affected by the explosion.return the entity affected by the explosion knockback.return the explosion knockback velocity to apply to entity.void
setKnockbackVelocity
(Vec3 newKnockbackVelocity) Sets the explosion knockback velocity to add to the entity's existing velocity.从类继承的方法 net.neoforged.neoforge.event.level.ExplosionEvent
getExplosion, getLevel
-
字段详细资料
-
entity
-
blockList
-
knockbackVelocity
-
-
构造器详细资料
-
ExplosionKnockbackEvent
-
-
方法详细资料
-
getAffectedBlocks
return the list of blocks affected by the explosion. -
getAffectedEntity
return the entity affected by the explosion knockback. -
getKnockbackVelocity
return the explosion knockback velocity to apply to entity. -
setKnockbackVelocity
Sets the explosion knockback velocity to add to the entity's existing velocity.
-