Package net.minecraft.world.phys
Class BlockHitResult
java.lang.Object
net.minecraft.world.phys.HitResult
net.minecraft.world.phys.BlockHitResult
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.world.phys.HitResult
HitResult.Type
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivate
BlockHitResult
(boolean pMiss, Vec3 pLocation, Direction pDirection, BlockPos pBlockPos, boolean pInside) BlockHitResult
(Vec3 pLocation, Direction pDirection, BlockPos pBlockPos, boolean pInside) -
Method Summary
Modifier and TypeMethodDescriptiongetType()
boolean
isInside()
static BlockHitResult
Creates a new BlockRayTraceResult marked as a miss.withDirection
(Direction pNewFace) Creates a new BlockRayTraceResult, with the clicked face replaced with the given onewithPosition
(BlockPos pPos) Methods inherited from class net.minecraft.world.phys.HitResult
distanceTo, getLocation
-
Field Details
-
direction
-
blockPos
-
miss
private final boolean miss -
inside
private final boolean inside
-
-
Constructor Details
-
BlockHitResult
-
BlockHitResult
-
-
Method Details