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 pPlayer, Entity pTarget, EntityHitResult pRay, InteractionHand pHand) 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 pShooter, Vec3 pStartVec, Vec3 pEndVec, AABB pBoundingBox, Predicate<Entity> pFilter, double pDistance) Gets theEntityHitResultrepresenting the entity hitstatic @Nullable EntityHitResultProjectileUtil.getEntityHitResult(Level pLevel, Entity pProjectile, Vec3 pStartVec, Vec3 pEndVec, AABB pBoundingBox, Predicate<Entity> pFilter, float pInflationAmount) Gets the EntityHitResult representing the entity hitstatic @Nullable EntityHitResultProjectileUtil.getEntityHitResult(Level pLevel, Projectile pProjectile, Vec3 pStartVec, Vec3 pEndVec, AABB pBoundingBox, Predicate<Entity> pFilter) 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 pEntity, AttackRange pAttackRange, Predicate<Entity> pPredicate, ClipContext.Block pClipContext) private static com.mojang.datafixers.util.Either<BlockHitResult, Collection<EntityHitResult>> ProjectileUtil.getHitEntitiesAlong(Entity pEntity, Vec3 pPos, Vec3 pStart, Predicate<Entity> pPredicate, Vec3 pEnd, float pHitboxMargin, ClipContext.Block pClipContext) static Collection<EntityHitResult> ProjectileUtil.getManyEntityHitResult(Level pLevel, Entity pEntity, Vec3 pStart, Vec3 pEnd, AABB pBox, Predicate<Entity> pPredicate, boolean pHitIfInside) static Collection<EntityHitResult> ProjectileUtil.getManyEntityHitResult(Level pLevel, Entity pEntity, Vec3 pStart, Vec3 pEnd, AABB pBox, Predicate<Entity> pPredicate, float pMargin, ClipContext.Block pClipContext, boolean pHitIfInside) Methods in net.minecraft.world.entity.projectile with parameters of type EntityHitResultModifier and TypeMethodDescriptionprotected voidFireworkRocketEntity.onHitEntity(EntityHitResult pResult) Called when the arrow hits an entityprotected voidFishingHook.onHitEntity(EntityHitResult pResult) Called when the arrow hits an entityprotected voidLlamaSpit.onHitEntity(EntityHitResult pResult) Called when the arrow hits an entityprotected voidProjectile.onHitEntity(EntityHitResult pResult) Called when the arrow hits an entityprotected voidShulkerBullet.onHitEntity(EntityHitResult pResult) 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 pStart, Vec3 pEnd) Gets the EntityRayTraceResult representing the entity hitprotected @Nullable EntityHitResultThrownTrident.findHitEntity(Vec3 pStartVec, Vec3 pEndVec) 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 pStart, Vec3 pEnd) 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 pResult) Called when the arrow hits an entityprotected voidThrownTrident.onHitEntity(EntityHitResult pResult) 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> pHitResults) -
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 pResult) Called when the arrow hits an entityprotected voidSmallFireball.onHitEntity(EntityHitResult pResult) Called when the arrow hits an entityprotected voidWitherSkull.onHitEntity(EntityHitResult pResult) 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 pResult) Called when the arrow hits an entityprotected voidThrownEgg.onHitEntity(EntityHitResult pResult) Called when the arrow hits an entityprotected voidThrownEnderpearl.onHitEntity(EntityHitResult pResult) Called when the arrow hits an entity