Uses of Class
net.minecraft.world.phys.EntityHitResult
Packages that use EntityHitResult
Package
Description
-
Uses of EntityHitResult in net.minecraft.client.multiplayer
Methods in net.minecraft.client.multiplayer with parameters of type EntityHitResultModifier and TypeMethodDescriptionMultiPlayerGameMode.interact(Player player, Entity entity, EntityHitResult hitResult, InteractionHand hand) -
Uses of EntityHitResult in net.minecraft.world.entity.projectile
Methods in net.minecraft.world.entity.projectile that return EntityHitResultModifier and TypeMethodDescriptionstatic @Nullable EntityHitResultProjectileUtil.getEntityHitResult(Entity except, Vec3 from, Vec3 to, AABB box, Predicate<Entity> matching, double maxValue) Gets theEntityHitResultrepresenting the entity hitstatic @Nullable EntityHitResultProjectileUtil.getEntityHitResult(Level level, Entity source, Vec3 from, Vec3 to, AABB targetSearchArea, Predicate<Entity> matching, float entityMargin) Gets the EntityHitResult representing the entity hitstatic @Nullable EntityHitResultProjectileUtil.getEntityHitResult(Level level, Projectile source, Vec3 from, Vec3 to, AABB targetSearchArea, Predicate<Entity> matching) Methods in net.minecraft.world.entity.projectile that return types with arguments of type EntityHitResultModifier and TypeMethodDescriptionstatic com.mojang.datafixers.util.Either<BlockHitResult, Collection<EntityHitResult>> ProjectileUtil.getHitEntitiesAlong(Entity attacker, AttackRange attackRange, Predicate<Entity> matching, ClipContext.Block blockClipType) private static com.mojang.datafixers.util.Either<BlockHitResult, Collection<EntityHitResult>> ProjectileUtil.getHitEntitiesAlong(Entity source, Vec3 origin, Vec3 from, Predicate<Entity> matching, Vec3 to, float entityMargin, ClipContext.Block clipType) static Collection<EntityHitResult> ProjectileUtil.getManyEntityHitResult(Level level, Entity source, Vec3 from, Vec3 to, AABB targetSearchArea, Predicate<Entity> matching, boolean includeFromEntity) static Collection<EntityHitResult> ProjectileUtil.getManyEntityHitResult(Level level, Entity source, Vec3 from, Vec3 to, AABB targetSearchArea, Predicate<Entity> matching, float entityMargin, ClipContext.Block clipType, boolean includeFromEntity) Methods in net.minecraft.world.entity.projectile with parameters of type EntityHitResultModifier and TypeMethodDescriptionprotected voidFireworkRocketEntity.onHitEntity(EntityHitResult hitResult) Called when the arrow hits an entityprotected voidFishingHook.onHitEntity(EntityHitResult hitResult) Called when the arrow hits an entityprotected voidLlamaSpit.onHitEntity(EntityHitResult hitResult) Called when the arrow hits an entityprotected voidProjectile.onHitEntity(EntityHitResult hitResult) Called when the arrow hits an entityprotected voidShulkerBullet.onHitEntity(EntityHitResult hitResult) Called when the arrow hits an entity -
Uses of EntityHitResult in net.minecraft.world.entity.projectile.arrow
Methods in net.minecraft.world.entity.projectile.arrow that return EntityHitResultModifier and TypeMethodDescriptionprotected @Nullable EntityHitResultAbstractArrow.findHitEntity(Vec3 from, Vec3 to) Gets the EntityRayTraceResult representing the entity hitprotected @Nullable EntityHitResultThrownTrident.findHitEntity(Vec3 from, Vec3 to) Gets the EntityHitResult representing the entity hitMethods in net.minecraft.world.entity.projectile.arrow that return types with arguments of type EntityHitResultModifier and TypeMethodDescriptionprotected Collection<EntityHitResult> AbstractArrow.findHitEntities(Vec3 from, Vec3 to) protected Collection<EntityHitResult> ThrownTrident.findHitEntities(Vec3 from, Vec3 to) Methods in net.minecraft.world.entity.projectile.arrow with parameters of type EntityHitResultModifier and TypeMethodDescriptionprotected voidAbstractArrow.onHitEntity(EntityHitResult hitResult) Called when the arrow hits an entityprotected voidThrownTrident.onHitEntity(EntityHitResult hitResult) Called when the arrow hits an entityMethod parameters in net.minecraft.world.entity.projectile.arrow with type arguments of type EntityHitResultModifier and TypeMethodDescriptionprivate ProjectileDeflectionAbstractArrow.hitTargetsOrDeflectSelf(Collection<EntityHitResult> entityHitResults) -
Uses of EntityHitResult in net.minecraft.world.entity.projectile.hurtingprojectile
Methods in net.minecraft.world.entity.projectile.hurtingprojectile with parameters of type EntityHitResultModifier and TypeMethodDescriptionprotected voidLargeFireball.onHitEntity(EntityHitResult hitResult) Called when the arrow hits an entityprotected voidSmallFireball.onHitEntity(EntityHitResult hitResult) Called when the arrow hits an entityprotected voidWitherSkull.onHitEntity(EntityHitResult hitResult) Called when the arrow hits an entity -
Uses of EntityHitResult in net.minecraft.world.entity.projectile.hurtingprojectile.windcharge
Methods in net.minecraft.world.entity.projectile.hurtingprojectile.windcharge with parameters of type EntityHitResultModifier and TypeMethodDescriptionprotected voidAbstractWindCharge.onHitEntity(EntityHitResult hitResult) -
Uses of EntityHitResult in net.minecraft.world.entity.projectile.throwableitemprojectile
Methods in net.minecraft.world.entity.projectile.throwableitemprojectile with parameters of type EntityHitResultModifier and TypeMethodDescriptionprotected voidSnowball.onHitEntity(EntityHitResult hitResult) Called when the arrow hits an entityprotected voidThrownEgg.onHitEntity(EntityHitResult hitResult) Called when the arrow hits an entityprotected voidThrownEnderpearl.onHitEntity(EntityHitResult hitResult) Called when the arrow hits an entity