Class GlobalPos

java.lang.Object
net.minecraft.util.math.GlobalPos

public final class GlobalPos extends Object
Mappings:
Namespace Name
official hc
intermediary net/minecraft/class_4208
named net/minecraft/util/math/GlobalPos
  • Field Details

    • CODEC

      public static final com.mojang.serialization.Codec<GlobalPos> CODEC
      Mappings:
      Namespace Name Mixin selector
      official a Lhc;a:Lcom/mojang/serialization/Codec;
      intermediary field_25066 Lnet/minecraft/class_4208;field_25066:Lcom/mojang/serialization/Codec;
      named CODEC Lnet/minecraft/util/math/GlobalPos;CODEC:Lcom/mojang/serialization/Codec;
    • dimension

      private final RegistryKey<World> dimension
      Mappings:
      Namespace Name Mixin selector
      official b Lhc;b:Ladc;
      intermediary field_18790 Lnet/minecraft/class_4208;field_18790:Lnet/minecraft/class_5321;
      named dimension Lnet/minecraft/util/math/GlobalPos;dimension:Lnet/minecraft/registry/RegistryKey;
    • pos

      private final BlockPos pos
      Mappings:
      Namespace Name Mixin selector
      official c Lhc;c:Lgt;
      intermediary field_18791 Lnet/minecraft/class_4208;field_18791:Lnet/minecraft/class_2338;
      named pos Lnet/minecraft/util/math/GlobalPos;pos:Lnet/minecraft/util/math/BlockPos;
  • Constructor Details

    • GlobalPos

      private GlobalPos(RegistryKey<World> dimension, BlockPos pos)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lhc;<init>(Ladc;Lgt;)V
      intermediary <init> Lnet/minecraft/class_4208;<init>(Lnet/minecraft/class_5321;Lnet/minecraft/class_2338;)V
      named <init> Lnet/minecraft/util/math/GlobalPos;<init>(Lnet/minecraft/registry/RegistryKey;Lnet/minecraft/util/math/BlockPos;)V
  • Method Details

    • create

      public static GlobalPos create(RegistryKey<World> dimension, BlockPos pos)
      Mappings:
      Namespace Name Mixin selector
      official a Lhc;a(Ladc;Lgt;)Lhc;
      intermediary method_19443 Lnet/minecraft/class_4208;method_19443(Lnet/minecraft/class_5321;Lnet/minecraft/class_2338;)Lnet/minecraft/class_4208;
      named create Lnet/minecraft/util/math/GlobalPos;create(Lnet/minecraft/registry/RegistryKey;Lnet/minecraft/util/math/BlockPos;)Lnet/minecraft/util/math/GlobalPos;
    • getDimension

      public RegistryKey<World> getDimension()
      Mappings:
      Namespace Name Mixin selector
      official a Lhc;a()Ladc;
      intermediary method_19442 Lnet/minecraft/class_4208;method_19442()Lnet/minecraft/class_5321;
      named getDimension Lnet/minecraft/util/math/GlobalPos;getDimension()Lnet/minecraft/registry/RegistryKey;
    • getPos

      public BlockPos getPos()
      Mappings:
      Namespace Name Mixin selector
      official b Lhc;b()Lgt;
      intermediary method_19446 Lnet/minecraft/class_4208;method_19446()Lnet/minecraft/class_2338;
      named getPos Lnet/minecraft/util/math/GlobalPos;getPos()Lnet/minecraft/util/math/BlockPos;
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
      Mappings:
      Namespace Name Mixin selector
      official equals Lhc;equals(Ljava/lang/Object;)Z
      intermediary equals Lnet/minecraft/class_4208;equals(Ljava/lang/Object;)Z
      named equals Lnet/minecraft/util/math/GlobalPos;equals(Ljava/lang/Object;)Z
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object