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 EntityHitResultAbstractArrow.findHitEntity(Vec3 startVec, Vec3 endVec) Gets the EntityRayTraceResult representing the entity hitprotected EntityHitResultThrownTrident.findHitEntity(Vec3 startVec, Vec3 endVec) Gets the EntityHitResult representing the entity hitstatic EntityHitResultProjectileUtil.getEntityHitResult(Entity shooter, Vec3 startVec, Vec3 endVec, AABB boundingBox, Predicate<Entity> filter, double distance) Gets the EntityRayTraceResult representing the entity hitstatic EntityHitResultProjectileUtil.getEntityHitResult(Level level, Entity projectile, Vec3 startVec, Vec3 endVec, AABB boundingBox, Predicate<Entity> filter) Gets the EntityHitResult representing the entity hitstatic EntityHitResultProjectileUtil.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 voidAbstractArrow.onHitEntity(EntityHitResult result) Called when the arrow hits an entityprotected voidFireworkRocketEntity.onHitEntity(EntityHitResult result) Called when the arrow hits an entityprotected voidFishingHook.onHitEntity(EntityHitResult result) Called when the arrow hits an entityprotected voidLargeFireball.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 entityprotected voidSmallFireball.onHitEntity(EntityHitResult result) Called when the arrow hits an entityprotected 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 entityprotected voidThrownTrident.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.windcharge
Methods in net.minecraft.world.entity.projectile.windcharge with parameters of type EntityHitResultModifier and TypeMethodDescriptionprotected voidAbstractWindCharge.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)