Class BlockPointerImpl

java.lang.Object
net.minecraft.util.math.BlockPointerImpl
All Implemented Interfaces:
BlockPointer, Position

public class BlockPointerImpl extends Object implements BlockPointer
Mappings:
Namespace Name
official gv
intermediary net/minecraft/class_2345
named net/minecraft/util/math/BlockPointerImpl
  • Field Details

    • world

      private final ServerWorld world
      Mappings:
      Namespace Name Mixin selector
      official a Lgv;a:Lafo;
      intermediary field_11011 Lnet/minecraft/class_2345;field_11011:Lnet/minecraft/class_3218;
      named world Lnet/minecraft/util/math/BlockPointerImpl;world:Lnet/minecraft/server/world/ServerWorld;
    • pos

      private final BlockPos pos
      Mappings:
      Namespace Name Mixin selector
      official b Lgv;b:Lgt;
      intermediary field_11012 Lnet/minecraft/class_2345;field_11012:Lnet/minecraft/class_2338;
      named pos Lnet/minecraft/util/math/BlockPointerImpl;pos:Lnet/minecraft/util/math/BlockPos;
  • Constructor Details

    • BlockPointerImpl

      public BlockPointerImpl(ServerWorld world, BlockPos pos)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lgv;<init>(Lafo;Lgt;)V
      intermediary <init> Lnet/minecraft/class_2345;<init>(Lnet/minecraft/class_3218;Lnet/minecraft/class_2338;)V
      named <init> Lnet/minecraft/util/math/BlockPointerImpl;<init>(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/util/math/BlockPos;)V
  • Method Details

    • getWorld

      public ServerWorld getWorld()
      Specified by:
      getWorld in interface BlockPointer
      Mappings:
      Namespace Name Mixin selector
      official g Lgu;g()Lafo;
      intermediary method_10207 Lnet/minecraft/class_2342;method_10207()Lnet/minecraft/class_3218;
      named getWorld Lnet/minecraft/util/math/BlockPointer;getWorld()Lnet/minecraft/server/world/ServerWorld;
    • getX

      public double getX()
      Returns the X coordinate.
      Specified by:
      getX in interface BlockPointer
      Specified by:
      getX in interface Position
      Mappings:
      Namespace Name Mixin selector
      official a Lhj;a()D
      intermediary method_10216 Lnet/minecraft/class_2374;method_10216()D
      named getX Lnet/minecraft/util/math/Position;getX()D
    • getY

      public double getY()
      Returns the Y coordinate.
      Specified by:
      getY in interface BlockPointer
      Specified by:
      getY in interface Position
      Mappings:
      Namespace Name Mixin selector
      official b Lhj;b()D
      intermediary method_10214 Lnet/minecraft/class_2374;method_10214()D
      named getY Lnet/minecraft/util/math/Position;getY()D
    • getZ

      public double getZ()
      Returns the Z coordinate.
      Specified by:
      getZ in interface BlockPointer
      Specified by:
      getZ in interface Position
      Mappings:
      Namespace Name Mixin selector
      official c Lhj;c()D
      intermediary method_10215 Lnet/minecraft/class_2374;method_10215()D
      named getZ Lnet/minecraft/util/math/Position;getZ()D
    • getPos

      public BlockPos getPos()
      Specified by:
      getPos in interface BlockPointer
      Mappings:
      Namespace Name Mixin selector
      official d Lgu;d()Lgt;
      intermediary method_10122 Lnet/minecraft/class_2342;method_10122()Lnet/minecraft/class_2338;
      named getPos Lnet/minecraft/util/math/BlockPointer;getPos()Lnet/minecraft/util/math/BlockPos;
    • getBlockState

      public BlockState getBlockState()
      Specified by:
      getBlockState in interface BlockPointer
      Mappings:
      Namespace Name Mixin selector
      official e Lgu;e()Lcur;
      intermediary method_10120 Lnet/minecraft/class_2342;method_10120()Lnet/minecraft/class_2680;
      named getBlockState Lnet/minecraft/util/math/BlockPointer;getBlockState()Lnet/minecraft/block/BlockState;
    • getBlockEntity

      public <T extends BlockEntity> T getBlockEntity()
      Specified by:
      getBlockEntity in interface BlockPointer
      Mappings:
      Namespace Name Mixin selector
      official f Lgu;f()Lcsl;
      intermediary method_10121 Lnet/minecraft/class_2342;method_10121()Lnet/minecraft/class_2586;
      named getBlockEntity Lnet/minecraft/util/math/BlockPointer;getBlockEntity()Lnet/minecraft/block/entity/BlockEntity;