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 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 TypeMethodDescriptionprotected EntityHitResult
AbstractArrow.findHitEntity
(Vec3 startVec, Vec3 endVec) Gets the EntityRayTraceResult representing the entity hitprotected EntityHitResult
ThrownTrident.findHitEntity
(Vec3 startVec, Vec3 endVec) Gets the EntityHitResult representing the entity hitstatic EntityHitResult
ProjectileUtil.getEntityHitResult
(Entity shooter, Vec3 startVec, Vec3 endVec, AABB boundingBox, Predicate<Entity> filter, double distance) Gets the EntityRayTraceResult representing the entity hitstatic EntityHitResult
ProjectileUtil.getEntityHitResult
(Level level, Entity projectile, Vec3 startVec, Vec3 endVec, AABB boundingBox, Predicate<Entity> filter) Gets the EntityHitResult representing the entity hitstatic EntityHitResult
ProjectileUtil.getEntityHitResult
(Level level, Entity projectile, Vec3 startVec, Vec3 endVec, AABB boundingBox, Predicate<Entity> filter, float inflationAmount) Gets the EntityHitResult representing the entity hitMethods in net.minecraft.world.entity.projectile with parameters of type EntityHitResultModifier and TypeMethodDescriptionprotected void
AbstractArrow.onHitEntity
(EntityHitResult result) Called when the arrow hits an entityprotected void
FireworkRocketEntity.onHitEntity
(EntityHitResult result) Called when the arrow hits an entityprotected void
FishingHook.onHitEntity
(EntityHitResult result) Called when the arrow hits an entityprotected void
LargeFireball.onHitEntity
(EntityHitResult result) Called when the arrow hits an entityprotected void
LlamaSpit.onHitEntity
(EntityHitResult result) Called when the arrow hits an entityprotected void
Projectile.onHitEntity
(EntityHitResult result) Called when the arrow hits an entityprotected void
ShulkerBullet.onHitEntity
(EntityHitResult result) Called when the arrow hits an entityprotected void
SmallFireball.onHitEntity
(EntityHitResult result) Called when the arrow hits an entityprotected void
Snowball.onHitEntity
(EntityHitResult result) Called when the arrow hits an entityprotected void
ThrownEgg.onHitEntity
(EntityHitResult result) Called when the arrow hits an entityprotected void
ThrownEnderpearl.onHitEntity
(EntityHitResult result) Called when the arrow hits an entityprotected void
ThrownTrident.onHitEntity
(EntityHitResult result) Called when the arrow hits an entityprotected void
WitherSkull.onHitEntity
(EntityHitResult result) 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 result) 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)