Uses of Class
net.minecraft.world.phys.BlockHitResult
Packages that use BlockHitResult
Package
Description
Events fired only on the client-side, chiefly related to rendering and user interfaces (screens and input).
-
Uses of BlockHitResult in net.minecraft.client.multiplayer
Methods in net.minecraft.client.multiplayer with parameters of type BlockHitResultModifier and TypeMethodDescriptionprivate InteractionResultMultiPlayerGameMode.performUseItemOn(LocalPlayer player, InteractionHand hand, BlockHitResult p_result) MultiPlayerGameMode.useItemOn(LocalPlayer player, InteractionHand hand, BlockHitResult result) -
Uses of BlockHitResult in net.minecraft.client.particle
Methods in net.minecraft.client.particle with parameters of type BlockHitResultModifier and TypeMethodDescriptionvoidParticleEngine.addBlockHitEffects(BlockPos pos, BlockHitResult target) -
Uses of BlockHitResult in net.minecraft.gametest.framework
Methods in net.minecraft.gametest.framework with parameters of type BlockHitResultModifier and TypeMethodDescriptionvoidGameTestHelper.useBlock(BlockPos pos, Player player, BlockHitResult result) -
Uses of BlockHitResult in net.minecraft.network
Methods in net.minecraft.network that return BlockHitResultMethods in net.minecraft.network with parameters of type BlockHitResultModifier and TypeMethodDescriptionvoidFriendlyByteBuf.writeBlockHitResult(BlockHitResult result) Write a BlockHitResult. -
Uses of BlockHitResult in net.minecraft.network.protocol.game
Fields in net.minecraft.network.protocol.game declared as BlockHitResultModifier and TypeFieldDescriptionprivate final BlockHitResultServerboundUseItemOnPacket.blockHitMethods in net.minecraft.network.protocol.game that return BlockHitResultConstructors in net.minecraft.network.protocol.game with parameters of type BlockHitResultModifierConstructorDescriptionServerboundUseItemOnPacket(InteractionHand hand, BlockHitResult blockHit, int sequence) -
Uses of BlockHitResult in net.minecraft.server.level
Methods in net.minecraft.server.level with parameters of type BlockHitResultModifier and TypeMethodDescriptionDemoMode.useItemOn(ServerPlayer player, Level level, ItemStack stack, InteractionHand hand, BlockHitResult hitResult) ServerPlayerGameMode.useItemOn(ServerPlayer player, Level level, ItemStack stack, InteractionHand hand, BlockHitResult hitResult) -
Uses of BlockHitResult in net.minecraft.world.entity.projectile
Methods in net.minecraft.world.entity.projectile with parameters of type BlockHitResultModifier and TypeMethodDescriptionprotected voidAbstractArrow.hitBlockEnchantmentEffects(ServerLevel level, BlockHitResult hitResult, ItemStack stack) protected voidThrownTrident.hitBlockEnchantmentEffects(ServerLevel level, BlockHitResult hitResult, ItemStack stack) protected voidAbstractArrow.onHitBlock(BlockHitResult result) protected voidFireworkRocketEntity.onHitBlock(BlockHitResult result) protected voidFishingHook.onHitBlock(BlockHitResult result) protected voidLlamaSpit.onHitBlock(BlockHitResult result) protected voidProjectile.onHitBlock(BlockHitResult result) protected voidShulkerBullet.onHitBlock(BlockHitResult result) protected voidSmallFireball.onHitBlock(BlockHitResult result) protected voidThrownPotion.onHitBlock(BlockHitResult result) -
Uses of BlockHitResult in net.minecraft.world.entity.projectile.windcharge
Methods in net.minecraft.world.entity.projectile.windcharge with parameters of type BlockHitResultModifier and TypeMethodDescriptionprotected voidAbstractWindCharge.onHitBlock(BlockHitResult result) -
Uses of BlockHitResult in net.minecraft.world.item
Methods in net.minecraft.world.item that return BlockHitResultModifier and TypeMethodDescriptionstatic BlockHitResultItem.getPlayerPOVHitResult(Level level, Player player, ClipContext.Fluid fluidMode) Methods in net.minecraft.world.item with parameters of type BlockHitResultModifier and TypeMethodDescriptionbooleanBucketItem.emptyContents(Player player, Level level, BlockPos pos, BlockHitResult result) Deprecated.booleanBucketItem.emptyContents(Player player, Level level, BlockPos pos, BlockHitResult result, ItemStack container) booleanDispensibleContainerItem.emptyContents(Player player, Level level, BlockPos pos, BlockHitResult result) Deprecated.booleanSolidBucketItem.emptyContents(Player player, Level level, BlockPos pos, BlockHitResult result) private voidBrushItem.spawnDustParticles(Level level, BlockHitResult hitResult, BlockState state, Vec3 pos, HumanoidArm arm) -
Uses of BlockHitResult in net.minecraft.world.item.context
Fields in net.minecraft.world.item.context declared as BlockHitResultMethods in net.minecraft.world.item.context that return BlockHitResultConstructors in net.minecraft.world.item.context with parameters of type BlockHitResultModifierConstructorDescriptionBlockPlaceContext(Player player, InteractionHand hand, ItemStack itemStack, BlockHitResult hitResult) BlockPlaceContext(Level level, Player player, InteractionHand hand, ItemStack itemStack, BlockHitResult hitResult) UseOnContext(Player player, InteractionHand hand, BlockHitResult hitResult) UseOnContext(Level level, Player player, InteractionHand hand, ItemStack itemStack, BlockHitResult hitResult) -
Uses of BlockHitResult in net.minecraft.world.level
Methods in net.minecraft.world.level that return BlockHitResultModifier and TypeMethodDescriptiondefault BlockHitResultBlockGetter.clip(ClipContext context) Checks if there's block betweenfromandtoof context.default BlockHitResultBlockGetter.clipWithInteractionOverride(Vec3 startVec, Vec3 endVec, BlockPos pos, VoxelShape shape, BlockState state) default BlockHitResultBlockGetter.isBlockInLine(ClipBlockStateContext context) -
Uses of BlockHitResult in net.minecraft.world.level.block
Methods in net.minecraft.world.level.block with parameters of type BlockHitResultModifier and TypeMethodDescriptionprivate static booleanCandleCakeBlock.candleHit(BlockHitResult hit) private OptionalIntChiseledBookShelfBlock.getHitSlot(BlockHitResult hitReselt, BlockState state) private static intTargetBlock.getRedstoneStrength(BlockHitResult hit, Vec3 hitLocation) ChiseledBookShelfBlock.getRelativeHitCoordinatesForBlockFace(BlockHitResult hitResult, Direction face) private booleanWallHangingSignBlock.isHittingEditableSide(BlockHitResult hitResult, BlockState state) booleanBellBlock.onHit(Level level, BlockState state, BlockHitResult result, Player player, boolean canRingBell) protected voidAbstractCandleBlock.onProjectileHit(Level level, BlockState state, BlockHitResult hit, Projectile projectile) protected voidAmethystBlock.onProjectileHit(Level p_152001_, BlockState p_152002_, BlockHitResult p_152003_, Projectile p_152004_) protected voidBellBlock.onProjectileHit(Level level, BlockState state, BlockHitResult hit, Projectile projectile) protected voidBigDripleafBlock.onProjectileHit(Level level, BlockState state, BlockHitResult hit, Projectile projectile) protected voidCampfireBlock.onProjectileHit(Level level, BlockState state, BlockHitResult hit, Projectile projectile) protected voidChorusFlowerBlock.onProjectileHit(Level level, BlockState state, BlockHitResult hit, Projectile projectile) protected voidDecoratedPotBlock.onProjectileHit(Level p_306322_, BlockState p_306005_, BlockHitResult p_306105_, Projectile p_305851_) protected voidPointedDripstoneBlock.onProjectileHit(Level level, BlockState state, BlockHitResult hit, Projectile projectile) protected voidTargetBlock.onProjectileHit(Level level, BlockState state, BlockHitResult hit, Projectile projectile) protected voidTntBlock.onProjectileHit(Level level, BlockState state, BlockHitResult hit, Projectile projectile) private booleanCeilingHangingSignBlock.shouldTryToChainAnotherHangingSign(Player player, BlockHitResult hitResult, SignBlockEntity sign, ItemStack stack) private booleanWallHangingSignBlock.shouldTryToChainAnotherHangingSign(BlockState state, Player player, BlockHitResult hitResult, SignBlockEntity sign, ItemStack stack) private static intTargetBlock.updateRedstoneOutput(LevelAccessor level, BlockState state, BlockHitResult hit, Entity projectile) protected ItemInteractionResultAbstractCauldronBlock.useItemOn(ItemStack stack, BlockState state, Level level, BlockPos pos, Player player, InteractionHand hand, BlockHitResult hitResult) protected ItemInteractionResultBeehiveBlock.useItemOn(ItemStack stack, BlockState state, Level level, BlockPos pos, Player player, InteractionHand hand, BlockHitResult hitResult) protected ItemInteractionResultCakeBlock.useItemOn(ItemStack stack, BlockState state, Level level, BlockPos pos, Player player, InteractionHand hand, BlockHitResult hitResult) protected ItemInteractionResultCampfireBlock.useItemOn(ItemStack stack, BlockState state, Level level, BlockPos pos, Player player, InteractionHand hand, BlockHitResult hitResult) protected ItemInteractionResultCandleBlock.useItemOn(ItemStack stack, BlockState state, Level level, BlockPos pos, Player player, InteractionHand hand, BlockHitResult hitResult) protected ItemInteractionResultCandleCakeBlock.useItemOn(ItemStack stack, BlockState state, Level level, BlockPos pos, Player player, InteractionHand hand, BlockHitResult hitResult) protected ItemInteractionResultCeilingHangingSignBlock.useItemOn(ItemStack stack, BlockState state, Level level, BlockPos pos, Player player, InteractionHand hand, BlockHitResult hitResult) protected ItemInteractionResultChiseledBookShelfBlock.useItemOn(ItemStack stack, BlockState state, Level level, BlockPos pos, Player player, InteractionHand hand, BlockHitResult hitResult) protected ItemInteractionResultComposterBlock.useItemOn(ItemStack stack, BlockState state, Level level, BlockPos pos, Player player, InteractionHand hand, BlockHitResult hitResult) protected ItemInteractionResultDecoratedPotBlock.useItemOn(ItemStack p_316569_, BlockState p_316562_, Level p_316177_, BlockPos p_316898_, Player p_316632_, InteractionHand p_316424_, BlockHitResult p_316345_) protected ItemInteractionResultFenceBlock.useItemOn(ItemStack stack, BlockState state, Level level, BlockPos pos, Player player, InteractionHand hand, BlockHitResult hitResult) protected ItemInteractionResultFlowerPotBlock.useItemOn(ItemStack stack, BlockState state, Level level, BlockPos pos, Player player, InteractionHand hand, BlockHitResult hitResult) protected ItemInteractionResultJukeboxBlock.useItemOn(ItemStack stack, BlockState state, Level level, BlockPos pos, Player player, InteractionHand hand, BlockHitResult hitResult) protected ItemInteractionResultLecternBlock.useItemOn(ItemStack stack, BlockState state, Level level, BlockPos pos, Player player, InteractionHand hand, BlockHitResult hitResult) protected ItemInteractionResultNoteBlock.useItemOn(ItemStack stack, BlockState state, Level level, BlockPos pos, Player player, InteractionHand hand, BlockHitResult hitResult) protected ItemInteractionResultPumpkinBlock.useItemOn(ItemStack p_316383_, BlockState p_316676_, Level p_316272_, BlockPos p_316484_, Player p_316367_, InteractionHand p_316216_, BlockHitResult p_316827_) protected ItemInteractionResultRedStoneOreBlock.useItemOn(ItemStack stack, BlockState state, Level level, BlockPos pos, Player player, InteractionHand hand, BlockHitResult hitResult) protected ItemInteractionResultRespawnAnchorBlock.useItemOn(ItemStack stack, BlockState state, Level level, BlockPos pos, Player player, InteractionHand hand, BlockHitResult hitResult) protected ItemInteractionResultSignBlock.useItemOn(ItemStack stack, BlockState state, Level level, BlockPos pos, Player player, InteractionHand hand, BlockHitResult hitResult) protected ItemInteractionResultSweetBerryBushBlock.useItemOn(ItemStack stack, BlockState state, Level level, BlockPos pos, Player player, InteractionHand hand, BlockHitResult hitResult) protected ItemInteractionResultTntBlock.useItemOn(ItemStack stack, BlockState state, Level level, BlockPos pos, Player player, InteractionHand hand, BlockHitResult hitResult) VaultBlock.useItemOn(ItemStack p_324161_, BlockState p_323816_, Level p_324403_, BlockPos p_324623_, Player p_324219_, InteractionHand p_324416_, BlockHitResult p_324261_) protected ItemInteractionResultWallHangingSignBlock.useItemOn(ItemStack stack, BlockState state, Level level, BlockPos pos, Player player, InteractionHand hand, BlockHitResult hitResult) protected InteractionResultAbstractFurnaceBlock.useWithoutItem(BlockState state, Level level, BlockPos pos, Player player, BlockHitResult hitResult) protected InteractionResultAnvilBlock.useWithoutItem(BlockState state, Level level, BlockPos pos, Player player, BlockHitResult hitResult) protected InteractionResultBarrelBlock.useWithoutItem(BlockState state, Level level, BlockPos pos, Player player, BlockHitResult hitResult) protected InteractionResultBeaconBlock.useWithoutItem(BlockState state, Level level, BlockPos pos, Player player, BlockHitResult hitResult) protected InteractionResultBedBlock.useWithoutItem(BlockState state, Level level, BlockPos pos, Player player, BlockHitResult hitResult) protected InteractionResultBellBlock.useWithoutItem(BlockState state, Level level, BlockPos pos, Player player, BlockHitResult hitResult) protected InteractionResultBrewingStandBlock.useWithoutItem(BlockState state, Level level, BlockPos pos, Player player, BlockHitResult hitResult) protected InteractionResultButtonBlock.useWithoutItem(BlockState state, Level level, BlockPos pos, Player player, BlockHitResult hitResult) protected InteractionResultCakeBlock.useWithoutItem(BlockState state, Level level, BlockPos pos, Player player, BlockHitResult hitResult) protected InteractionResultCandleCakeBlock.useWithoutItem(BlockState state, Level level, BlockPos pos, Player player, BlockHitResult hitResult) protected InteractionResultCartographyTableBlock.useWithoutItem(BlockState state, Level level, BlockPos pos, Player player, BlockHitResult hitResult) protected InteractionResultCaveVinesBlock.useWithoutItem(BlockState p_152980_, Level p_152981_, BlockPos p_152982_, Player p_152983_, BlockHitResult p_152985_) protected InteractionResultCaveVinesPlantBlock.useWithoutItem(BlockState p_153021_, Level p_153022_, BlockPos p_153023_, Player p_153024_, BlockHitResult p_153026_) protected InteractionResultChestBlock.useWithoutItem(BlockState state, Level level, BlockPos pos, Player player, BlockHitResult hitResult) protected InteractionResultChiseledBookShelfBlock.useWithoutItem(BlockState state, Level level, BlockPos pos, Player player, BlockHitResult hitResult) protected InteractionResultCommandBlock.useWithoutItem(BlockState state, Level level, BlockPos pos, Player player, BlockHitResult hitResult) protected InteractionResultComparatorBlock.useWithoutItem(BlockState state, Level level, BlockPos pos, Player player, BlockHitResult hitResult) protected InteractionResultComposterBlock.useWithoutItem(BlockState state, Level level, BlockPos pos, Player player, BlockHitResult hitResult) protected InteractionResultCrafterBlock.useWithoutItem(BlockState state, Level level, BlockPos pos, Player player, BlockHitResult hitResult) protected InteractionResultCraftingTableBlock.useWithoutItem(BlockState state, Level level, BlockPos pos, Player player, BlockHitResult hitResult) protected InteractionResultDaylightDetectorBlock.useWithoutItem(BlockState state, Level level, BlockPos pos, Player player, BlockHitResult hitResult) protected InteractionResultDecoratedPotBlock.useWithoutItem(BlockState p_316866_, Level p_316544_, BlockPos p_316541_, Player p_316732_, BlockHitResult p_316860_) protected InteractionResultDispenserBlock.useWithoutItem(BlockState state, Level level, BlockPos pos, Player player, BlockHitResult hitResult) protected InteractionResultDoorBlock.useWithoutItem(BlockState state, Level level, BlockPos pos, Player player, BlockHitResult hitResult) protected InteractionResultDragonEggBlock.useWithoutItem(BlockState state, Level level, BlockPos pos, Player player, BlockHitResult hitResult) protected InteractionResultEnchantingTableBlock.useWithoutItem(BlockState state, Level level, BlockPos pos, Player player, BlockHitResult hitResult) protected InteractionResultEnderChestBlock.useWithoutItem(BlockState state, Level level, BlockPos pos, Player player, BlockHitResult hitResult) protected InteractionResultFenceBlock.useWithoutItem(BlockState state, Level level, BlockPos pos, Player player, BlockHitResult hitResult) protected InteractionResultFenceGateBlock.useWithoutItem(BlockState state, Level level, BlockPos pos, Player player, BlockHitResult hitResult) protected InteractionResultFletchingTableBlock.useWithoutItem(BlockState p_53501_, Level p_53502_, BlockPos p_53503_, Player p_53504_, BlockHitResult p_53506_) protected InteractionResultFlowerPotBlock.useWithoutItem(BlockState state, Level level, BlockPos pos, Player player, BlockHitResult hitResult) protected InteractionResultGrindstoneBlock.useWithoutItem(BlockState state, Level level, BlockPos pos, Player player, BlockHitResult hitResult) protected InteractionResultHopperBlock.useWithoutItem(BlockState state, Level level, BlockPos pos, Player player, BlockHitResult hitResult) protected InteractionResultJigsawBlock.useWithoutItem(BlockState state, Level level, BlockPos pos, Player player, BlockHitResult hitResult) protected InteractionResultJukeboxBlock.useWithoutItem(BlockState state, Level level, BlockPos pos, Player player, BlockHitResult hitResult) protected InteractionResultLecternBlock.useWithoutItem(BlockState state, Level level, BlockPos pos, Player player, BlockHitResult hitResult) protected InteractionResultLeverBlock.useWithoutItem(BlockState state, Level level, BlockPos pos, Player player, BlockHitResult hitResult) protected InteractionResultLightBlock.useWithoutItem(BlockState state, Level level, BlockPos pos, Player player, BlockHitResult hitResult) protected InteractionResultLoomBlock.useWithoutItem(BlockState state, Level level, BlockPos pos, Player player, BlockHitResult hitResult) protected InteractionResultNoteBlock.useWithoutItem(BlockState state, Level level, BlockPos pos, Player player, BlockHitResult hitResult) protected InteractionResultRedStoneWireBlock.useWithoutItem(BlockState state, Level level, BlockPos pos, Player player, BlockHitResult hitResult) protected InteractionResultRepeaterBlock.useWithoutItem(BlockState state, Level level, BlockPos pos, Player player, BlockHitResult hitResult) protected InteractionResultRespawnAnchorBlock.useWithoutItem(BlockState state, Level level, BlockPos pos, Player player, BlockHitResult hitResult) protected InteractionResultShulkerBoxBlock.useWithoutItem(BlockState state, Level level, BlockPos pos, Player player, BlockHitResult hitResult) protected InteractionResultSignBlock.useWithoutItem(BlockState state, Level level, BlockPos pos, Player player, BlockHitResult hitResult) protected InteractionResultSmithingTableBlock.useWithoutItem(BlockState state, Level level, BlockPos pos, Player player, BlockHitResult hitResult) protected InteractionResultStonecutterBlock.useWithoutItem(BlockState state, Level level, BlockPos pos, Player player, BlockHitResult hitResult) protected InteractionResultStructureBlock.useWithoutItem(BlockState state, Level level, BlockPos pos, Player player, BlockHitResult hitResult) protected InteractionResultSweetBerryBushBlock.useWithoutItem(BlockState state, Level level, BlockPos pos, Player player, BlockHitResult hitResult) protected InteractionResultTrapDoorBlock.useWithoutItem(BlockState state, Level level, BlockPos pos, Player player, BlockHitResult hitResult) -
Uses of BlockHitResult in net.minecraft.world.level.block.piston
Methods in net.minecraft.world.level.block.piston with parameters of type BlockHitResultModifier and TypeMethodDescriptionprotected InteractionResultMovingPistonBlock.useWithoutItem(BlockState state, Level level, BlockPos pos, Player player, BlockHitResult hitResult) -
Uses of BlockHitResult in net.minecraft.world.level.block.state
Methods in net.minecraft.world.level.block.state with parameters of type BlockHitResultModifier and TypeMethodDescriptionvoidBlockBehaviour.BlockStateBase.onProjectileHit(Level level, BlockState state, BlockHitResult hit, Projectile projectile) protected voidBlockBehaviour.onProjectileHit(Level level, BlockState state, BlockHitResult hit, Projectile projectile) BlockBehaviour.BlockStateBase.useItemOn(ItemStack stack, Level level, Player player, InteractionHand hand, BlockHitResult hitResult) protected ItemInteractionResultBlockBehaviour.useItemOn(ItemStack stack, BlockState state, Level level, BlockPos pos, Player player, InteractionHand hand, BlockHitResult hitResult) BlockBehaviour.BlockStateBase.useWithoutItem(Level level, Player player, BlockHitResult hitResult) protected InteractionResultBlockBehaviour.useWithoutItem(BlockState state, Level level, BlockPos pos, Player player, BlockHitResult hitResult) -
Uses of BlockHitResult in net.minecraft.world.phys
Methods in net.minecraft.world.phys that return BlockHitResultModifier and TypeMethodDescriptionstatic BlockHitResultstatic BlockHitResultCreates a new BlockRayTraceResult marked as a miss.BlockHitResult.withDirection(Direction newFace) Creates a new BlockRayTraceResult, with the clicked face replaced with the given oneBlockHitResult.withPosition(BlockPos pos) -
Uses of BlockHitResult in net.minecraft.world.phys.shapes
Methods in net.minecraft.world.phys.shapes that return BlockHitResultModifier and TypeMethodDescription -
Uses of BlockHitResult in net.neoforged.neoforge.client.event
Methods in net.neoforged.neoforge.client.event that return BlockHitResultModifier and TypeMethodDescriptionRenderHighlightEvent.Block.getTarget()Returns the block hit result.Constructors in net.neoforged.neoforge.client.event with parameters of type BlockHitResultModifierConstructorDescriptionBlock(LevelRenderer levelRenderer, Camera camera, BlockHitResult target, DeltaTracker deltaTracker, PoseStack poseStack, MultiBufferSource bufferSource) -
Uses of BlockHitResult in net.neoforged.neoforge.common
Methods in net.neoforged.neoforge.common with parameters of type BlockHitResultModifier and TypeMethodDescriptionCommonHooks.onRightClickBlock(Player player, InteractionHand hand, BlockPos pos, BlockHitResult hitVec) -
Uses of BlockHitResult in net.neoforged.neoforge.common.extensions
Methods in net.neoforged.neoforge.common.extensions with parameters of type BlockHitResultModifier and TypeMethodDescriptiondefault booleanIDispensibleContainerItemExtension.emptyContents(@Nullable Player player, Level level, BlockPos pos, @Nullable BlockHitResult hitResult, @Nullable ItemStack container) Empties the contents of the container and returns whether it was successful. -
Uses of BlockHitResult in net.neoforged.neoforge.event.entity.player
Fields in net.neoforged.neoforge.event.entity.player declared as BlockHitResultModifier and TypeFieldDescriptionprivate BlockHitResultPlayerInteractEvent.RightClickBlock.hitVecMethods in net.neoforged.neoforge.event.entity.player that return BlockHitResultConstructors in net.neoforged.neoforge.event.entity.player with parameters of type BlockHitResultModifierConstructorDescriptionRightClickBlock(Player player, InteractionHand hand, BlockPos pos, BlockHitResult hitVec)