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
- Mappings:
Namespace Name official diq
intermediary net/minecraft/class_3965
named net/minecraft/util/hit/BlockHitResult
-
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
- Mappings:
Namespace Name Mixin selector official b
Ldiq;b:Lgc;
intermediary field_17588
Lnet/minecraft/class_3965;field_17588:Lnet/minecraft/class_2350;
named side
Lnet/minecraft/util/hit/BlockHitResult;side:Lnet/minecraft/util/math/Direction;
-
blockPos
- Mappings:
Namespace Name Mixin selector official c
Ldiq;c:Lfx;
intermediary field_17589
Lnet/minecraft/class_3965;field_17589:Lnet/minecraft/class_2338;
named blockPos
Lnet/minecraft/util/hit/BlockHitResult;blockPos:Lnet/minecraft/util/math/BlockPos;
-
missed
private final boolean missed- Mappings:
Namespace Name Mixin selector official d
Ldiq;d:Z
intermediary field_17590
Lnet/minecraft/class_3965;field_17590:Z
named missed
Lnet/minecraft/util/hit/BlockHitResult;missed:Z
-
insideBlock
private final boolean insideBlock- Mappings:
Namespace Name Mixin selector official e
Ldiq;e:Z
intermediary field_17591
Lnet/minecraft/class_3965;field_17591:Z
named insideBlock
Lnet/minecraft/util/hit/BlockHitResult;insideBlock:Z
-
-
Constructor Details
-
BlockHitResult
- Mappings:
Namespace Name Mixin selector official <init>
Ldiq;<init>(Ldiu;Lgc;Lfx;Z)V
intermediary <init>
Lnet/minecraft/class_3965;<init>(Lnet/minecraft/class_243;Lnet/minecraft/class_2350;Lnet/minecraft/class_2338;Z)V
named <init>
Lnet/minecraft/util/hit/BlockHitResult;<init>(Lnet/minecraft/util/math/Vec3d;Lnet/minecraft/util/math/Direction;Lnet/minecraft/util/math/BlockPos;Z)V
-
BlockHitResult
private BlockHitResult(boolean missed, Vec3d pos, Direction side, BlockPos blockPos, boolean insideBlock)- Mappings:
Namespace Name Mixin selector official <init>
Ldiq;<init>(ZLdiu;Lgc;Lfx;Z)V
intermediary <init>
Lnet/minecraft/class_3965;<init>(ZLnet/minecraft/class_243;Lnet/minecraft/class_2350;Lnet/minecraft/class_2338;Z)V
named <init>
Lnet/minecraft/util/hit/BlockHitResult;<init>(ZLnet/minecraft/util/math/Vec3d;Lnet/minecraft/util/math/Direction;Lnet/minecraft/util/math/BlockPos;Z)V
-
-
Method Details
-
createMissed
- Mappings:
Namespace Name Mixin selector official a
Ldiq;a(Ldiu;Lgc;Lfx;)Ldiq;
intermediary method_17778
Lnet/minecraft/class_3965;method_17778(Lnet/minecraft/class_243;Lnet/minecraft/class_2350;Lnet/minecraft/class_2338;)Lnet/minecraft/class_3965;
named createMissed
Lnet/minecraft/util/hit/BlockHitResult;createMissed(Lnet/minecraft/util/math/Vec3d;Lnet/minecraft/util/math/Direction;Lnet/minecraft/util/math/BlockPos;)Lnet/minecraft/util/hit/BlockHitResult;
-
withSide
- Mappings:
Namespace Name Mixin selector official a
Ldiq;a(Lgc;)Ldiq;
intermediary method_17779
Lnet/minecraft/class_3965;method_17779(Lnet/minecraft/class_2350;)Lnet/minecraft/class_3965;
named withSide
Lnet/minecraft/util/hit/BlockHitResult;withSide(Lnet/minecraft/util/math/Direction;)Lnet/minecraft/util/hit/BlockHitResult;
-
withBlockPos
- Mappings:
Namespace Name Mixin selector official a
Ldiq;a(Lfx;)Ldiq;
intermediary method_29328
Lnet/minecraft/class_3965;method_29328(Lnet/minecraft/class_2338;)Lnet/minecraft/class_3965;
named withBlockPos
Lnet/minecraft/util/hit/BlockHitResult;withBlockPos(Lnet/minecraft/util/math/BlockPos;)Lnet/minecraft/util/hit/BlockHitResult;
-
getBlockPos
- Mappings:
Namespace Name Mixin selector official a
Ldiq;a()Lfx;
intermediary method_17777
Lnet/minecraft/class_3965;method_17777()Lnet/minecraft/class_2338;
named getBlockPos
Lnet/minecraft/util/hit/BlockHitResult;getBlockPos()Lnet/minecraft/util/math/BlockPos;
-
getSide
- Mappings:
Namespace Name Mixin selector official b
Ldiq;b()Lgc;
intermediary method_17780
Lnet/minecraft/class_3965;method_17780()Lnet/minecraft/class_2350;
named getSide
Lnet/minecraft/util/hit/BlockHitResult;getSide()Lnet/minecraft/util/math/Direction;
-
getType
- Specified by:
getType
in classHitResult
- Mappings:
Namespace Name Mixin selector official c
Ldis;c()Ldis$a;
intermediary method_17783
Lnet/minecraft/class_239;method_17783()Lnet/minecraft/class_239$class_240;
named getType
Lnet/minecraft/util/hit/HitResult;getType()Lnet/minecraft/util/hit/HitResult$Type;
-
isInsideBlock
public boolean isInsideBlock()- Mappings:
Namespace Name Mixin selector official d
Ldiq;d()Z
intermediary method_17781
Lnet/minecraft/class_3965;method_17781()Z
named isInsideBlock
Lnet/minecraft/util/hit/BlockHitResult;isInsideBlock()Z
-