类 RicochetEvent
java.lang.Object
net.neoforged.bus.api.Event
net.neoforged.neoforge.event.entity.EntityEvent
mod.chloeprime.gunsmithlib.api.common.RicochetEvent
- 所有已实现的接口:
net.neoforged.bus.api.ICancellableEvent
public class RicochetEvent
extends net.neoforged.neoforge.event.entity.EntityEvent
implements net.neoforged.bus.api.ICancellableEvent
-
嵌套类概要
从类继承的嵌套类/接口 net.neoforged.neoforge.event.entity.EntityEvent
net.neoforged.neoforge.event.entity.EntityEvent.EnteringSection, net.neoforged.neoforge.event.entity.EntityEvent.EntityConstructing, net.neoforged.neoforge.event.entity.EntityEvent.Size -
构造器概要
构造器构造器说明RicochetEvent(net.minecraft.world.entity.projectile.Projectile bullet, net.minecraft.world.level.Level level, net.minecraft.world.phys.HitResult hitResult, net.minecraft.world.phys.Vec3 normal) -
方法概要
修饰符和类型方法说明net.minecraft.world.entity.projectile.Projectilenet.minecraft.world.entity.projectile.Projectilenet.minecraft.world.phys.HitResultnet.minecraft.world.level.LevelgetLevel()net.neoforged.fml.LogicalSidefloatnet.minecraft.world.phys.Vec3voidsetMaterialBouncinessOfHitTarget(float targetBounciness) 从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait从接口继承的方法 net.neoforged.bus.api.ICancellableEvent
isCanceled, setCanceled
-
构造器详细资料
-
RicochetEvent
public RicochetEvent(@Nonnull net.minecraft.world.entity.projectile.Projectile bullet, net.minecraft.world.level.Level level, @Nonnull net.minecraft.world.phys.HitResult hitResult, @Nonnull net.minecraft.world.phys.Vec3 normal)
-
-
方法详细资料
-
getEntity
@Nonnull public net.minecraft.world.entity.projectile.Projectile getEntity()- 覆盖:
getEntity在类中net.neoforged.neoforge.event.entity.EntityEvent
-
getBulletEntity
@Nonnull public net.minecraft.world.entity.projectile.Projectile getBulletEntity() -
getLevel
@Nonnull public net.minecraft.world.level.Level getLevel() -
getLogicalSide
@Nonnull public net.neoforged.fml.LogicalSide getLogicalSide() -
getHitResult
@Nonnull public net.minecraft.world.phys.HitResult getHitResult() -
getNormal
@Nonnull public net.minecraft.world.phys.Vec3 getNormal() -
getMaterialBouncinessOfHitTarget
public float getMaterialBouncinessOfHitTarget() -
setMaterialBouncinessOfHitTarget
public void setMaterialBouncinessOfHitTarget(float targetBounciness)
-