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 EntityHitResultAbstractArrow.findHitEntity(Vec3 pStartVec, Vec3 pEndVec) Gets the EntityRayTraceResult representing the entity hitprotected EntityHitResultThrownTrident.findHitEntity(Vec3 pStartVec, Vec3 pEndVec) Gets the EntityHitResult representing the entity hitstatic EntityHitResultProjectileUtil.getEntityHitResult(Entity pShooter, Vec3 pStartVec, Vec3 pEndVec, AABB pBoundingBox, Predicate<Entity> pFilter, double pDistance) Gets the EntityRayTraceResult representing the entity hitstatic EntityHitResultProjectileUtil.getEntityHitResult(Level pLevel, Entity pProjectile, Vec3 pStartVec, Vec3 pEndVec, AABB pBoundingBox, Predicate<Entity> pFilter) Gets the EntityHitResult representing the entity hitstatic EntityHitResultProjectileUtil.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 voidAbstractArrow.onHitEntity(EntityHitResult pResult) Called when the arrow hits an entityprotected voidFireworkRocketEntity.onHitEntity(EntityHitResult pResult) Called when the arrow hits an entityprotected voidFishingHook.onHitEntity(EntityHitResult pResult) Called when the arrow hits an entityprotected voidLargeFireball.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 entityprotected voidSmallFireball.onHitEntity(EntityHitResult pResult) Called when the arrow hits an entityprotected 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 entityprotected voidThrownTrident.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.windcharge
Methods in net.minecraft.world.entity.projectile.windcharge with parameters of type EntityHitResultModifier and TypeMethodDescriptionprotected voidAbstractWindCharge.onHitEntity(EntityHitResult p_326121_) -
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)