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 cyz
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 Lcyz;a:Lcyz;
      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 Lcyz;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 Lcyz;d:Lcqj;
      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> Lcyz;<init>(Lcqj;)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 Lcyz;a(Lcqj;)Lcyz;
      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 Lcyz;b()Lcqj;
      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 Lcza;a(Ljava/util/Random;Lcql;)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 Lcza;a()Lczb;
      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