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 TypeMethodDescriptionstatic HitResult
ProjectileUtil.getHitResult
(Entity p_37295_, Predicate<Entity> p_37296_) 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
-
Uses of HitResult in net.minecraft.world.item
-
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, BlockGetter level, BlockPos pos, Player player) Called when A user uses the creative pick block button on this blockdefault ItemStack
IForgeBlockState.getCloneItemStack
(HitResult target, BlockGetter 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, @Nullable HitResult hitResult) static boolean
ForgeEventFactory.onProjectileImpact
(Projectile projectile, HitResult ray) -
Uses of HitResult in net.minecraftforge.event.entity
Modifier and TypeFieldDescriptionprivate final @Nullable 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, @Nullable 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)