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.interactAt(Player player, Entity target, EntityHitResult ray, InteractionHand hand) Handles right-clicking an entity from the entities side, sends a packet to the server. -
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 source, Vec3 startVec, Vec3 endVec, AABB boundingBox, Predicate<Entity> filter, double distance) Gets the EntityHitResult representing the entity hitstatic @Nullable EntityHitResultProjectileUtil.getEntityHitResult(Level level, Entity source, Vec3 startVec, Vec3 endVec, AABB boundingBox, Predicate<Entity> filter, float margin) Gets the EntityHitResult representing the entity hitstatic @Nullable EntityHitResultProjectileUtil.getEntityHitResult(Level level, Projectile source, Vec3 startVec, Vec3 endVec, AABB boundingBox, Predicate<Entity> filter) 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 entity, AttackRange attackRange, Predicate<Entity> predicate, ClipContext.Block clipContext) private static com.mojang.datafixers.util.Either<BlockHitResult, Collection<EntityHitResult>> ProjectileUtil.getHitEntitiesAlong(Entity entity, Vec3 pos, Vec3 start, Predicate<Entity> predicate, Vec3 end, float hitboxMargin, ClipContext.Block clipContext) static Collection<EntityHitResult> ProjectileUtil.getManyEntityHitResult(Level level, Entity entity, Vec3 start, Vec3 end, AABB box, Predicate<Entity> predicate, boolean hitIfInside) static Collection<EntityHitResult> ProjectileUtil.getManyEntityHitResult(Level level, Entity entity, Vec3 start, Vec3 end, AABB box, Predicate<Entity> predicate, float margin, ClipContext.Block clipContext, boolean hitIfInside) Methods in net.minecraft.world.entity.projectile with parameters of type EntityHitResultModifier and TypeMethodDescriptionprotected voidFireworkRocketEntity.onHitEntity(EntityHitResult result) Called when the arrow hits an entityprotected voidFishingHook.onHitEntity(EntityHitResult result) Called when the arrow hits an entityprotected voidLlamaSpit.onHitEntity(EntityHitResult result) Called when the arrow hits an entityprotected voidProjectile.onHitEntity(EntityHitResult result) Called when the arrow hits an entityprotected voidShulkerBullet.onHitEntity(EntityHitResult result) 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 start, Vec3 end) Gets the EntityHitResult representing the entity hitprotected @Nullable EntityHitResultThrownTrident.findHitEntity(Vec3 startVec, Vec3 endVec) 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 start, Vec3 end) protected Collection<EntityHitResult> ThrownTrident.findHitEntities(Vec3 p_481064_, Vec3 p_480089_) Methods in net.minecraft.world.entity.projectile.arrow with parameters of type EntityHitResultModifier and TypeMethodDescriptionprotected voidAbstractArrow.onHitEntity(EntityHitResult result) Called when the arrow hits an entityprotected voidThrownTrident.onHitEntity(EntityHitResult result) 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> hitResults) -
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 result) Called when the arrow hits an entityprotected voidSmallFireball.onHitEntity(EntityHitResult result) Called when the arrow hits an entityprotected voidWitherSkull.onHitEntity(EntityHitResult result) 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 p_481371_) -
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 result) Called when the arrow hits an entityprotected voidThrownEgg.onHitEntity(EntityHitResult result) Called when the arrow hits an entityprotected voidThrownEnderpearl.onHitEntity(EntityHitResult result) Called when the arrow hits an entity