Uses of Class
net.minecraft.world.phys.HitResult
Package
Description
Events fired only on the client-side, chiefly related to rendering and user interfaces (screens and input).
-
Uses of HitResult in net.minecraft.client
-
Uses of HitResult in net.minecraft.client.gui
Modifier and TypeMethodDescriptionprivate boolean
Gui.canRenderCrosshairForSpectator
(HitResult p_93025_) -
Uses of HitResult in net.minecraft.client.gui.components
-
Uses of HitResult in net.minecraft.client.renderer.blockentity
-
Uses of HitResult in net.minecraft.client.tutorial
Modifier and TypeMethodDescriptionvoid
FindTreeTutorialStepInstance.onLookAt
(ClientLevel p_120501_, HitResult p_120502_) void
Tutorial.onLookAt
(ClientLevel p_120579_, HitResult p_120580_) default void
TutorialStepInstance.onLookAt
(ClientLevel p_120617_, HitResult p_120618_) -
Uses of HitResult in net.minecraft.world.entity
-
Uses of HitResult in net.minecraft.world.entity.projectile
Modifier and TypeMethodDescriptionprivate static HitResult
ProjectileUtil.getHitResult
(Vec3 p_278237_, Entity p_278320_, Predicate<Entity> p_278257_, Vec3 p_278342_, Level p_278321_, float p_305813_, ClipContext.Block p_312920_) static HitResult
ProjectileUtil.getHitResultOnMoveVector
(Entity p_278228_, Predicate<Entity> p_278315_) static HitResult
ProjectileUtil.getHitResultOnMoveVector
(Entity p_312047_, Predicate<Entity> p_312251_, ClipContext.Block p_311921_) static HitResult
ProjectileUtil.getHitResultOnViewVector
(Entity p_278281_, Predicate<Entity> p_278306_, double p_278293_) Modifier and TypeMethodDescriptionprotected void
protected void
protected void
protected void
protected void
protected void
protected void
protected void
protected void
protected void
protected void
protected void
protected void
-
Uses of HitResult in net.minecraft.world.item
Modifier and TypeMethodDescriptionprivate HitResult
BrushItem.calculateHitResult
(Player p_305856_) -
Uses of HitResult in net.minecraft.world.phys
-
Uses of HitResult in net.neoforged.neoforge.client
Modifier and TypeMethodDescriptionstatic boolean
ClientHooks.onDrawHighlight
(LevelRenderer context, Camera camera, HitResult target, float partialTick, PoseStack poseStack, MultiBufferSource bufferSource) -
Uses of HitResult in net.neoforged.neoforge.client.event
Modifier and TypeMethodDescriptionRenderHighlightEvent.getTarget()
Returns the hit result which triggered the selection highlight.ModifierConstructorDescriptionprotected
RenderHighlightEvent
(LevelRenderer levelRenderer, Camera camera, HitResult target, float partialTick, PoseStack poseStack, MultiBufferSource multiBufferSource) -
Uses of HitResult in net.neoforged.neoforge.client.extensions.common
Modifier and TypeMethodDescriptiondefault boolean
IClientBlockExtensions.addHitEffects
(BlockState state, Level level, HitResult target, ParticleEngine manager) Spawn a digging particle effect in the level, this is a wrapper around EffectRenderer.addBlockHitEffects to allow the block more control over the particles. -
Uses of HitResult in net.neoforged.neoforge.common
Modifier and TypeMethodDescriptionstatic InteractionResult
CommonHooks.onInteractEntityAt
(Player player, Entity entity, HitResult ray, InteractionHand hand) -
Uses of HitResult in net.neoforged.neoforge.common.extensions
Modifier and TypeMethodDescriptiondefault ItemStack
IBlockExtension.getCloneItemStack
(BlockState state, HitResult target, LevelReader level, BlockPos pos, Player player) Called when A user uses the creative pick block button on this blockdefault ItemStack
IBlockStateExtension.getCloneItemStack
(HitResult target, LevelReader level, BlockPos pos, Player player) Called when A user uses the creative pick block button on this blockdefault @Nullable ItemStack
IEntityExtension.getPickedResult
(HitResult target) Called when a user uses the creative pick block button on this entity. -
Uses of HitResult in net.neoforged.neoforge.event
Modifier and TypeMethodDescriptionstatic @Nullable InteractionResultHolder<ItemStack>
EventHooks.onBucketUse
(Player player, Level level, ItemStack stack, @Nullable HitResult target) EventHooks.onEnderPearlLand
(ServerPlayer entity, double targetX, double targetY, double targetZ, ThrownEnderpearl pearlEntity, float attackDamage, HitResult hitResult) static boolean
EventHooks.onProjectileImpact
(Projectile projectile, HitResult ray) -
Uses of HitResult in net.neoforged.neoforge.event.entity
Modifier and TypeFieldDescriptionprivate final HitResult
EntityTeleportEvent.EnderPearl.hitResult
private final HitResult
ProjectileImpactEvent.ray
Modifier and TypeMethodDescription@Nullable HitResult
EntityTeleportEvent.EnderPearl.getHitResult()
ProjectileImpactEvent.getRayTraceResult()
ModifierConstructorDescriptionEnderPearl
(ServerPlayer entity, double targetX, double targetY, double targetZ, ThrownEnderpearl pearlEntity, float attackDamage, HitResult hitResult) ProjectileImpactEvent
(Projectile projectile, HitResult ray) -
Uses of HitResult in net.neoforged.neoforge.event.entity.player
ModifierConstructorDescriptionFillBucketEvent
(Player player, ItemStack current, Level level, @Nullable HitResult target)