Class GlobalPos

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

public final class GlobalPos extends Object
Mappings:
Namespace Name
official gy
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 Lgy;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 Lgy;b:Lace;
      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 Lgy;c:Lgp;
      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> Lgy;<init>(Lace;Lgp;)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 Lgy;a(Lace;Lgp;)Lgy;
      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 Lgy;a()Lace;
      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 Lgy;b()Lgp;
      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 Lgy;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