Uses of Class
net.minecraft.world.phys.EntityHitResult
Packages that use EntityHitResult
Package
Description
Events fired only on the client-side, chiefly related to rendering and user interfaces (screens and input).
-
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 TypeMethodDescriptionprotected EntityHitResult
AbstractArrow.findHitEntity
(Vec3 pStartVec, Vec3 pEndVec) Gets the EntityRayTraceResult representing the entity hitprotected EntityHitResult
ThrownTrident.findHitEntity
(Vec3 pStartVec, Vec3 pEndVec) Gets the EntityHitResult representing the entity hitstatic EntityHitResult
ProjectileUtil.getEntityHitResult
(Entity pShooter, Vec3 pStartVec, Vec3 pEndVec, AABB pBoundingBox, Predicate<Entity> pFilter, double pDistance) Gets the EntityRayTraceResult representing the entity hitstatic EntityHitResult
ProjectileUtil.getEntityHitResult
(Level pLevel, Entity pProjectile, Vec3 pStartVec, Vec3 pEndVec, AABB pBoundingBox, Predicate<Entity> pFilter) Gets the EntityHitResult representing the entity hitstatic EntityHitResult
ProjectileUtil.getEntityHitResult
(Level pLevel, Entity pProjectile, Vec3 pStartVec, Vec3 pEndVec, AABB pBoundingBox, Predicate<Entity> pFilter, float pInflationAmount) Gets the EntityHitResult representing the entity hitMethods in net.minecraft.world.entity.projectile with parameters of type EntityHitResultModifier and TypeMethodDescriptionprotected void
AbstractArrow.onHitEntity
(EntityHitResult pResult) Called when the arrow hits an entityprotected void
FireworkRocketEntity.onHitEntity
(EntityHitResult pResult) Called when the arrow hits an entityprotected void
FishingHook.onHitEntity
(EntityHitResult pResult) Called when the arrow hits an entityprotected void
LargeFireball.onHitEntity
(EntityHitResult pResult) Called when the arrow hits an entityprotected void
LlamaSpit.onHitEntity
(EntityHitResult pResult) Called when the arrow hits an entityprotected void
Projectile.onHitEntity
(EntityHitResult pResult) Called when the arrow hits an entityprotected void
ShulkerBullet.onHitEntity
(EntityHitResult pResult) Called when the arrow hits an entityprotected void
SmallFireball.onHitEntity
(EntityHitResult pResult) Called when the arrow hits an entityprotected void
Snowball.onHitEntity
(EntityHitResult pResult) Called when the arrow hits an entityprotected void
ThrownEgg.onHitEntity
(EntityHitResult pResult) Called when the arrow hits an entityprotected void
ThrownEnderpearl.onHitEntity
(EntityHitResult pResult) Called when the arrow hits an entityprotected void
ThrownTrident.onHitEntity
(EntityHitResult pResult) Called when the arrow hits an entityprotected void
WitherSkull.onHitEntity
(EntityHitResult pResult) Called when the arrow hits an entity -
Uses of EntityHitResult in net.minecraft.world.entity.projectile.windcharge
Methods in net.minecraft.world.entity.projectile.windcharge with parameters of type EntityHitResultModifier and TypeMethodDescriptionprotected void
AbstractWindCharge.onHitEntity
(EntityHitResult pResult) Called when the arrow hits an entity -
Uses of EntityHitResult in net.neoforged.neoforge.client.event
Methods in net.neoforged.neoforge.client.event that return EntityHitResultModifier and TypeMethodDescriptionRenderHighlightEvent.Entity.getTarget()
Returns the entity hit result.Constructors in net.neoforged.neoforge.client.event with parameters of type EntityHitResultModifierConstructorDescriptionEntity
(LevelRenderer levelRenderer, Camera camera, EntityHitResult target, DeltaTracker deltaTracker, PoseStack poseStack, MultiBufferSource bufferSource)