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 InteractionResult
MultiPlayerGameMode.performUseItemOn
(LocalPlayer pPlayer, InteractionHand pHand, BlockHitResult pResult) MultiPlayerGameMode.useItemOn
(LocalPlayer pPlayer, InteractionHand pHand, BlockHitResult pResult) -
Uses of BlockHitResult in net.minecraft.client.particle
Methods in net.minecraft.client.particle with parameters of type BlockHitResultModifier and TypeMethodDescriptionvoid
ParticleEngine.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 TypeMethodDescriptionvoid
GameTestHelper.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 TypeMethodDescriptionvoid
FriendlyByteBuf.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 BlockHitResult
ServerboundUseItemOnPacket.blockHit
Methods 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 pPlayer, Level pLevel, ItemStack pStack, InteractionHand pHand, BlockHitResult pHitResult) 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 with parameters of type BlockHitResultModifier and TypeMethodDescriptionprotected void
AbstractArrow.hitBlockEnchantmentEffects
(ServerLevel pLevel, BlockHitResult pHitResult, ItemStack pStack) protected void
ThrownTrident.hitBlockEnchantmentEffects
(ServerLevel pLevel, BlockHitResult pHitResult, ItemStack pStack) protected void
AbstractArrow.onHitBlock
(BlockHitResult pResult) protected void
FireworkRocketEntity.onHitBlock
(BlockHitResult pResult) protected void
FishingHook.onHitBlock
(BlockHitResult pResult) protected void
LlamaSpit.onHitBlock
(BlockHitResult pResult) protected void
Projectile.onHitBlock
(BlockHitResult pResult) protected void
ShulkerBullet.onHitBlock
(BlockHitResult pResult) protected void
SmallFireball.onHitBlock
(BlockHitResult pResult) protected void
ThrownPotion.onHitBlock
(BlockHitResult pResult) -
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 void
AbstractWindCharge.onHitBlock
(BlockHitResult pResult) -
Uses of BlockHitResult in net.minecraft.world.item
Methods in net.minecraft.world.item that return BlockHitResultModifier and TypeMethodDescriptionstatic BlockHitResult
Item.getPlayerPOVHitResult
(Level pLevel, Player pPlayer, ClipContext.Fluid pFluidMode) Methods in net.minecraft.world.item with parameters of type BlockHitResultModifier and TypeMethodDescriptionboolean
BucketItem.emptyContents
(Player pPlayer, Level pLevel, BlockPos pPos, BlockHitResult pResult) Deprecated.boolean
BucketItem.emptyContents
(Player pPlayer, Level pLevel, BlockPos pPos, BlockHitResult pResult, ItemStack container) boolean
DispensibleContainerItem.emptyContents
(Player pPlayer, Level pLevel, BlockPos pPos, BlockHitResult pResult) Deprecated.boolean
SolidBucketItem.emptyContents
(Player pPlayer, Level pLevel, BlockPos pPos, BlockHitResult pResult) private void
BrushItem.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 pLevel, Player pPlayer, InteractionHand pHand, ItemStack pItemStack, BlockHitResult pHitResult) UseOnContext
(Player pPlayer, InteractionHand pHand, BlockHitResult pHitResult) UseOnContext
(Level pLevel, 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 BlockHitResult
BlockGetter.clip
(ClipContext pContext) Checks if there's block betweenfrom
andto
of context.default BlockHitResult
BlockGetter.clipWithInteractionOverride
(Vec3 pStartVec, Vec3 pEndVec, BlockPos pPos, VoxelShape pShape, BlockState pState) default BlockHitResult
BlockGetter.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 boolean
CandleCakeBlock.candleHit
(BlockHitResult pHit) private OptionalInt
ChiseledBookShelfBlock.getHitSlot
(BlockHitResult pHitReselt, BlockState pState) private static int
TargetBlock.getRedstoneStrength
(BlockHitResult pHit, Vec3 pHitLocation) ChiseledBookShelfBlock.getRelativeHitCoordinatesForBlockFace
(BlockHitResult pHitResult, Direction pFace) private boolean
WallHangingSignBlock.isHittingEditableSide
(BlockHitResult pHitResult, BlockState pState) boolean
BellBlock.onHit
(Level pLevel, BlockState pState, BlockHitResult pResult, Player pPlayer, boolean pCanRingBell) protected void
AbstractCandleBlock.onProjectileHit
(Level pLevel, BlockState pState, BlockHitResult pHit, Projectile pProjectile) protected void
AmethystBlock.onProjectileHit
(Level p_152001_, BlockState p_152002_, BlockHitResult p_152003_, Projectile p_152004_) protected void
BellBlock.onProjectileHit
(Level pLevel, BlockState pState, BlockHitResult pHit, Projectile pProjectile) protected void
BigDripleafBlock.onProjectileHit
(Level pLevel, BlockState pState, BlockHitResult pHit, Projectile pProjectile) protected void
CampfireBlock.onProjectileHit
(Level pLevel, BlockState pState, BlockHitResult pHit, Projectile pProjectile) protected void
ChorusFlowerBlock.onProjectileHit
(Level pLevel, BlockState pState, BlockHitResult pHit, Projectile pProjectile) protected void
DecoratedPotBlock.onProjectileHit
(Level p_306322_, BlockState p_306005_, BlockHitResult p_306105_, Projectile p_305851_) protected void
PointedDripstoneBlock.onProjectileHit
(Level pLevel, BlockState pState, BlockHitResult pHit, Projectile pProjectile) protected void
TargetBlock.onProjectileHit
(Level pLevel, BlockState pState, BlockHitResult pHit, Projectile pProjectile) protected void
TntBlock.onProjectileHit
(Level pLevel, BlockState pState, BlockHitResult pHit, Projectile pProjectile) private boolean
CeilingHangingSignBlock.shouldTryToChainAnotherHangingSign
(Player pPlayer, BlockHitResult pHitResult, SignBlockEntity pSign, ItemStack pStack) private boolean
WallHangingSignBlock.shouldTryToChainAnotherHangingSign
(BlockState pState, Player pPlayer, BlockHitResult pHitResult, SignBlockEntity pSign, ItemStack pStack) private static int
TargetBlock.updateRedstoneOutput
(LevelAccessor pLevel, BlockState pState, BlockHitResult pHit, Entity pProjectile) protected ItemInteractionResult
AbstractCauldronBlock.useItemOn
(ItemStack pStack, BlockState pState, Level pLevel, BlockPos pPos, Player pPlayer, InteractionHand pHand, BlockHitResult pHitResult) protected ItemInteractionResult
BeehiveBlock.useItemOn
(ItemStack pStack, BlockState pState, Level pLevel, BlockPos pPos, Player pPlayer, InteractionHand pHand, BlockHitResult pHitResult) protected ItemInteractionResult
CakeBlock.useItemOn
(ItemStack pStack, BlockState pState, Level pLevel, BlockPos pPos, Player pPlayer, InteractionHand pHand, BlockHitResult pHitResult) protected ItemInteractionResult
CampfireBlock.useItemOn
(ItemStack pStack, BlockState pState, Level pLevel, BlockPos pPos, Player pPlayer, InteractionHand pHand, BlockHitResult pHitResult) protected ItemInteractionResult
CandleBlock.useItemOn
(ItemStack pStack, BlockState pState, Level pLevel, BlockPos pPos, Player pPlayer, InteractionHand pHand, BlockHitResult pHitResult) protected ItemInteractionResult
CandleCakeBlock.useItemOn
(ItemStack pStack, BlockState pState, Level pLevel, BlockPos pPos, Player pPlayer, InteractionHand pHand, BlockHitResult pHitResult) protected ItemInteractionResult
CeilingHangingSignBlock.useItemOn
(ItemStack pStack, BlockState pState, Level pLevel, BlockPos pPos, Player pPlayer, InteractionHand pHand, BlockHitResult pHitResult) protected ItemInteractionResult
ChiseledBookShelfBlock.useItemOn
(ItemStack pStack, BlockState pState, Level pLevel, BlockPos pPos, Player pPlayer, InteractionHand pHand, BlockHitResult pHitResult) protected ItemInteractionResult
ComposterBlock.useItemOn
(ItemStack pStack, BlockState pState, Level pLevel, BlockPos pPos, Player pPlayer, InteractionHand pHand, BlockHitResult pHitResult) protected ItemInteractionResult
DecoratedPotBlock.useItemOn
(ItemStack p_316569_, BlockState p_316562_, Level p_316177_, BlockPos p_316898_, Player p_316632_, InteractionHand p_316424_, BlockHitResult p_316345_) protected ItemInteractionResult
FenceBlock.useItemOn
(ItemStack pStack, BlockState pState, Level pLevel, BlockPos pPos, Player pPlayer, InteractionHand pHand, BlockHitResult pHitResult) protected ItemInteractionResult
FlowerPotBlock.useItemOn
(ItemStack pStack, BlockState pState, Level pLevel, BlockPos pPos, Player pPlayer, InteractionHand pHand, BlockHitResult pHitResult) protected ItemInteractionResult
JukeboxBlock.useItemOn
(ItemStack pStack, BlockState pState, Level pLevel, BlockPos pPos, Player pPlayer, InteractionHand pHand, BlockHitResult pHitResult) protected ItemInteractionResult
LecternBlock.useItemOn
(ItemStack pStack, BlockState pState, Level pLevel, BlockPos pPos, Player pPlayer, InteractionHand pHand, BlockHitResult pHitResult) protected ItemInteractionResult
NoteBlock.useItemOn
(ItemStack pStack, BlockState pState, Level pLevel, BlockPos pPos, Player pPlayer, InteractionHand pHand, BlockHitResult pHitResult) protected ItemInteractionResult
PumpkinBlock.useItemOn
(ItemStack p_316383_, BlockState p_316676_, Level p_316272_, BlockPos p_316484_, Player p_316367_, InteractionHand p_316216_, BlockHitResult p_316827_) protected ItemInteractionResult
RedStoneOreBlock.useItemOn
(ItemStack pStack, BlockState pState, Level pLevel, BlockPos pPos, Player pPlayer, InteractionHand pHand, BlockHitResult pHitResult) protected ItemInteractionResult
RespawnAnchorBlock.useItemOn
(ItemStack pStack, BlockState pState, Level pLevel, BlockPos pPos, Player pPlayer, InteractionHand pHand, BlockHitResult pHitResult) protected ItemInteractionResult
SignBlock.useItemOn
(ItemStack pStack, BlockState pState, Level pLevel, BlockPos pPos, Player pPlayer, InteractionHand pHand, BlockHitResult pHitResult) protected ItemInteractionResult
SweetBerryBushBlock.useItemOn
(ItemStack pStack, BlockState pState, Level pLevel, BlockPos pPos, Player pPlayer, InteractionHand pHand, BlockHitResult pHitResult) protected ItemInteractionResult
TntBlock.useItemOn
(ItemStack pStack, BlockState pState, Level pLevel, BlockPos pPos, Player pPlayer, InteractionHand pHand, BlockHitResult pHitResult) VaultBlock.useItemOn
(ItemStack p_324161_, BlockState p_323816_, Level p_324403_, BlockPos p_324623_, Player p_324219_, InteractionHand p_324416_, BlockHitResult p_324261_) protected ItemInteractionResult
WallHangingSignBlock.useItemOn
(ItemStack pStack, BlockState pState, Level pLevel, BlockPos pPos, Player pPlayer, InteractionHand pHand, BlockHitResult pHitResult) protected InteractionResult
AbstractFurnaceBlock.useWithoutItem
(BlockState pState, Level pLevel, BlockPos pPos, Player pPlayer, BlockHitResult pHitResult) protected InteractionResult
AnvilBlock.useWithoutItem
(BlockState pState, Level pLevel, BlockPos pPos, Player pPlayer, BlockHitResult pHitResult) protected InteractionResult
BarrelBlock.useWithoutItem
(BlockState pState, Level pLevel, BlockPos pPos, Player pPlayer, BlockHitResult pHitResult) protected InteractionResult
BeaconBlock.useWithoutItem
(BlockState pState, Level pLevel, BlockPos pPos, Player pPlayer, BlockHitResult pHitResult) protected InteractionResult
BedBlock.useWithoutItem
(BlockState pState, Level pLevel, BlockPos pPos, Player pPlayer, BlockHitResult pHitResult) protected InteractionResult
BellBlock.useWithoutItem
(BlockState pState, Level pLevel, BlockPos pPos, Player pPlayer, BlockHitResult pHitResult) protected InteractionResult
BrewingStandBlock.useWithoutItem
(BlockState pState, Level pLevel, BlockPos pPos, Player pPlayer, BlockHitResult pHitResult) protected InteractionResult
ButtonBlock.useWithoutItem
(BlockState pState, Level pLevel, BlockPos pPos, Player pPlayer, BlockHitResult pHitResult) protected InteractionResult
CakeBlock.useWithoutItem
(BlockState pState, Level pLevel, BlockPos pPos, Player pPlayer, BlockHitResult pHitResult) protected InteractionResult
CandleCakeBlock.useWithoutItem
(BlockState pState, Level pLevel, BlockPos pPos, Player pPlayer, BlockHitResult pHitResult) protected InteractionResult
CartographyTableBlock.useWithoutItem
(BlockState pState, Level pLevel, BlockPos pPos, Player pPlayer, BlockHitResult pHitResult) protected InteractionResult
CaveVinesBlock.useWithoutItem
(BlockState p_152980_, Level p_152981_, BlockPos p_152982_, Player p_152983_, BlockHitResult p_152985_) protected InteractionResult
CaveVinesPlantBlock.useWithoutItem
(BlockState p_153021_, Level p_153022_, BlockPos p_153023_, Player p_153024_, BlockHitResult p_153026_) protected InteractionResult
ChestBlock.useWithoutItem
(BlockState pState, Level pLevel, BlockPos pPos, Player pPlayer, BlockHitResult pHitResult) protected InteractionResult
ChiseledBookShelfBlock.useWithoutItem
(BlockState pState, Level pLevel, BlockPos pPos, Player pPlayer, BlockHitResult pHitResult) protected InteractionResult
CommandBlock.useWithoutItem
(BlockState pState, Level pLevel, BlockPos pPos, Player pPlayer, BlockHitResult pHitResult) protected InteractionResult
ComparatorBlock.useWithoutItem
(BlockState pState, Level pLevel, BlockPos pPos, Player pPlayer, BlockHitResult pHitResult) protected InteractionResult
ComposterBlock.useWithoutItem
(BlockState pState, Level pLevel, BlockPos pPos, Player pPlayer, BlockHitResult pHitResult) protected InteractionResult
CrafterBlock.useWithoutItem
(BlockState pState, Level pLevel, BlockPos pPos, Player pPlayer, BlockHitResult pHitResult) protected InteractionResult
CraftingTableBlock.useWithoutItem
(BlockState pState, Level pLevel, BlockPos pPos, Player pPlayer, BlockHitResult pHitResult) protected InteractionResult
DaylightDetectorBlock.useWithoutItem
(BlockState pState, Level pLevel, BlockPos pPos, Player pPlayer, BlockHitResult pHitResult) protected InteractionResult
DecoratedPotBlock.useWithoutItem
(BlockState p_316866_, Level p_316544_, BlockPos p_316541_, Player p_316732_, BlockHitResult p_316860_) protected InteractionResult
DispenserBlock.useWithoutItem
(BlockState pState, Level pLevel, BlockPos pPos, Player pPlayer, BlockHitResult pHitResult) protected InteractionResult
DoorBlock.useWithoutItem
(BlockState pState, Level pLevel, BlockPos pPos, Player pPlayer, BlockHitResult pHitResult) protected InteractionResult
DragonEggBlock.useWithoutItem
(BlockState pState, Level pLevel, BlockPos pPos, Player pPlayer, BlockHitResult pHitResult) protected InteractionResult
EnchantingTableBlock.useWithoutItem
(BlockState pState, Level pLevel, BlockPos pPos, Player pPlayer, BlockHitResult pHitResult) protected InteractionResult
EnderChestBlock.useWithoutItem
(BlockState pState, Level pLevel, BlockPos pPos, Player pPlayer, BlockHitResult pHitResult) protected InteractionResult
FenceBlock.useWithoutItem
(BlockState pState, Level pLevel, BlockPos pPos, Player pPlayer, BlockHitResult pHitResult) protected InteractionResult
FenceGateBlock.useWithoutItem
(BlockState pState, Level pLevel, BlockPos pPos, Player pPlayer, BlockHitResult pHitResult) protected InteractionResult
FletchingTableBlock.useWithoutItem
(BlockState p_53501_, Level p_53502_, BlockPos p_53503_, Player p_53504_, BlockHitResult p_53506_) protected InteractionResult
FlowerPotBlock.useWithoutItem
(BlockState pState, Level pLevel, BlockPos pPos, Player pPlayer, BlockHitResult pHitResult) protected InteractionResult
GrindstoneBlock.useWithoutItem
(BlockState pState, Level pLevel, BlockPos pPos, Player pPlayer, BlockHitResult pHitResult) protected InteractionResult
HopperBlock.useWithoutItem
(BlockState pState, Level pLevel, BlockPos pPos, Player pPlayer, BlockHitResult pHitResult) protected InteractionResult
JigsawBlock.useWithoutItem
(BlockState pState, Level pLevel, BlockPos pPos, Player pPlayer, BlockHitResult pHitResult) protected InteractionResult
JukeboxBlock.useWithoutItem
(BlockState pState, Level pLevel, BlockPos pPos, Player pPlayer, BlockHitResult pHitResult) protected InteractionResult
LecternBlock.useWithoutItem
(BlockState pState, Level pLevel, BlockPos pPos, Player pPlayer, BlockHitResult pHitResult) protected InteractionResult
LeverBlock.useWithoutItem
(BlockState pState, Level pLevel, BlockPos pPos, Player pPlayer, BlockHitResult pHitResult) protected InteractionResult
LightBlock.useWithoutItem
(BlockState pState, Level pLevel, BlockPos pPos, Player pPlayer, BlockHitResult pHitResult) protected InteractionResult
LoomBlock.useWithoutItem
(BlockState pState, Level pLevel, BlockPos pPos, Player pPlayer, BlockHitResult pHitResult) protected InteractionResult
NoteBlock.useWithoutItem
(BlockState pState, Level pLevel, BlockPos pPos, Player pPlayer, BlockHitResult pHitResult) protected InteractionResult
RedStoneWireBlock.useWithoutItem
(BlockState pState, Level pLevel, BlockPos pPos, Player pPlayer, BlockHitResult pHitResult) protected InteractionResult
RepeaterBlock.useWithoutItem
(BlockState pState, Level pLevel, BlockPos pPos, Player pPlayer, BlockHitResult pHitResult) protected InteractionResult
RespawnAnchorBlock.useWithoutItem
(BlockState pState, Level pLevel, BlockPos pPos, Player pPlayer, BlockHitResult pHitResult) protected InteractionResult
ShulkerBoxBlock.useWithoutItem
(BlockState pState, Level pLevel, BlockPos pPos, Player pPlayer, BlockHitResult pHitResult) protected InteractionResult
SignBlock.useWithoutItem
(BlockState pState, Level pLevel, BlockPos pPos, Player pPlayer, BlockHitResult pHitResult) protected InteractionResult
SmithingTableBlock.useWithoutItem
(BlockState pState, Level pLevel, BlockPos pPos, Player pPlayer, BlockHitResult pHitResult) protected InteractionResult
StonecutterBlock.useWithoutItem
(BlockState pState, Level pLevel, BlockPos pPos, Player pPlayer, BlockHitResult pHitResult) protected InteractionResult
StructureBlock.useWithoutItem
(BlockState pState, Level pLevel, BlockPos pPos, Player pPlayer, BlockHitResult pHitResult) protected InteractionResult
SweetBerryBushBlock.useWithoutItem
(BlockState pState, Level pLevel, BlockPos pPos, Player pPlayer, BlockHitResult pHitResult) protected InteractionResult
TrapDoorBlock.useWithoutItem
(BlockState pState, Level pLevel, BlockPos pPos, Player pPlayer, BlockHitResult pHitResult) -
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 InteractionResult
MovingPistonBlock.useWithoutItem
(BlockState pState, Level pLevel, BlockPos pPos, Player pPlayer, BlockHitResult pHitResult) -
Uses of BlockHitResult in net.minecraft.world.level.block.state
Methods in net.minecraft.world.level.block.state with parameters of type BlockHitResultModifier and TypeMethodDescriptionvoid
BlockBehaviour.BlockStateBase.onProjectileHit
(Level pLevel, BlockState pState, BlockHitResult pHit, Projectile pProjectile) protected void
BlockBehaviour.onProjectileHit
(Level pLevel, BlockState pState, BlockHitResult pHit, Projectile pProjectile) BlockBehaviour.BlockStateBase.useItemOn
(ItemStack pStack, Level pLevel, Player pPlayer, InteractionHand pHand, BlockHitResult pHitResult) protected ItemInteractionResult
BlockBehaviour.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 InteractionResult
BlockBehaviour.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 BlockHitResult
static BlockHitResult
Creates 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 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 boolean
IDispensibleContainerItemExtension.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.debug.block
Methods in net.neoforged.neoforge.debug.block with parameters of type BlockHitResultModifier and TypeMethodDescriptionBlockPropertyTests.LightBlock.useWithoutItem
(BlockState state, Level level, BlockPos pos, Player player, BlockHitResult hit) -
Uses of BlockHitResult in net.neoforged.neoforge.event.entity.player
Fields in net.neoforged.neoforge.event.entity.player declared as BlockHitResultModifier and TypeFieldDescriptionprivate BlockHitResult
PlayerInteractEvent.RightClickBlock.hitVec
Methods 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) -
Uses of BlockHitResult in net.neoforged.neoforge.oldtest.block
Methods in net.neoforged.neoforge.oldtest.block with parameters of type BlockHitResultModifier and TypeMethodDescriptionFullPotsAccessorDemo.DioriteFlowerPotBlock.useItemOn
(ItemStack stack, BlockState state, Level level, BlockPos pos, Player player, InteractionHand hand, BlockHitResult hit) -
Uses of BlockHitResult in net.neoforged.neoforge.oldtest.client.model
Methods in net.neoforged.neoforge.oldtest.client.model with parameters of type BlockHitResultModifier and TypeMethodDescriptionprotected ItemInteractionResult
MegaModelTest.TestBlock.useItemOn
(ItemStack stack, BlockState state, Level level, BlockPos pos, Player player, InteractionHand hand, BlockHitResult hit)