Package net.minecraft.util.hit
Class BlockHitResult
java.lang.Object
net.minecraft.util.hit.HitResult
net.minecraft.util.hit.BlockHitResult
public class BlockHitResult extends HitResult
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.util.hit.HitResult
HitResult.Type
-
Field Summary
-
Constructor Summary
Constructors Modifier Constructor Description private
BlockHitResult(boolean missed, Vec3d pos, Direction side, BlockPos blockPos, boolean insideBlock)
BlockHitResult(Vec3d pos, Direction side, BlockPos blockPos, boolean insideBlock)
-
Method Summary
Modifier and Type Method Description static BlockHitResult
createMissed(Vec3d pos, Direction side, BlockPos blockPos)
BlockPos
getBlockPos()
Direction
getSide()
HitResult.Type
getType()
boolean
isInsideBlock()
BlockHitResult
withBlockPos(BlockPos blockPos)
BlockHitResult
withSide(Direction side)
Methods inherited from class net.minecraft.util.hit.HitResult
getPos, squaredDistanceTo
-
Field Details
-
side
-
blockPos
-
missed
private final boolean missed -
insideBlock
private final boolean insideBlock
-
-
Constructor Details
-
BlockHitResult
-
BlockHitResult
-
-
Method Details