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 ddf
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 Lddf;a:Lddf;
      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 Lddf;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 Lddf;d:Lcus;
      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> Lddf;<init>(Lcus;)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 Lddf;a(Lcus;)Lddf;
      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 Lddf;b()Lcus;
      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 Lddg;a(Ljava/util/Random;Lcuu;)I
      intermediary method_35391 Lnet/minecraft/class_6122;method_35391(Ljava/util/Random;Lnet/minecraft/class_5868;)I
      named get Lnet/minecraft/world/gen/heightprovider/HeightProvider;get(Ljava/util/Random;Lnet/minecraft/world/gen/HeightContext;)I
    • getType

      public HeightProviderType<?> getType()
      Specified by:
      getType in class HeightProvider
      Mappings:
      Namespace Name Mixin selector
      official a Lddg;a()Lddh;
      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