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
named net/minecraft/world/gen/heightprovider/ConstantHeightProvider
intermediary net/minecraft/class_6121
official ehs
  • Field Details

    • ZERO

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

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

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

    • ConstantHeightProvider

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

    • create

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

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

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

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

      public String toString()
      Overrides:
      toString in class Object