Class ConstantHeightProvider

java.lang.Object
net.minecraft.world.gen.heightprovider.HeightProvider
net.minecraft.world.gen.heightprovider.ConstantHeightProvider

public class ConstantHeightProvider extends HeightProvider
Mappings:
Namespace Name
official dpy
intermediary net/minecraft/class_6121
named net/minecraft/world/gen/heightprovider/ConstantHeightProvider
  • Field Details

    • ZERO

      public static final ConstantHeightProvider ZERO
      Mappings:
      Namespace Name Mixin selector
      official a Ldpy;a:Ldpy;
      intermediary field_31536 Lnet/minecraft/class_6121;field_31536:Lnet/minecraft/class_6121;
      named ZERO Lnet/minecraft/world/gen/heightprovider/ConstantHeightProvider;ZERO:Lnet/minecraft/world/gen/heightprovider/ConstantHeightProvider;
    • CONSTANT_CODEC

      public static final com.mojang.serialization.Codec<ConstantHeightProvider> CONSTANT_CODEC
      Mappings:
      Namespace Name Mixin selector
      official b Ldpy;b:Lcom/mojang/serialization/Codec;
      intermediary field_31537 Lnet/minecraft/class_6121;field_31537:Lcom/mojang/serialization/Codec;
      named CONSTANT_CODEC Lnet/minecraft/world/gen/heightprovider/ConstantHeightProvider;CONSTANT_CODEC:Lcom/mojang/serialization/Codec;
    • offset

      private final YOffset offset
      Mappings:
      Namespace Name Mixin selector
      official d Ldpy;d:Ldhw;
      intermediary field_31538 Lnet/minecraft/class_6121;field_31538:Lnet/minecraft/class_5843;
      named offset Lnet/minecraft/world/gen/heightprovider/ConstantHeightProvider;offset:Lnet/minecraft/world/gen/YOffset;
  • Constructor Details

    • ConstantHeightProvider

      private ConstantHeightProvider(YOffset offset)
      Mappings:
      Namespace Name Mixin selector
      official <init> Ldpy;<init>(Ldhw;)V
      intermediary <init> Lnet/minecraft/class_6121;<init>(Lnet/minecraft/class_5843;)V
      named <init> Lnet/minecraft/world/gen/heightprovider/ConstantHeightProvider;<init>(Lnet/minecraft/world/gen/YOffset;)V
  • Method Details

    • create

      public static ConstantHeightProvider create(YOffset offset)
      Mappings:
      Namespace Name Mixin selector
      official a Ldpy;a(Ldhw;)Ldpy;
      intermediary method_35383 Lnet/minecraft/class_6121;method_35383(Lnet/minecraft/class_5843;)Lnet/minecraft/class_6121;
      named create Lnet/minecraft/world/gen/heightprovider/ConstantHeightProvider;create(Lnet/minecraft/world/gen/YOffset;)Lnet/minecraft/world/gen/heightprovider/ConstantHeightProvider;
    • getOffset

      public YOffset getOffset()
      Mappings:
      Namespace Name Mixin selector
      official b Ldpy;b()Ldhw;
      intermediary method_35385 Lnet/minecraft/class_6121;method_35385()Lnet/minecraft/class_5843;
      named getOffset Lnet/minecraft/world/gen/heightprovider/ConstantHeightProvider;getOffset()Lnet/minecraft/world/gen/YOffset;
    • get

      public int get(Random random, HeightContext context)
      Specified by:
      get in class HeightProvider
      Mappings:
      Namespace Name Mixin selector
      official a Ldpz;a(Lapd;Ldhz;)I
      intermediary method_35391 Lnet/minecraft/class_6122;method_35391(Lnet/minecraft/class_5819;Lnet/minecraft/class_5868;)I
      named get Lnet/minecraft/world/gen/heightprovider/HeightProvider;get(Lnet/minecraft/util/math/random/Random;Lnet/minecraft/world/gen/HeightContext;)I
    • getType

      public HeightProviderType<?> getType()
      Specified by:
      getType in class HeightProvider
      Mappings:
      Namespace Name Mixin selector
      official a Ldpz;a()Ldqa;
      intermediary method_35388 Lnet/minecraft/class_6122;method_35388()Lnet/minecraft/class_6123;
      named getType Lnet/minecraft/world/gen/heightprovider/HeightProvider;getType()Lnet/minecraft/world/gen/heightprovider/HeightProviderType;
    • toString

      public String toString()
      Overrides:
      toString in class Object