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 gj
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 Lgj;a:Ladi;
      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 Lgj;b:Lgh;
      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> Lgj;<init>(Ladi;Lgh;)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 Lgi;g()Ladi;
      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 Lgu;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 Lgu;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 Lgu;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 Lgi;d()Lgh;
      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 Lgi;e()Lcoc;
      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 Lgi;f()Lclz;
      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;