Class BlockHitResult

java.lang.Object
net.minecraft.util.hit.HitResult
net.minecraft.util.hit.BlockHitResult

public class BlockHitResult extends HitResult
Mappings:
Namespace Name
official edw
intermediary net/minecraft/class_3965
named net/minecraft/util/hit/BlockHitResult
  • Field Details

    • side

      private final Direction side
      Mappings:
      Namespace Name Mixin selector
      official b Ledw;b:Lha;
      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

      private final BlockPos blockPos
      Mappings:
      Namespace Name Mixin selector
      official c Ledw;c:Lgu;
      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 Ledw;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 Ledw;e:Z
      intermediary field_17591 Lnet/minecraft/class_3965;field_17591:Z
      named insideBlock Lnet/minecraft/util/hit/BlockHitResult;insideBlock:Z
  • Constructor Details

    • BlockHitResult

      public BlockHitResult(Vec3d pos, Direction side, BlockPos blockPos, boolean insideBlock)
      Mappings:
      Namespace Name Mixin selector
      official <init> Ledw;<init>(Leea;Lha;Lgu;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> Ledw;<init>(ZLeea;Lha;Lgu;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

      public static BlockHitResult createMissed(Vec3d pos, Direction side, BlockPos blockPos)
      Mappings:
      Namespace Name Mixin selector
      official a Ledw;a(Leea;Lha;Lgu;)Ledw;
      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

      public BlockHitResult withSide(Direction side)
      Mappings:
      Namespace Name Mixin selector
      official a Ledw;a(Lha;)Ledw;
      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

      public BlockHitResult withBlockPos(BlockPos blockPos)
      Mappings:
      Namespace Name Mixin selector
      official a Ledw;a(Lgu;)Ledw;
      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

      public BlockPos getBlockPos()
      Mappings:
      Namespace Name Mixin selector
      official a Ledw;a()Lgu;
      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

      public Direction getSide()
      Mappings:
      Namespace Name Mixin selector
      official b Ledw;b()Lha;
      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

      public HitResult.Type getType()
      Specified by:
      getType in class HitResult
      Mappings:
      Namespace Name Mixin selector
      official c Ledy;c()Ledy$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 Ledw;d()Z
      intermediary method_17781 Lnet/minecraft/class_3965;method_17781()Z
      named isInsideBlock Lnet/minecraft/util/hit/BlockHitResult;isInsideBlock()Z