Uses of Class
net.minecraft.util.hit.BlockHitResult
Packages that use BlockHitResult
Package
Description
-
Uses of BlockHitResult in net.minecraft.block
Methods in net.minecraft.block with parameters of type BlockHitResultModifier and TypeMethodDescriptionprivate static intTargetBlock.calculatePower(BlockHitResult hitResult, Vec3d pos) ChiseledBookshelfBlock.getHitPos(BlockHitResult hit, Direction facing) private OptionalIntChiseledBookshelfBlock.getSlotForHitPos(BlockHitResult hit, BlockState state) private booleanWallHangingSignBlock.isHitOnFacingAxis(BlockHitResult hitResult, BlockState state) private static booleanCandleCakeBlock.isHittingCandle(BlockHitResult hitResult) voidAbstractBlock.AbstractBlockState.onProjectileHit(World world, BlockState state, BlockHitResult hit, ProjectileEntity projectile) protected voidAbstractBlock.onProjectileHit(World world, BlockState state, BlockHitResult hit, ProjectileEntity projectile) Called when aProjectileEntityhits a block.protected voidAbstractCandleBlock.onProjectileHit(World world, BlockState state, BlockHitResult hit, ProjectileEntity projectile) Called when aProjectileEntityhits a block.protected voidAmethystBlock.onProjectileHit(World world, BlockState state, BlockHitResult hit, ProjectileEntity projectile) Called when aProjectileEntityhits a block.protected voidBellBlock.onProjectileHit(World world, BlockState state, BlockHitResult hit, ProjectileEntity projectile) Called when aProjectileEntityhits a block.protected voidBigDripleafBlock.onProjectileHit(World world, BlockState state, BlockHitResult hit, ProjectileEntity projectile) Called when aProjectileEntityhits a block.protected voidCampfireBlock.onProjectileHit(World world, BlockState state, BlockHitResult hit, ProjectileEntity projectile) Called when aProjectileEntityhits a block.protected voidChorusFlowerBlock.onProjectileHit(World world, BlockState state, BlockHitResult hit, ProjectileEntity projectile) Called when aProjectileEntityhits a block.protected voidDecoratedPotBlock.onProjectileHit(World world, BlockState state, BlockHitResult hit, ProjectileEntity projectile) Called when aProjectileEntityhits a block.protected voidPointedDripstoneBlock.onProjectileHit(World world, BlockState state, BlockHitResult hit, ProjectileEntity projectile) Called when aProjectileEntityhits a block.protected voidTargetBlock.onProjectileHit(World world, BlockState state, BlockHitResult hit, ProjectileEntity projectile) Called when aProjectileEntityhits a block.protected voidTntBlock.onProjectileHit(World world, BlockState state, BlockHitResult hit, ProjectileEntity projectile) Called when aProjectileEntityhits a block.AbstractBlock.AbstractBlockState.onUse(World world, PlayerEntity player, BlockHitResult hit) protected ActionResultAbstractBlock.onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, BlockHitResult hit) protected ActionResultAbstractFurnaceBlock.onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, BlockHitResult hit) protected ActionResultAbstractSignBlock.onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, BlockHitResult hit) protected ActionResultAnvilBlock.onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, BlockHitResult hit) protected ActionResultBarrelBlock.onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, BlockHitResult hit) protected ActionResultBeaconBlock.onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, BlockHitResult hit) protected ActionResultBedBlock.onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, BlockHitResult hit) protected ActionResultBellBlock.onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, BlockHitResult hit) protected ActionResultBrewingStandBlock.onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, BlockHitResult hit) protected ActionResultButtonBlock.onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, BlockHitResult hit) protected ActionResultCakeBlock.onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, BlockHitResult hit) protected ActionResultCandleCakeBlock.onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, BlockHitResult hit) protected ActionResultCartographyTableBlock.onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, BlockHitResult hit) protected ActionResultCaveVinesBodyBlock.onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, BlockHitResult hit) protected ActionResultCaveVinesHeadBlock.onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, BlockHitResult hit) protected ActionResultChestBlock.onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, BlockHitResult hit) protected ActionResultChiseledBookshelfBlock.onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, BlockHitResult hit) protected ActionResultCommandBlock.onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, BlockHitResult hit) protected ActionResultComparatorBlock.onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, BlockHitResult hit) protected ActionResultComposterBlock.onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, BlockHitResult hit) protected ActionResultCrafterBlock.onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, BlockHitResult hit) protected ActionResultCraftingTableBlock.onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, BlockHitResult hit) protected ActionResultDaylightDetectorBlock.onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, BlockHitResult hit) protected ActionResultDecoratedPotBlock.onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, BlockHitResult hit) protected ActionResultDispenserBlock.onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, BlockHitResult hit) protected ActionResultDoorBlock.onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, BlockHitResult hit) protected ActionResultDragonEggBlock.onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, BlockHitResult hit) protected ActionResultEnchantingTableBlock.onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, BlockHitResult hit) protected ActionResultEnderChestBlock.onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, BlockHitResult hit) protected ActionResultFenceBlock.onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, BlockHitResult hit) protected ActionResultFenceGateBlock.onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, BlockHitResult hit) protected ActionResultFletchingTableBlock.onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, BlockHitResult hit) protected ActionResultFlowerPotBlock.onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, BlockHitResult hit) protected ActionResultGrindstoneBlock.onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, BlockHitResult hit) protected ActionResultHopperBlock.onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, BlockHitResult hit) protected ActionResultJigsawBlock.onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, BlockHitResult hit) protected ActionResultJukeboxBlock.onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, BlockHitResult hit) protected ActionResultLecternBlock.onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, BlockHitResult hit) protected ActionResultLeverBlock.onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, BlockHitResult hit) protected ActionResultLightBlock.onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, BlockHitResult hit) protected ActionResultLoomBlock.onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, BlockHitResult hit) protected ActionResultNoteBlock.onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, BlockHitResult hit) protected ActionResultPistonExtensionBlock.onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, BlockHitResult hit) protected ActionResultRedstoneWireBlock.onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, BlockHitResult hit) protected ActionResultRepeaterBlock.onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, BlockHitResult hit) protected ActionResultRespawnAnchorBlock.onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, BlockHitResult hit) protected ActionResultShulkerBoxBlock.onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, BlockHitResult hit) protected ActionResultSmithingTableBlock.onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, BlockHitResult hit) protected ActionResultStonecutterBlock.onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, BlockHitResult hit) protected ActionResultStructureBlock.onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, BlockHitResult hit) protected ActionResultSweetBerryBushBlock.onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, BlockHitResult hit) protected ActionResultTrapdoorBlock.onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, BlockHitResult hit) AbstractBlock.AbstractBlockState.onUseWithItem(ItemStack stack, World world, PlayerEntity player, Hand hand, BlockHitResult hit) protected ItemActionResultAbstractBlock.onUseWithItem(ItemStack stack, BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit) protected ItemActionResultAbstractCauldronBlock.onUseWithItem(ItemStack stack, BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit) protected ItemActionResultAbstractSignBlock.onUseWithItem(ItemStack stack, BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit) protected ItemActionResultBeehiveBlock.onUseWithItem(ItemStack stack, BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit) protected ItemActionResultCakeBlock.onUseWithItem(ItemStack stack, BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit) protected ItemActionResultCampfireBlock.onUseWithItem(ItemStack stack, BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit) protected ItemActionResultCandleBlock.onUseWithItem(ItemStack stack, BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit) protected ItemActionResultCandleCakeBlock.onUseWithItem(ItemStack stack, BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit) protected ItemActionResultChiseledBookshelfBlock.onUseWithItem(ItemStack stack, BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit) protected ItemActionResultComposterBlock.onUseWithItem(ItemStack stack, BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit) protected ItemActionResultDecoratedPotBlock.onUseWithItem(ItemStack stack, BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit) protected ItemActionResultFenceBlock.onUseWithItem(ItemStack stack, BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit) protected ItemActionResultFlowerPotBlock.onUseWithItem(ItemStack stack, BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit) protected ItemActionResultHangingSignBlock.onUseWithItem(ItemStack stack, BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit) protected ItemActionResultJukeboxBlock.onUseWithItem(ItemStack stack, BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit) protected ItemActionResultLecternBlock.onUseWithItem(ItemStack stack, BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit) protected ItemActionResultNoteBlock.onUseWithItem(ItemStack stack, BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit) protected ItemActionResultPumpkinBlock.onUseWithItem(ItemStack stack, BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit) protected ItemActionResultRedstoneOreBlock.onUseWithItem(ItemStack stack, BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit) protected ItemActionResultRespawnAnchorBlock.onUseWithItem(ItemStack stack, BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit) protected ItemActionResultSweetBerryBushBlock.onUseWithItem(ItemStack stack, BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit) protected ItemActionResultTntBlock.onUseWithItem(ItemStack stack, BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit) VaultBlock.onUseWithItem(ItemStack stack, BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit) protected ItemActionResultWallHangingSignBlock.onUseWithItem(ItemStack stack, BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit) booleanBellBlock.ring(World world, BlockState state, BlockHitResult hitResult, @Nullable PlayerEntity player, boolean checkHitPos) private booleanHangingSignBlock.shouldTryAttaching(PlayerEntity player, BlockHitResult hitResult, SignBlockEntity sign, ItemStack stack) private booleanWallHangingSignBlock.shouldTryAttaching(BlockState state, PlayerEntity player, BlockHitResult hitResult, SignBlockEntity sign, ItemStack stack) private static intTargetBlock.trigger(WorldAccess world, BlockState state, BlockHitResult hitResult, Entity entity) -
Uses of BlockHitResult in net.minecraft.client.network
Methods in net.minecraft.client.network with parameters of type BlockHitResultModifier and TypeMethodDescriptionClientPlayerInteractionManager.interactBlock(ClientPlayerEntity player, Hand hand, BlockHitResult hitResult) private ActionResultClientPlayerInteractionManager.interactBlockInternal(ClientPlayerEntity player, Hand hand, BlockHitResult hitResult) -
Uses of BlockHitResult in net.minecraft.entity.projectile
Methods in net.minecraft.entity.projectile with parameters of type BlockHitResultModifier and TypeMethodDescriptionprotected voidAbstractWindChargeEntity.onBlockHit(BlockHitResult blockHitResult) protected voidFireworkRocketEntity.onBlockHit(BlockHitResult blockHitResult) protected voidFishingBobberEntity.onBlockHit(BlockHitResult blockHitResult) protected voidLlamaSpitEntity.onBlockHit(BlockHitResult blockHitResult) protected voidPersistentProjectileEntity.onBlockHit(BlockHitResult blockHitResult) protected voidProjectileEntity.onBlockHit(BlockHitResult blockHitResult) protected voidShulkerBulletEntity.onBlockHit(BlockHitResult blockHitResult) protected voidSmallFireballEntity.onBlockHit(BlockHitResult blockHitResult) protected voidPersistentProjectileEntity.onBlockHitEnchantmentEffects(ServerWorld world, BlockHitResult blockHitResult, ItemStack weaponStack) protected voidTridentEntity.onBlockHitEnchantmentEffects(ServerWorld world, BlockHitResult blockHitResult, ItemStack weaponStack) -
Uses of BlockHitResult in net.minecraft.entity.projectile.thrown
Methods in net.minecraft.entity.projectile.thrown with parameters of type BlockHitResultModifier and TypeMethodDescriptionprotected voidPotionEntity.onBlockHit(BlockHitResult blockHitResult) -
Uses of BlockHitResult in net.minecraft.item
Fields in net.minecraft.item declared as BlockHitResultMethods in net.minecraft.item that return BlockHitResultModifier and TypeMethodDescriptionprotected final BlockHitResultItemUsageContext.getHitResult()protected static BlockHitResultItem.raycast(World world, PlayerEntity player, RaycastContext.FluidHandling fluidHandling) Methods in net.minecraft.item with parameters of type BlockHitResultModifier and TypeMethodDescriptionprivate voidBrushItem.addDustParticles(World world, BlockHitResult hitResult, BlockState state, Vec3d userRotation, Arm arm) booleanBucketItem.placeFluid(@Nullable PlayerEntity player, World world, BlockPos pos, @Nullable BlockHitResult hitResult) booleanFluidModificationItem.placeFluid(@Nullable PlayerEntity player, World world, BlockPos pos, @Nullable BlockHitResult hitResult) booleanPowderSnowBucketItem.placeFluid(@Nullable PlayerEntity player, World world, BlockPos pos, @Nullable BlockHitResult hitResult) Constructors in net.minecraft.item with parameters of type BlockHitResultModifierConstructorDescriptionItemPlacementContext(PlayerEntity player, Hand hand, ItemStack stack, BlockHitResult hitResult) protectedItemPlacementContext(World world, @Nullable PlayerEntity player, Hand hand, ItemStack stack, BlockHitResult hit) ItemUsageContext(PlayerEntity player, Hand hand, BlockHitResult hit) protectedItemUsageContext(World world, @Nullable PlayerEntity player, Hand hand, ItemStack stack, BlockHitResult hit) -
Uses of BlockHitResult in net.minecraft.network
Methods in net.minecraft.network that return BlockHitResultModifier and TypeMethodDescriptionPacketByteBuf.readBlockHitResult()Reads a block hit result from this buf.Methods in net.minecraft.network with parameters of type BlockHitResultModifier and TypeMethodDescriptionvoidPacketByteBuf.writeBlockHitResult(BlockHitResult hitResult) Writes a block hit result to this buf. -
Uses of BlockHitResult in net.minecraft.network.packet.c2s.play
Fields in net.minecraft.network.packet.c2s.play declared as BlockHitResultModifier and TypeFieldDescriptionprivate final BlockHitResultPlayerInteractBlockC2SPacket.blockHitResultMethods in net.minecraft.network.packet.c2s.play that return BlockHitResultConstructors in net.minecraft.network.packet.c2s.play with parameters of type BlockHitResultModifierConstructorDescriptionPlayerInteractBlockC2SPacket(Hand hand, BlockHitResult blockHitResult, int sequence) -
Uses of BlockHitResult in net.minecraft.server.network
Methods in net.minecraft.server.network with parameters of type BlockHitResultModifier and TypeMethodDescriptionDemoServerPlayerInteractionManager.interactBlock(ServerPlayerEntity player, World world, ItemStack stack, Hand hand, BlockHitResult hitResult) ServerPlayerInteractionManager.interactBlock(ServerPlayerEntity player, World world, ItemStack stack, Hand hand, BlockHitResult hitResult) -
Uses of BlockHitResult in net.minecraft.test
Methods in net.minecraft.test with parameters of type BlockHitResultModifier and TypeMethodDescriptionvoidTestContext.useBlock(BlockPos pos, PlayerEntity player, BlockHitResult result) -
Uses of BlockHitResult in net.minecraft.util.hit
Methods in net.minecraft.util.hit that return BlockHitResultModifier and TypeMethodDescriptionstatic BlockHitResultBlockHitResult.createMissed(Vec3d pos, Direction side, BlockPos blockPos) BlockHitResult.withBlockPos(BlockPos blockPos) -
Uses of BlockHitResult in net.minecraft.util.math
Methods in net.minecraft.util.math that return BlockHitResult -
Uses of BlockHitResult in net.minecraft.util.shape
Methods in net.minecraft.util.shape that return BlockHitResult -
Uses of BlockHitResult in net.minecraft.world
Methods in net.minecraft.world that return BlockHitResultModifier and TypeMethodDescriptiondefault BlockHitResultBlockView.raycast(BlockStateRaycastContext context) default BlockHitResultBlockView.raycast(RaycastContext context) default @Nullable BlockHitResultBlockView.raycastBlock(Vec3d start, Vec3d end, BlockPos pos, VoxelShape shape, BlockState state)