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 blockHit) MultiPlayerGameMode.useItemOn(LocalPlayer player, InteractionHand hand, BlockHitResult blockHit) -
Uses of BlockHitResult in net.minecraft.gametest.framework
Methods in net.minecraft.gametest.framework with parameters of type BlockHitResultModifier and TypeMethodDescriptionvoidGameTestHelper.useBlock(BlockPos relativePos, Player player, BlockHitResult hitResult) -
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 blockHit) 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 itemStack, InteractionHand hand, BlockHitResult hitResult) ServerPlayerGameMode.useItemOn(ServerPlayer player, Level level, ItemStack itemStack, InteractionHand hand, BlockHitResult hitResult) -
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 attacker, AttackRange attackRange, Predicate<Entity> matching, ClipContext.Block blockClipType) private static com.mojang.datafixers.util.Either<BlockHitResult, Collection<EntityHitResult>> ProjectileUtil.getHitEntitiesAlong(Entity source, Vec3 origin, Vec3 from, Predicate<Entity> matching, Vec3 to, float entityMargin, ClipContext.Block clipType) Methods in net.minecraft.world.entity.projectile with parameters of type BlockHitResultModifier and TypeMethodDescriptionprotected voidFireworkRocketEntity.onHitBlock(BlockHitResult hitResult) protected voidFishingHook.onHitBlock(BlockHitResult hitResult) protected voidLlamaSpit.onHitBlock(BlockHitResult hitResult) protected voidProjectile.onHitBlock(BlockHitResult hitResult) protected voidShulkerBullet.onHitBlock(BlockHitResult hitResult) -
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 serverLevel, BlockHitResult hitResult, ItemStack weapon) protected voidThrownTrident.hitBlockEnchantmentEffects(ServerLevel level, BlockHitResult hitResult, ItemStack weapon) protected voidAbstractArrow.onHitBlock(BlockHitResult hitResult) private voidAbstractArrow.stepMoveAndHit(BlockHitResult blockHitResult) -
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 hitResult) -
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 hitResult) -
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 hitResult) -
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 fluid) Methods in net.minecraft.world.item with parameters of type BlockHitResultModifier and TypeMethodDescriptionbooleanBucketItem.emptyContents(@Nullable LivingEntity user, Level level, BlockPos pos, @Nullable BlockHitResult hitResult) Deprecated.booleanBucketItem.emptyContents(@Nullable LivingEntity user, Level level, BlockPos pos, @Nullable BlockHitResult hitResult, @Nullable ItemStack containerItem) booleanDispensibleContainerItem.emptyContents(@Nullable LivingEntity user, Level level, BlockPos pos, @Nullable BlockHitResult hitResult) Deprecated.booleanSolidBucketItem.emptyContents(@Nullable LivingEntity user, Level level, BlockPos pos, @Nullable BlockHitResult hitResult) private voidBrushItem.spawnDustParticles(Level level, BlockHitResult hitResult, BlockState state, Vec3 viewVector, HumanoidArm brushingArm) -
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 itemInHand, BlockHitResult hitResult) BlockPlaceContext(Level level, @Nullable Player player, InteractionHand hand, ItemStack itemStackInHand, BlockHitResult hitResult) UseOnContext(Player player, InteractionHand hand, BlockHitResult hitResult) UseOnContext(Level level, @Nullable 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 c) Checks if there's block betweenfromandtoof context.default BlockHitResultCollisionGetter.clipIncludingBorder(ClipContext c) default @Nullable BlockHitResultBlockGetter.clipWithInteractionOverride(Vec3 from, Vec3 to, BlockPos pos, VoxelShape blockShape, BlockState blockState) default BlockHitResultBlockGetter.isBlockInLine(ClipBlockStateContext c) -
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 hitResult) default OptionalIntSelectableSlotContainer.getHitSlot(BlockHitResult hitResult, Direction blockFacing) private static intTargetBlock.getRedstoneStrength(BlockHitResult hitResult, Vec3 hitLocation) SelectableSlotContainer.getRelativeHitCoordinatesForBlockFace(BlockHitResult hitResult, Direction blockFacing) private booleanWallHangingSignBlock.isHittingEditableSide(BlockHitResult hitResult, BlockState state) booleanBellBlock.onHit(Level level, BlockState state, BlockHitResult hitResult, @Nullable Player player, boolean requireHitFromCorrectSide) protected voidAbstractCandleBlock.onProjectileHit(Level level, BlockState state, BlockHitResult blockHit, Projectile projectile) protected voidAmethystBlock.onProjectileHit(Level level, BlockState state, BlockHitResult hitResult, Projectile projectile) protected voidBellBlock.onProjectileHit(Level level, BlockState state, BlockHitResult hitResult, Projectile projectile) protected voidBigDripleafBlock.onProjectileHit(Level level, BlockState state, BlockHitResult blockHit, Projectile projectile) protected voidCampfireBlock.onProjectileHit(Level level, BlockState state, BlockHitResult blockHit, Projectile projectile) protected voidChorusFlowerBlock.onProjectileHit(Level level, BlockState state, BlockHitResult blockHit, Projectile projectile) protected voidDecoratedPotBlock.onProjectileHit(Level level, BlockState state, BlockHitResult blockHit, Projectile projectile) protected voidPointedDripstoneBlock.onProjectileHit(Level level, BlockState state, BlockHitResult blockHit, Projectile projectile) protected voidTargetBlock.onProjectileHit(Level level, BlockState state, BlockHitResult hitResult, Projectile projectile) protected voidTntBlock.onProjectileHit(Level level, BlockState state, BlockHitResult blockHit, Projectile projectile) private booleanCeilingHangingSignBlock.shouldTryToChainAnotherHangingSign(Player player, BlockHitResult hitResult, SignBlockEntity signEntity, ItemStack itemStack) private booleanWallHangingSignBlock.shouldTryToChainAnotherHangingSign(BlockState state, Player player, BlockHitResult hitResult, SignBlockEntity signEntity, ItemStack itemStack) private static intTargetBlock.updateRedstoneOutput(LevelAccessor level, BlockState state, BlockHitResult hitResult, Entity entity) protected InteractionResultAbstractCauldronBlock.useItemOn(ItemStack itemStack, BlockState state, Level level, BlockPos pos, Player player, InteractionHand hand, BlockHitResult hitResult) protected InteractionResultBeehiveBlock.useItemOn(ItemStack itemStack, BlockState state, Level level, BlockPos pos, Player player, InteractionHand hand, BlockHitResult hitResult) protected InteractionResultCakeBlock.useItemOn(ItemStack itemStack, BlockState state, Level level, BlockPos pos, Player player, InteractionHand hand, BlockHitResult hitResult) protected InteractionResultCampfireBlock.useItemOn(ItemStack itemStack, BlockState state, Level level, BlockPos pos, Player player, InteractionHand hand, BlockHitResult hitResult) protected InteractionResultCandleBlock.useItemOn(ItemStack itemStack, BlockState state, Level level, BlockPos pos, Player player, InteractionHand hand, BlockHitResult hitResult) protected InteractionResultCandleCakeBlock.useItemOn(ItemStack itemStack, BlockState state, Level level, BlockPos pos, Player player, InteractionHand hand, BlockHitResult hitResult) protected InteractionResultCeilingHangingSignBlock.useItemOn(ItemStack itemStack, BlockState state, Level level, BlockPos pos, Player player, InteractionHand hand, BlockHitResult hitResult) protected InteractionResultChiseledBookShelfBlock.useItemOn(ItemStack itemStack, BlockState state, Level level, BlockPos pos, Player player, InteractionHand hand, BlockHitResult hitResult) protected InteractionResultComposterBlock.useItemOn(ItemStack itemStack, BlockState state, Level level, BlockPos pos, Player player, InteractionHand hand, BlockHitResult hitResult) protected InteractionResultCopperGolemStatueBlock.useItemOn(ItemStack itemStack, BlockState state, Level level, BlockPos pos, Player player, InteractionHand hand, BlockHitResult hitResult) protected InteractionResultDecoratedPotBlock.useItemOn(ItemStack itemStack, BlockState state, Level level, BlockPos pos, Player player, InteractionHand hand, BlockHitResult hitResult) protected InteractionResultFlowerPotBlock.useItemOn(ItemStack itemStack, BlockState state, Level level, BlockPos pos, Player player, InteractionHand hand, BlockHitResult hitResult) protected InteractionResultJukeboxBlock.useItemOn(ItemStack itemStack, BlockState state, Level level, BlockPos pos, Player player, InteractionHand hand, BlockHitResult hitResult) protected InteractionResultLecternBlock.useItemOn(ItemStack itemStack, BlockState state, Level level, BlockPos pos, Player player, InteractionHand hand, BlockHitResult hitResult) protected InteractionResultNoteBlock.useItemOn(ItemStack itemStack, BlockState state, Level level, BlockPos pos, Player player, InteractionHand hand, BlockHitResult hitResult) protected InteractionResultPumpkinBlock.useItemOn(ItemStack itemStack, BlockState state, Level level, BlockPos pos, Player player, InteractionHand hand, BlockHitResult hitResult) protected InteractionResultRedStoneOreBlock.useItemOn(ItemStack itemStack, BlockState state, Level level, BlockPos pos, Player player, InteractionHand hand, BlockHitResult hitResult) protected InteractionResultRespawnAnchorBlock.useItemOn(ItemStack itemStack, BlockState state, Level level, BlockPos pos, Player player, InteractionHand hand, BlockHitResult hitResult) protected InteractionResultShelfBlock.useItemOn(ItemStack itemStack, BlockState state, Level level, BlockPos pos, Player player, InteractionHand hand, BlockHitResult hitResult) protected InteractionResultSignBlock.useItemOn(ItemStack itemStack, BlockState state, Level level, BlockPos pos, Player player, InteractionHand hand, BlockHitResult hitResult) protected InteractionResultSweetBerryBushBlock.useItemOn(ItemStack itemStack, BlockState state, Level level, BlockPos pos, Player player, InteractionHand hand, BlockHitResult hitResult) protected InteractionResultTntBlock.useItemOn(ItemStack itemStack, BlockState state, Level level, BlockPos pos, Player player, InteractionHand hand, BlockHitResult hitResult) VaultBlock.useItemOn(ItemStack itemStack, BlockState state, Level level, BlockPos pos, Player player, InteractionHand hand, BlockHitResult hitResult) protected InteractionResultWallHangingSignBlock.useItemOn(ItemStack itemStack, BlockState state, Level level, BlockPos pos, Player player, InteractionHand hand, BlockHitResult hitResult) protected InteractionResultWeatheringCopperGolemStatueBlock.useItemOn(ItemStack itemStack, 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 state, Level level, BlockPos pos, Player player, BlockHitResult hitResult) protected InteractionResultCaveVinesPlantBlock.useWithoutItem(BlockState state, Level level, BlockPos pos, Player player, BlockHitResult hitResult) 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 state, Level level, BlockPos pos, Player player, BlockHitResult hitResult) 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 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 stateBefore, 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 InteractionResultTestBlock.useWithoutItem(BlockState state, Level level, BlockPos pos, Player player, BlockHitResult hitResult) protected InteractionResultTestInstanceBlock.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 blockHit, Projectile entity) protected voidBlockBehaviour.onProjectileHit(Level level, BlockState state, BlockHitResult blockHit, Projectile projectile) BlockBehaviour.BlockStateBase.useItemOn(ItemStack itemStack, Level level, Player player, InteractionHand hand, BlockHitResult hitResult) protected InteractionResultBlockBehaviour.useItemOn(ItemStack itemStack, 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 @Nullable BlockHitResultBlockHitResult.hitBorder()static BlockHitResultCreates a new BlockRayTraceResult marked as a miss.BlockHitResult.withDirection(Direction direction) Creates a new BlockRayTraceResult, with the clicked face replaced with the given oneBlockHitResult.withPosition(BlockPos blockPos) -
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)