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_310295_, ClipContext.Block p_310049_) static HitResult
ProjectileUtil.getHitResultOnMoveVector
(Entity p_278228_, Predicate<Entity> p_278315_) static HitResult
ProjectileUtil.getHitResultOnMoveVector
(Entity p_311718_, Predicate<Entity> p_311003_, ClipContext.Block p_312093_) 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_311819_) -
Uses of HitResult in net.minecraft.world.phys
-
Uses of HitResult in net.minecraftforge.client
Modifier and TypeMethodDescriptionstatic boolean
ForgeHooksClient.onDrawHighlight
(LevelRenderer context, Camera camera, HitResult target, float partialTick, PoseStack poseStack, MultiBufferSource bufferSource) -
Uses of HitResult in net.minecraftforge.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.minecraftforge.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.minecraftforge.common
Modifier and TypeMethodDescriptionstatic InteractionResult
ForgeHooks.onInteractEntityAt
(Player player, Entity entity, HitResult ray, InteractionHand hand) -
Uses of HitResult in net.minecraftforge.common.extensions
Modifier and TypeMethodDescriptiondefault ItemStack
IForgeBlock.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
IForgeBlockState.getCloneItemStack
(HitResult target, LevelReader level, BlockPos pos, Player player) Called when A user uses the creative pick block button on this blockdefault ItemStack
IForgeEntity.getPickedResult
(HitResult target) Called when a user uses the creative pick block button on this entity. -
Uses of HitResult in net.minecraftforge.event
Modifier and TypeMethodDescriptionstatic @Nullable InteractionResultHolder<ItemStack>
ForgeEventFactory.onBucketUse
(@NotNull Player player, @NotNull Level level, @NotNull ItemStack stack, @Nullable HitResult target) ForgeEventFactory.onEnderPearlLand
(ServerPlayer entity, double targetX, double targetY, double targetZ, ThrownEnderpearl pearlEntity, float attackDamage, HitResult hitResult) static boolean
ForgeEventFactory.onProjectileImpact
(Projectile projectile, HitResult ray) ForgeEventFactory.onProjectileImpactResult
(Projectile projectile, HitResult ray) -
Uses of HitResult in net.minecraftforge.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.minecraftforge.event.entity.player
ModifierConstructorDescriptionFillBucketEvent
(Player player, @NotNull ItemStack current, Level level, @Nullable HitResult target)