Class TrapezoidHeightProvider

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

public class TrapezoidHeightProvider extends HeightProvider
Mappings:
Namespace Name
named net/minecraft/world/gen/heightprovider/TrapezoidHeightProvider
intermediary net/minecraft/class_6342
official ehg
  • Field Details

    • CODEC

      public static final com.mojang.serialization.MapCodec<TrapezoidHeightProvider> CODEC
      Mappings:
      Namespace Name Mixin selector
      named CODEC Lnet/minecraft/world/gen/heightprovider/TrapezoidHeightProvider;CODEC:Lcom/mojang/serialization/MapCodec;
      intermediary field_33522 Lnet/minecraft/class_6342;field_33522:Lcom/mojang/serialization/MapCodec;
      official a Lehg;a:Lcom/mojang/serialization/MapCodec;
    • LOGGER

      private static final Logger LOGGER
      Mappings:
      Namespace Name Mixin selector
      named LOGGER Lnet/minecraft/world/gen/heightprovider/TrapezoidHeightProvider;LOGGER:Lorg/slf4j/Logger;
      intermediary field_33523 Lnet/minecraft/class_6342;field_33523:Lorg/slf4j/Logger;
      official b Lehg;b:Lorg/slf4j/Logger;
    • minOffset

      private final YOffset minOffset
      Mappings:
      Namespace Name Mixin selector
      named minOffset Lnet/minecraft/world/gen/heightprovider/TrapezoidHeightProvider;minOffset:Lnet/minecraft/world/gen/YOffset;
      intermediary field_33524 Lnet/minecraft/class_6342;field_33524:Lnet/minecraft/class_5843;
      official d Lehg;d:Ldza;
    • maxOffset

      private final YOffset maxOffset
      Mappings:
      Namespace Name Mixin selector
      named maxOffset Lnet/minecraft/world/gen/heightprovider/TrapezoidHeightProvider;maxOffset:Lnet/minecraft/world/gen/YOffset;
      intermediary field_33525 Lnet/minecraft/class_6342;field_33525:Lnet/minecraft/class_5843;
      official e Lehg;e:Ldza;
    • plateau

      private final int plateau
      Mappings:
      Namespace Name Mixin selector
      named plateau Lnet/minecraft/world/gen/heightprovider/TrapezoidHeightProvider;plateau:I
      intermediary field_33526 Lnet/minecraft/class_6342;field_33526:I
      official f Lehg;f:I
  • Constructor Details

    • TrapezoidHeightProvider

      private TrapezoidHeightProvider(YOffset minOffset, YOffset maxOffset, int plateau)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/world/gen/heightprovider/TrapezoidHeightProvider;<init>(Lnet/minecraft/world/gen/YOffset;Lnet/minecraft/world/gen/YOffset;I)V
      intermediary <init> Lnet/minecraft/class_6342;<init>(Lnet/minecraft/class_5843;Lnet/minecraft/class_5843;I)V
      official <init> Lehg;<init>(Ldza;Ldza;I)V
  • Method Details

    • create

      public static TrapezoidHeightProvider create(YOffset minOffset, YOffset maxOffset, int plateau)
      Parameters:
      minOffset - the minimum offset, inclusive
      maxOffset - the maximum offset, inclusive
      Mappings:
      Namespace Name Mixin selector
      named create Lnet/minecraft/world/gen/heightprovider/TrapezoidHeightProvider;create(Lnet/minecraft/world/gen/YOffset;Lnet/minecraft/world/gen/YOffset;I)Lnet/minecraft/world/gen/heightprovider/TrapezoidHeightProvider;
      intermediary method_36308 Lnet/minecraft/class_6342;method_36308(Lnet/minecraft/class_5843;Lnet/minecraft/class_5843;I)Lnet/minecraft/class_6342;
      official a Lehg;a(Ldza;Ldza;I)Lehg;
    • create

      public static TrapezoidHeightProvider create(YOffset minOffset, YOffset maxOffset)
      Parameters:
      minOffset - the minimum offset, inclusive
      maxOffset - the maximum offset, inclusive
      Mappings:
      Namespace Name Mixin selector
      named create Lnet/minecraft/world/gen/heightprovider/TrapezoidHeightProvider;create(Lnet/minecraft/world/gen/YOffset;Lnet/minecraft/world/gen/YOffset;)Lnet/minecraft/world/gen/heightprovider/TrapezoidHeightProvider;
      intermediary method_36307 Lnet/minecraft/class_6342;method_36307(Lnet/minecraft/class_5843;Lnet/minecraft/class_5843;)Lnet/minecraft/class_6342;
      official a Lehg;a(Ldza;Ldza;)Lehg;
    • 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 Lehe;a(Layo;Ldzd;)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 Lehe;a()Lehf;
    • toString

      public String toString()
      Overrides:
      toString in class Object