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 pPlayer, InteractionHand pHand, BlockHitResult pResult) MultiPlayerGameMode.useItemOn(LocalPlayer pPlayer, InteractionHand pHand, BlockHitResult pResult) -
Uses of BlockHitResult in net.minecraft.gametest.framework
Methods in net.minecraft.gametest.framework with parameters of type BlockHitResultModifier and TypeMethodDescriptionvoidGameTestHelper.useBlock(BlockPos pPos, Player pPlayer, BlockHitResult pResult) -
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 pResult) 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 pHand, BlockHitResult pBlockHit, int pSequence) -
Uses of BlockHitResult in net.minecraft.server.level
Methods in net.minecraft.server.level with parameters of type BlockHitResultModifier and TypeMethodDescriptionDemoMode.useItemOn(ServerPlayer p_140747_, Level p_140748_, ItemStack p_140749_, InteractionHand p_140750_, BlockHitResult p_140751_) ServerPlayerGameMode.useItemOn(ServerPlayer pPlayer, Level pLevel, ItemStack pStack, InteractionHand pHand, BlockHitResult pHitResult) -
Uses of BlockHitResult in net.minecraft.world.entity.projectile
Methods in net.minecraft.world.entity.projectile that return types with arguments of type BlockHitResultModifier and TypeMethodDescriptionstatic com.mojang.datafixers.util.Either<BlockHitResult, Collection<EntityHitResult>> ProjectileUtil.getHitEntitiesAlong(Entity pEntity, AttackRange pAttackRange, Predicate<Entity> pPredicate, ClipContext.Block pClipContext) private static com.mojang.datafixers.util.Either<BlockHitResult, Collection<EntityHitResult>> ProjectileUtil.getHitEntitiesAlong(Entity pEntity, Vec3 pPos, Vec3 pStart, Predicate<Entity> pPredicate, Vec3 pEnd, float pHitboxMargin, ClipContext.Block pClipContext) Methods in net.minecraft.world.entity.projectile with parameters of type BlockHitResultModifier and TypeMethodDescriptionprotected voidFireworkRocketEntity.onHitBlock(BlockHitResult p_37069_) protected voidFishingHook.onHitBlock(BlockHitResult p_37142_) protected voidLlamaSpit.onHitBlock(BlockHitResult p_37239_) protected voidProjectile.onHitBlock(BlockHitResult pResult) protected voidShulkerBullet.onHitBlock(BlockHitResult p_37343_) -
Uses of BlockHitResult in net.minecraft.world.entity.projectile.arrow
Methods in net.minecraft.world.entity.projectile.arrow with parameters of type BlockHitResultModifier and TypeMethodDescriptionprotected voidAbstractArrow.hitBlockEnchantmentEffects(ServerLevel pLevel, BlockHitResult pHitResult, ItemStack pStack) protected voidThrownTrident.hitBlockEnchantmentEffects(ServerLevel p_478916_, BlockHitResult p_478335_, ItemStack p_478663_) protected voidAbstractArrow.onHitBlock(BlockHitResult p_481027_) private voidAbstractArrow.stepMoveAndHit(BlockHitResult pHitResult) -
Uses of BlockHitResult in net.minecraft.world.entity.projectile.hurtingprojectile
Methods in net.minecraft.world.entity.projectile.hurtingprojectile with parameters of type BlockHitResultModifier and TypeMethodDescriptionprotected voidSmallFireball.onHitBlock(BlockHitResult p_479052_) -
Uses of BlockHitResult in net.minecraft.world.entity.projectile.hurtingprojectile.windcharge
Methods in net.minecraft.world.entity.projectile.hurtingprojectile.windcharge with parameters of type BlockHitResultModifier and TypeMethodDescriptionprotected voidAbstractWindCharge.onHitBlock(BlockHitResult p_481136_) -
Uses of BlockHitResult in net.minecraft.world.entity.projectile.throwableitemprojectile
Methods in net.minecraft.world.entity.projectile.throwableitemprojectile with parameters of type BlockHitResultModifier and TypeMethodDescriptionprotected voidAbstractThrownPotion.onHitBlock(BlockHitResult p_480715_) -
Uses of BlockHitResult in net.minecraft.world.item
Methods in net.minecraft.world.item that return BlockHitResultModifier and TypeMethodDescriptionstatic BlockHitResultItem.getPlayerPOVHitResult(Level pLevel, Player pPlayer, ClipContext.Fluid pFluidMode) Methods in net.minecraft.world.item with parameters of type BlockHitResultModifier and TypeMethodDescriptionbooleanBucketItem.emptyContents(@Nullable LivingEntity p_394627_, Level p_150717_, BlockPos p_150718_, @Nullable BlockHitResult p_150719_) Deprecated.booleanBucketItem.emptyContents(@Nullable LivingEntity p_394627_, Level p_150717_, BlockPos p_150718_, @Nullable BlockHitResult p_150719_, @Nullable ItemStack container) booleanDispensibleContainerItem.emptyContents(@Nullable LivingEntity pEntity, Level pLevel, BlockPos pPos, @Nullable BlockHitResult pHitResult) Deprecated.booleanSolidBucketItem.emptyContents(@Nullable LivingEntity p_393886_, Level p_151193_, BlockPos p_151194_, @Nullable BlockHitResult p_151195_) private voidBrushItem.spawnDustParticles(Level pLevel, BlockHitResult pHitResult, BlockState pState, Vec3 pPos, HumanoidArm pArm) -
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 pPlayer, InteractionHand pHand, ItemStack pItemStack, BlockHitResult pHitResult) BlockPlaceContext(Level p_43638_, @Nullable Player p_43639_, InteractionHand p_43640_, ItemStack p_43641_, BlockHitResult p_43642_) UseOnContext(Player pPlayer, InteractionHand pHand, BlockHitResult pHitResult) UseOnContext(Level pLevel, @Nullable Player pPlayer, InteractionHand pHand, ItemStack pItemStack, BlockHitResult pHitResult) -
Uses of BlockHitResult in net.minecraft.world.level
Methods in net.minecraft.world.level that return BlockHitResultModifier and TypeMethodDescriptiondefault BlockHitResultBlockGetter.clip(ClipContext pContext) Checks if there's block betweenfromandtoof context.default BlockHitResultCollisionGetter.clipIncludingBorder(ClipContext pClipContext) default @Nullable BlockHitResultBlockGetter.clipWithInteractionOverride(Vec3 pStartVec, Vec3 pEndVec, BlockPos pPos, VoxelShape pShape, BlockState pState) default BlockHitResultBlockGetter.isBlockInLine(ClipBlockStateContext pContext) -
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 pHit) default OptionalIntSelectableSlotContainer.getHitSlot(BlockHitResult pHitResult, Direction pDirection) private static intTargetBlock.getRedstoneStrength(BlockHitResult pHit, Vec3 pHitLocation) SelectableSlotContainer.getRelativeHitCoordinatesForBlockFace(BlockHitResult pHitResult, Direction pDirection) private booleanWallHangingSignBlock.isHittingEditableSide(BlockHitResult pHitResult, BlockState pState) booleanBellBlock.onHit(Level pLevel, BlockState pState, BlockHitResult pResult, @Nullable Player pPlayer, boolean pCanRingBell) protected voidAbstractCandleBlock.onProjectileHit(Level p_151905_, BlockState p_151906_, BlockHitResult p_151907_, Projectile p_151908_) protected voidAmethystBlock.onProjectileHit(Level p_152001_, BlockState p_152002_, BlockHitResult p_152003_, Projectile p_152004_) protected voidBellBlock.onProjectileHit(Level pLevel, BlockState pState, BlockHitResult pHit, Projectile pProjectile) protected voidBigDripleafBlock.onProjectileHit(Level p_152228_, BlockState p_152229_, BlockHitResult p_152230_, Projectile p_152231_) protected voidCampfireBlock.onProjectileHit(Level pLevel, BlockState pState, BlockHitResult pHit, Projectile pProjectile) protected voidChorusFlowerBlock.onProjectileHit(Level pLevel, BlockState pState, BlockHitResult pHit, Projectile pProjectile) protected voidDecoratedPotBlock.onProjectileHit(Level p_306322_, BlockState p_306005_, BlockHitResult p_306105_, Projectile p_305851_) protected voidPointedDripstoneBlock.onProjectileHit(Level p_154042_, BlockState p_154043_, BlockHitResult p_154044_, Projectile p_154045_) protected voidTargetBlock.onProjectileHit(Level pLevel, BlockState pState, BlockHitResult pHit, Projectile pProjectile) protected voidTntBlock.onProjectileHit(Level pLevel, BlockState pState, BlockHitResult pHit, Projectile pProjectile) private booleanCeilingHangingSignBlock.shouldTryToChainAnotherHangingSign(Player pPlayer, BlockHitResult pHitResult, SignBlockEntity pSign, ItemStack pStack) private booleanWallHangingSignBlock.shouldTryToChainAnotherHangingSign(BlockState pState, Player pPlayer, BlockHitResult pHitResult, SignBlockEntity pSign, ItemStack pStack) private static intTargetBlock.updateRedstoneOutput(LevelAccessor pLevel, BlockState pState, BlockHitResult pHit, Entity pProjectile) protected InteractionResultAbstractCauldronBlock.useItemOn(ItemStack p_316791_, BlockState p_316287_, Level p_316530_, BlockPos p_316585_, Player p_316671_, InteractionHand p_316186_, BlockHitResult p_316294_) protected InteractionResultBeehiveBlock.useItemOn(ItemStack p_316844_, BlockState p_316365_, Level p_316306_, BlockPos p_316497_, Player p_316824_, InteractionHand p_316436_, BlockHitResult p_316125_) protected InteractionResultCakeBlock.useItemOn(ItemStack p_316238_, BlockState p_316837_, Level p_316766_, BlockPos p_316227_, Player p_316853_, InteractionHand p_316422_, BlockHitResult p_316869_) protected InteractionResultCampfireBlock.useItemOn(ItemStack p_316347_, BlockState p_51274_, Level p_51275_, BlockPos p_51276_, Player p_51277_, InteractionHand p_51278_, BlockHitResult p_51279_) protected InteractionResultCandleBlock.useItemOn(ItemStack p_316279_, BlockState p_316163_, Level p_316881_, BlockPos p_316480_, Player p_316191_, InteractionHand p_316669_, BlockHitResult p_316641_) protected InteractionResultCandleCakeBlock.useItemOn(ItemStack p_316571_, BlockState p_316514_, Level p_316171_, BlockPos p_316112_, Player p_316172_, InteractionHand p_316257_, BlockHitResult p_316286_) protected InteractionResultCeilingHangingSignBlock.useItemOn(ItemStack p_316602_, BlockState p_316839_, Level p_316805_, BlockPos p_316894_, Player p_316202_, InteractionHand p_316538_, BlockHitResult p_316895_) protected InteractionResultChiseledBookShelfBlock.useItemOn(ItemStack p_316457_, BlockState p_316201_, Level p_316747_, BlockPos p_316462_, Player p_316228_, InteractionHand p_316721_, BlockHitResult p_316464_) protected InteractionResultComposterBlock.useItemOn(ItemStack p_316332_, BlockState p_316118_, Level p_316624_, BlockPos p_316660_, Player p_316715_, InteractionHand p_316472_, BlockHitResult p_316606_) protected InteractionResultCopperGolemStatueBlock.useItemOn(ItemStack p_435502_, BlockState p_435541_, Level p_432823_, BlockPos p_433231_, Player p_433625_, InteractionHand p_434602_, BlockHitResult p_432789_) protected InteractionResultDecoratedPotBlock.useItemOn(ItemStack p_316569_, BlockState p_316562_, Level p_316177_, BlockPos p_316898_, Player p_316632_, InteractionHand p_316424_, BlockHitResult p_316345_) protected InteractionResultFlowerPotBlock.useItemOn(ItemStack p_316610_, BlockState p_316240_, Level p_316456_, BlockPos p_316502_, Player p_316491_, InteractionHand p_316444_, BlockHitResult p_316826_) protected InteractionResultJukeboxBlock.useItemOn(ItemStack p_350348_, BlockState p_351033_, Level p_350995_, BlockPos p_350838_, Player p_350684_, InteractionHand p_350461_, BlockHitResult p_351025_) protected InteractionResultLecternBlock.useItemOn(ItemStack p_316392_, BlockState p_316600_, Level p_316640_, BlockPos p_316673_, Player p_316670_, InteractionHand p_316384_, BlockHitResult p_316419_) protected InteractionResultNoteBlock.useItemOn(ItemStack p_316716_, BlockState p_316688_, Level p_316672_, BlockPos p_316355_, Player p_316822_, InteractionHand p_316505_, BlockHitResult p_316667_) protected InteractionResultPumpkinBlock.useItemOn(ItemStack p_316383_, BlockState p_316676_, Level p_316272_, BlockPos p_316484_, Player p_316367_, InteractionHand p_316216_, BlockHitResult p_316827_) protected InteractionResultRedStoneOreBlock.useItemOn(ItemStack p_316235_, BlockState p_316208_, Level p_316432_, BlockPos p_316592_, Player p_316564_, InteractionHand p_316389_, BlockHitResult p_316390_) protected InteractionResultRespawnAnchorBlock.useItemOn(ItemStack p_316531_, BlockState p_316665_, Level p_316165_, BlockPos p_316402_, Player p_316556_, InteractionHand p_316586_, BlockHitResult p_316326_) protected InteractionResultShelfBlock.useItemOn(ItemStack p_433583_, BlockState p_433454_, Level p_435671_, BlockPos p_433939_, Player p_433327_, InteractionHand p_432907_, BlockHitResult p_433590_) protected InteractionResultSignBlock.useItemOn(ItemStack p_316116_, BlockState p_316899_, Level p_316692_, BlockPos p_316578_, Player p_316244_, InteractionHand p_316196_, BlockHitResult p_316744_) protected InteractionResultSweetBerryBushBlock.useItemOn(ItemStack p_316636_, BlockState p_316295_, Level p_316812_, BlockPos p_316380_, Player p_316731_, InteractionHand p_316188_, BlockHitResult p_316626_) protected InteractionResultTntBlock.useItemOn(ItemStack p_316149_, BlockState p_316217_, Level p_316520_, BlockPos p_316601_, Player p_316770_, InteractionHand p_316393_, BlockHitResult p_316532_) VaultBlock.useItemOn(ItemStack p_324161_, BlockState p_323816_, Level p_324403_, BlockPos p_324623_, Player p_324219_, InteractionHand p_324416_, BlockHitResult p_324261_) protected InteractionResultWallHangingSignBlock.useItemOn(ItemStack p_316420_, BlockState p_316885_, Level p_316114_, BlockPos p_316297_, Player p_316609_, InteractionHand p_316187_, BlockHitResult p_316223_) protected InteractionResultWeatheringCopperGolemStatueBlock.useItemOn(ItemStack p_433666_, BlockState p_433930_, Level p_435157_, BlockPos p_435733_, Player p_434811_, InteractionHand p_434251_, BlockHitResult p_433254_) protected InteractionResultAbstractFurnaceBlock.useWithoutItem(BlockState p_48706_, Level p_48707_, BlockPos p_48708_, Player p_48709_, BlockHitResult p_48711_) protected InteractionResultAnvilBlock.useWithoutItem(BlockState p_48804_, Level p_48805_, BlockPos p_48806_, Player p_48807_, BlockHitResult p_48809_) protected InteractionResultBarrelBlock.useWithoutItem(BlockState p_49069_, Level p_49070_, BlockPos p_49071_, Player p_49072_, BlockHitResult p_49074_) protected InteractionResultBeaconBlock.useWithoutItem(BlockState p_49432_, Level p_49433_, BlockPos p_49434_, Player p_49435_, BlockHitResult p_49437_) protected InteractionResultBedBlock.useWithoutItem(BlockState p_49515_, Level p_49516_, BlockPos p_49517_, Player p_49518_, BlockHitResult p_49520_) protected InteractionResultBellBlock.useWithoutItem(BlockState p_49722_, Level p_49723_, BlockPos p_49724_, Player p_49725_, BlockHitResult p_49727_) protected InteractionResultBrewingStandBlock.useWithoutItem(BlockState p_50930_, Level p_50931_, BlockPos p_50932_, Player p_50933_, BlockHitResult p_50935_) protected InteractionResultButtonBlock.useWithoutItem(BlockState p_316833_, Level p_316124_, BlockPos p_316184_, Player p_316845_, BlockHitResult p_316247_) protected InteractionResultCakeBlock.useWithoutItem(BlockState p_316481_, Level p_316406_, BlockPos p_316218_, Player p_316212_, BlockHitResult p_316525_) protected InteractionResultCandleCakeBlock.useWithoutItem(BlockState p_316519_, Level p_316226_, BlockPos p_316122_, Player p_316438_, BlockHitResult p_316849_) protected InteractionResultCartographyTableBlock.useWithoutItem(BlockState p_51357_, Level p_51358_, BlockPos p_51359_, Player p_51360_, BlockHitResult p_51362_) 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 p_51531_, Level p_51532_, BlockPos p_51533_, Player p_51534_, BlockHitResult p_51536_) protected InteractionResultChiseledBookShelfBlock.useWithoutItem(BlockState p_316403_, Level p_316842_, BlockPos p_316539_, Player p_316349_, BlockHitResult p_316278_) protected InteractionResultCommandBlock.useWithoutItem(BlockState p_51825_, Level p_51826_, BlockPos p_51827_, Player p_51828_, BlockHitResult p_51830_) protected InteractionResultComparatorBlock.useWithoutItem(BlockState p_51880_, Level p_51881_, BlockPos p_51882_, Player p_51883_, BlockHitResult p_51885_) protected InteractionResultComposterBlock.useWithoutItem(BlockState p_316361_, Level p_316271_, BlockPos p_316647_, Player p_316633_, BlockHitResult p_316555_) protected InteractionResultCrafterBlock.useWithoutItem(BlockState p_307454_, Level p_307255_, BlockPos p_307303_, Player p_307670_, BlockHitResult p_307546_) protected InteractionResultCraftingTableBlock.useWithoutItem(BlockState p_52233_, Level p_52234_, BlockPos p_52235_, Player p_52236_, BlockHitResult p_52238_) protected InteractionResultDaylightDetectorBlock.useWithoutItem(BlockState p_52391_, Level p_52392_, BlockPos p_52393_, Player p_52394_, BlockHitResult p_52396_) protected InteractionResultDecoratedPotBlock.useWithoutItem(BlockState p_316866_, Level p_316544_, BlockPos p_316541_, Player p_316732_, BlockHitResult p_316860_) protected InteractionResultDispenserBlock.useWithoutItem(BlockState p_52693_, Level p_52694_, BlockPos p_52695_, Player p_52696_, BlockHitResult p_52698_) protected InteractionResultDoorBlock.useWithoutItem(BlockState p_52769_, Level p_52770_, BlockPos p_52771_, Player p_52772_, BlockHitResult p_52774_) protected InteractionResultDragonEggBlock.useWithoutItem(BlockState p_52923_, Level p_52924_, BlockPos p_52925_, Player p_52926_, BlockHitResult p_52928_) protected InteractionResultEnchantingTableBlock.useWithoutItem(BlockState p_341077_, Level p_341293_, BlockPos p_341394_, Player p_340990_, BlockHitResult p_341300_) protected InteractionResultEnderChestBlock.useWithoutItem(BlockState p_53137_, Level p_53138_, BlockPos p_53139_, Player p_53140_, BlockHitResult p_53142_) protected InteractionResultFenceBlock.useWithoutItem(BlockState p_316111_, Level p_316725_, BlockPos p_316646_, Player p_316453_, BlockHitResult p_316769_) protected InteractionResultFenceGateBlock.useWithoutItem(BlockState p_53365_, Level p_53366_, BlockPos p_53367_, Player p_53368_, BlockHitResult p_53370_) protected InteractionResultFlowerPotBlock.useWithoutItem(BlockState p_316363_, Level p_316655_, BlockPos p_316654_, Player p_316338_, BlockHitResult p_316518_) protected InteractionResultGrindstoneBlock.useWithoutItem(BlockState p_53821_, Level p_53822_, BlockPos p_53823_, Player p_53824_, BlockHitResult p_53826_) protected InteractionResultHopperBlock.useWithoutItem(BlockState p_54071_, Level p_54072_, BlockPos p_54073_, Player p_54074_, BlockHitResult p_54076_) protected InteractionResultJigsawBlock.useWithoutItem(BlockState p_54231_, Level p_54232_, BlockPos p_54233_, Player p_54234_, BlockHitResult p_54236_) protected InteractionResultJukeboxBlock.useWithoutItem(BlockState p_54281_, Level p_54282_, BlockPos p_54283_, Player p_54284_, BlockHitResult p_54286_) protected InteractionResultLecternBlock.useWithoutItem(BlockState p_316164_, Level p_316515_, BlockPos p_316598_, Player p_316584_, BlockHitResult p_316197_) protected InteractionResultLeverBlock.useWithoutItem(BlockState p_54640_, Level p_54641_, BlockPos p_54642_, Player p_54643_, BlockHitResult p_54645_) protected InteractionResultLightBlock.useWithoutItem(BlockState p_153673_, Level p_153674_, BlockPos p_153675_, Player p_153676_, BlockHitResult p_153678_) protected InteractionResultLoomBlock.useWithoutItem(BlockState p_54787_, Level p_54788_, BlockPos p_54789_, Player p_54790_, BlockHitResult p_54792_) protected InteractionResultNoteBlock.useWithoutItem(BlockState p_316441_, Level p_316774_, BlockPos p_316344_, Player p_316884_, BlockHitResult p_316631_) protected InteractionResultRedStoneWireBlock.useWithoutItem(BlockState p_55554_, Level p_55555_, BlockPos p_55556_, Player p_55557_, BlockHitResult p_55559_) protected InteractionResultRepeaterBlock.useWithoutItem(BlockState p_55809_, Level p_55810_, BlockPos p_55811_, Player p_55812_, BlockHitResult p_55814_) protected InteractionResultRespawnAnchorBlock.useWithoutItem(BlockState p_316377_, Level p_316150_, BlockPos p_316161_, Player p_316889_, BlockHitResult p_316358_) protected InteractionResultShulkerBoxBlock.useWithoutItem(BlockState p_56227_, Level p_56228_, BlockPos p_56229_, Player p_56230_, BlockHitResult p_56232_) protected InteractionResultSignBlock.useWithoutItem(BlockState p_316779_, Level p_316615_, BlockPos p_316127_, Player p_316173_, BlockHitResult p_316850_) protected InteractionResultSmithingTableBlock.useWithoutItem(BlockState p_56428_, Level p_56429_, BlockPos p_56430_, Player p_56431_, BlockHitResult p_56433_) protected InteractionResultStonecutterBlock.useWithoutItem(BlockState p_57083_, Level p_57084_, BlockPos p_57085_, Player p_57086_, BlockHitResult p_57088_) protected InteractionResultStructureBlock.useWithoutItem(BlockState p_57128_, Level p_57129_, BlockPos p_57130_, Player p_57131_, BlockHitResult p_57133_) protected InteractionResultSweetBerryBushBlock.useWithoutItem(BlockState p_316134_, Level p_316429_, BlockPos p_316748_, Player p_316431_, BlockHitResult p_316474_) protected InteractionResultTestBlock.useWithoutItem(BlockState p_397020_, Level p_397230_, BlockPos p_397100_, Player p_397362_, BlockHitResult p_397202_) protected InteractionResultTestInstanceBlock.useWithoutItem(BlockState p_397015_, Level p_397062_, BlockPos p_397232_, Player p_397809_, BlockHitResult p_397307_) protected InteractionResultTrapDoorBlock.useWithoutItem(BlockState p_57540_, Level p_57541_, BlockPos p_57542_, Player p_57543_, BlockHitResult p_57545_) -
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 p_60070_, Level p_60071_, BlockPos p_60072_, Player p_60073_, BlockHitResult p_60075_) -
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 pLevel, BlockState pState, BlockHitResult pHit, Projectile pProjectile) protected voidBlockBehaviour.onProjectileHit(Level pLevel, BlockState pState, BlockHitResult pHit, Projectile pProjectile) BlockBehaviour.BlockStateBase.useItemOn(ItemStack pStack, Level pLevel, Player pPlayer, InteractionHand pHand, BlockHitResult pHitResult) protected InteractionResultBlockBehaviour.useItemOn(ItemStack pStack, BlockState pState, Level pLevel, BlockPos pPos, Player pPlayer, InteractionHand pHand, BlockHitResult pHitResult) BlockBehaviour.BlockStateBase.useWithoutItem(Level pLevel, Player pPlayer, BlockHitResult pHitResult) protected InteractionResultBlockBehaviour.useWithoutItem(BlockState pState, Level pLevel, BlockPos pPos, Player pPlayer, BlockHitResult pHitResult) -
Uses of BlockHitResult in net.minecraft.world.phys
Methods in net.minecraft.world.phys that return BlockHitResultModifier and TypeMethodDescriptionstatic @Nullable BlockHitResultBlockHitResult.hitBorder()static BlockHitResultCreates a new BlockRayTraceResult marked as a miss.BlockHitResult.withDirection(Direction pNewFace) Creates a new BlockRayTraceResult, with the clicked face replaced with the given oneBlockHitResult.withPosition(BlockPos pPos) -
Uses of BlockHitResult in net.minecraft.world.phys.shapes
Methods in net.minecraft.world.phys.shapes that return BlockHitResult -
Uses of BlockHitResult in net.neoforged.neoforge.client.event
Fields in net.neoforged.neoforge.client.event declared as BlockHitResultModifier and TypeFieldDescriptionprivate final BlockHitResultExtractBlockOutlineRenderStateEvent.hitResultMethods in net.neoforged.neoforge.client.event that return BlockHitResultModifier and TypeMethodDescriptionExtractBlockOutlineRenderStateEvent.getHitResult()Returns theBlockHitResultholding the exact position the crosshair points at.Constructors in net.neoforged.neoforge.client.event with parameters of type BlockHitResultModifierConstructorDescriptionExtractBlockOutlineRenderStateEvent(LevelRenderer levelRenderer, ClientLevel level, BlockPos pos, BlockState state, BlockHitResult hitResult, CollisionContext collisionContext, boolean inTranslucentPass, boolean highContrast, Camera camera, LevelRenderState levelRenderState) -
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 LivingEntity entity, 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)