Class WeightedListHeightProvider

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

public class WeightedListHeightProvider extends HeightProvider
Mappings:
Namespace Name
official ddl
intermediary net/minecraft/class_6791
named net/minecraft/world/gen/heightprovider/WeightedListHeightProvider
  • Field Details

    • WEIGHTED_LIST_CODEC

      public static final com.mojang.serialization.Codec<WeightedListHeightProvider> WEIGHTED_LIST_CODEC
      Mappings:
      Namespace Name Mixin selector
      official a Lddl;a:Lcom/mojang/serialization/Codec;
      intermediary field_35712 Lnet/minecraft/class_6791;field_35712:Lcom/mojang/serialization/Codec;
      named WEIGHTED_LIST_CODEC Lnet/minecraft/world/gen/heightprovider/WeightedListHeightProvider;WEIGHTED_LIST_CODEC:Lcom/mojang/serialization/Codec;
    • weightedList

      private final DataPool<HeightProvider> weightedList
      Mappings:
      Namespace Name Mixin selector
      official b Lddl;b:Laus;
      intermediary field_35713 Lnet/minecraft/class_6791;field_35713:Lnet/minecraft/class_6005;
      named weightedList Lnet/minecraft/world/gen/heightprovider/WeightedListHeightProvider;weightedList:Lnet/minecraft/util/collection/DataPool;
  • Constructor Details

    • WeightedListHeightProvider

      public WeightedListHeightProvider(DataPool<HeightProvider> weightedList)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lddl;<init>(Laus;)V
      intermediary <init> Lnet/minecraft/class_6791;<init>(Lnet/minecraft/class_6005;)V
      named <init> Lnet/minecraft/world/gen/heightprovider/WeightedListHeightProvider;<init>(Lnet/minecraft/util/collection/DataPool;)V
  • Method Details

    • 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;