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 diq
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 Ldiq;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 Ldiq;b:Laxw;
      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> Ldiq;<init>(Laxw;)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 Ldil;a(Lalu;Ldap;)I
      intermediary method_35391 Lnet/minecraft/class_6122;method_35391(Lnet/minecraft/class_5819;Lnet/minecraft/class_5868;)I
      named get Lnet/minecraft/world/gen/heightprovider/HeightProvider;get(Lnet/minecraft/util/math/random/Random;Lnet/minecraft/world/gen/HeightContext;)I
    • getType

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