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 int
TargetBlock.calculatePower
(BlockHitResult hitResult, Vec3d pos) ChiseledBookshelfBlock.getHitPos
(BlockHitResult hit, Direction facing) private boolean
WallHangingSignBlock.isHitOnFacingAxis
(BlockHitResult hitResult, BlockState state) private static boolean
CandleCakeBlock.isHittingCandle
(BlockHitResult hitResult) void
AbstractBlock.AbstractBlockState.onProjectileHit
(World world, BlockState state, BlockHitResult hit, ProjectileEntity projectile) void
AbstractBlock.onProjectileHit
(World world, BlockState state, BlockHitResult hit, ProjectileEntity projectile) Deprecated.void
AbstractCandleBlock.onProjectileHit
(World world, BlockState state, BlockHitResult hit, ProjectileEntity projectile) Called when aProjectileEntity
hits a block.void
AmethystBlock.onProjectileHit
(World world, BlockState state, BlockHitResult hit, ProjectileEntity projectile) Called when aProjectileEntity
hits a block.void
BellBlock.onProjectileHit
(World world, BlockState state, BlockHitResult hit, ProjectileEntity projectile) Called when aProjectileEntity
hits a block.void
BigDripleafBlock.onProjectileHit
(World world, BlockState state, BlockHitResult hit, ProjectileEntity projectile) Called when aProjectileEntity
hits a block.void
CampfireBlock.onProjectileHit
(World world, BlockState state, BlockHitResult hit, ProjectileEntity projectile) Called when aProjectileEntity
hits a block.void
ChorusFlowerBlock.onProjectileHit
(World world, BlockState state, BlockHitResult hit, ProjectileEntity projectile) Called when aProjectileEntity
hits a block.void
DecoratedPotBlock.onProjectileHit
(World world, BlockState state, BlockHitResult hit, ProjectileEntity projectile) Called when aProjectileEntity
hits a block.void
LightningRodBlock.onProjectileHit
(World world, BlockState state, BlockHitResult hit, ProjectileEntity projectile) Called when aProjectileEntity
hits a block.void
PointedDripstoneBlock.onProjectileHit
(World world, BlockState state, BlockHitResult hit, ProjectileEntity projectile) Called when aProjectileEntity
hits a block.void
TargetBlock.onProjectileHit
(World world, BlockState state, BlockHitResult hit, ProjectileEntity projectile) Called when aProjectileEntity
hits a block.void
TntBlock.onProjectileHit
(World world, BlockState state, BlockHitResult hit, ProjectileEntity projectile) Called when aProjectileEntity
hits a block.AbstractBlock.AbstractBlockState.onUse
(World world, PlayerEntity player, Hand hand, BlockHitResult hit) AbstractBlock.onUse
(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit) AbstractCauldronBlock.onUse
(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit) Called when this block is used by a player.AbstractFurnaceBlock.onUse
(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit) Called when this block is used by a player.AbstractSignBlock.onUse
(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit) Called when this block is used by a player.AnvilBlock.onUse
(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit) Called when this block is used by a player.BarrelBlock.onUse
(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit) Called when this block is used by a player.BeaconBlock.onUse
(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit) Called when this block is used by a player.BedBlock.onUse
(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit) Called when this block is used by a player.BeehiveBlock.onUse
(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit) Called when this block is used by a player.BellBlock.onUse
(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit) Called when this block is used by a player.BrewingStandBlock.onUse
(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit) Called when this block is used by a player.ButtonBlock.onUse
(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit) Called when this block is used by a player.CakeBlock.onUse
(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit) Called when this block is used by a player.CampfireBlock.onUse
(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit) Called when this block is used by a player.CandleBlock.onUse
(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit) Called when this block is used by a player.CandleCakeBlock.onUse
(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit) Called when this block is used by a player.CartographyTableBlock.onUse
(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit) Called when this block is used by a player.CaveVinesBodyBlock.onUse
(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit) Called when this block is used by a player.CaveVinesHeadBlock.onUse
(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit) Called when this block is used by a player.ChestBlock.onUse
(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit) Called when this block is used by a player.ChiseledBookshelfBlock.onUse
(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit) Called when this block is used by a player.CommandBlock.onUse
(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit) Called when this block is used by a player.ComparatorBlock.onUse
(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit) Called when this block is used by a player.ComposterBlock.onUse
(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit) Called when this block is used by a player.CrafterBlock.onUse
(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit) Called when this block is used by a player.CraftingTableBlock.onUse
(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit) Called when this block is used by a player.DaylightDetectorBlock.onUse
(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit) Called when this block is used by a player.DecoratedPotBlock.onUse
(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit) Called when this block is used by a player.DispenserBlock.onUse
(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit) Called when this block is used by a player.DoorBlock.onUse
(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit) Called when this block is used by a player.DragonEggBlock.onUse
(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit) Called when this block is used by a player.EnchantingTableBlock.onUse
(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit) Called when this block is used by a player.EnderChestBlock.onUse
(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit) Called when this block is used by a player.FenceBlock.onUse
(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit) Called when this block is used by a player.FenceGateBlock.onUse
(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit) Called when this block is used by a player.FletchingTableBlock.onUse
(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit) Called when this block is used by a player.FlowerPotBlock.onUse
(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit) Called when this block is used by a player.GrindstoneBlock.onUse
(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit) Called when this block is used by a player.HangingSignBlock.onUse
(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit) Called when this block is used by a player.HopperBlock.onUse
(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit) Called when this block is used by a player.JigsawBlock.onUse
(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit) Called when this block is used by a player.JukeboxBlock.onUse
(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit) Called when this block is used by a player.LecternBlock.onUse
(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit) Called when this block is used by a player.LeverBlock.onUse
(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit) Called when this block is used by a player.LightBlock.onUse
(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit) Called when this block is used by a player.LoomBlock.onUse
(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit) Called when this block is used by a player.NoteBlock.onUse
(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit) Called when this block is used by a player.PistonExtensionBlock.onUse
(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit) Called when this block is used by a player.PumpkinBlock.onUse
(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit) Called when this block is used by a player.RedstoneOreBlock.onUse
(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit) Called when this block is used by a player.RedstoneWireBlock.onUse
(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit) Called when this block is used by a player.RepeaterBlock.onUse
(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit) Called when this block is used by a player.RespawnAnchorBlock.onUse
(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit) Called when this block is used by a player.ShulkerBoxBlock.onUse
(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit) Called when this block is used by a player.SmithingTableBlock.onUse
(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit) Called when this block is used by a player.StonecutterBlock.onUse
(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit) Called when this block is used by a player.StructureBlock.onUse
(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit) Called when this block is used by a player.SweetBerryBushBlock.onUse
(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit) Called when this block is used by a player.TntBlock.onUse
(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit) Called when this block is used by a player.TrapdoorBlock.onUse
(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit) Called when this block is used by a player.WallHangingSignBlock.onUse
(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit) Called when this block is used by a player.boolean
BellBlock.ring
(World world, BlockState state, BlockHitResult hitResult, @Nullable PlayerEntity player, boolean checkHitPos) private boolean
HangingSignBlock.shouldTryAttaching
(PlayerEntity player, BlockHitResult hitResult, SignBlockEntity sign, ItemStack stack) private boolean
WallHangingSignBlock.shouldTryAttaching
(BlockState state, PlayerEntity player, BlockHitResult hitResult, SignBlockEntity sign, ItemStack stack) private static int
TargetBlock.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 ActionResult
ClientPlayerInteractionManager.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 void
FireworkRocketEntity.onBlockHit
(BlockHitResult blockHitResult) protected void
FishingBobberEntity.onBlockHit
(BlockHitResult blockHitResult) protected void
LlamaSpitEntity.onBlockHit
(BlockHitResult blockHitResult) protected void
PersistentProjectileEntity.onBlockHit
(BlockHitResult blockHitResult) protected void
ProjectileEntity.onBlockHit
(BlockHitResult blockHitResult) protected void
ShulkerBulletEntity.onBlockHit
(BlockHitResult blockHitResult) protected void
SmallFireballEntity.onBlockHit
(BlockHitResult blockHitResult) protected void
WindChargeEntity.onBlockHit
(BlockHitResult blockHitResult) -
Uses of BlockHitResult in net.minecraft.entity.projectile.thrown
Methods in net.minecraft.entity.projectile.thrown with parameters of type BlockHitResultModifier and TypeMethodDescriptionprotected void
PotionEntity.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 BlockHitResult
ItemUsageContext.getHitResult()
protected static BlockHitResult
Item.raycast
(World world, PlayerEntity player, RaycastContext.FluidHandling fluidHandling) Methods in net.minecraft.item with parameters of type BlockHitResultModifier and TypeMethodDescriptionprivate void
BrushItem.addDustParticles
(World world, BlockHitResult hitResult, BlockState state, Vec3d userRotation, Arm arm) boolean
BucketItem.placeFluid
(@Nullable PlayerEntity player, World world, BlockPos pos, @Nullable BlockHitResult hitResult) boolean
FluidModificationItem.placeFluid
(@Nullable PlayerEntity player, World world, BlockPos pos, @Nullable BlockHitResult hitResult) boolean
PowderSnowBucketItem.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) protected
ItemPlacementContext
(World world, @Nullable PlayerEntity player, Hand hand, ItemStack stack, BlockHitResult hit) ItemUsageContext
(PlayerEntity player, Hand hand, BlockHitResult hit) protected
ItemUsageContext
(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 TypeMethodDescriptionvoid
PacketByteBuf.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 BlockHitResult
PlayerInteractBlockC2SPacket.blockHitResult
Methods 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 TypeMethodDescriptionvoid
TestContext.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 BlockHitResult
BlockHitResult.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 BlockHitResult
BlockView.raycast
(BlockStateRaycastContext context) default BlockHitResult
BlockView.raycast
(RaycastContext context) default @Nullable BlockHitResult
BlockView.raycastBlock
(Vec3d start, Vec3d end, BlockPos pos, VoxelShape shape, BlockState state)
AbstractBlock.AbstractBlockState.onProjectileHit(net.minecraft.world.World, net.minecraft.block.BlockState, net.minecraft.util.hit.BlockHitResult, net.minecraft.entity.projectile.ProjectileEntity)
instead.