Enum Class DensityFunctionTypes.WeirdScaledSampler.RarityValueMapper

java.lang.Object
java.lang.Enum<DensityFunctionTypes.WeirdScaledSampler.RarityValueMapper>
net.minecraft.world.gen.densityfunction.DensityFunctionTypes.WeirdScaledSampler.RarityValueMapper
All Implemented Interfaces:
Serializable, Comparable<DensityFunctionTypes.WeirdScaledSampler.RarityValueMapper>, Constable, StringIdentifiable
Enclosing class:
DensityFunctionTypes.WeirdScaledSampler

public static enum DensityFunctionTypes.WeirdScaledSampler.RarityValueMapper extends Enum<DensityFunctionTypes.WeirdScaledSampler.RarityValueMapper> implements StringIdentifiable
Mappings:
Namespace Name
named net/minecraft/world/gen/densityfunction/DensityFunctionTypes$WeirdScaledSampler$RarityValueMapper
intermediary net/minecraft/class_6916$class_6944$class_7048
official dxq$z$a
  • Enum Constant Details

    • TYPE1

      Mappings:
      Namespace Name Mixin selector
      named TYPE1 Lnet/minecraft/world/gen/densityfunction/DensityFunctionTypes$WeirdScaledSampler$RarityValueMapper;TYPE1:Lnet/minecraft/world/gen/densityfunction/DensityFunctionTypes$WeirdScaledSampler$RarityValueMapper;
      intermediary field_37066 Lnet/minecraft/class_6916$class_6944$class_7048;field_37066:Lnet/minecraft/class_6916$class_6944$class_7048;
      official a Ldxq$z$a;a:Ldxq$z$a;
    • TYPE2

      Mappings:
      Namespace Name Mixin selector
      named TYPE2 Lnet/minecraft/world/gen/densityfunction/DensityFunctionTypes$WeirdScaledSampler$RarityValueMapper;TYPE2:Lnet/minecraft/world/gen/densityfunction/DensityFunctionTypes$WeirdScaledSampler$RarityValueMapper;
      intermediary field_37067 Lnet/minecraft/class_6916$class_6944$class_7048;field_37067:Lnet/minecraft/class_6916$class_6944$class_7048;
      official b Ldxq$z$a;b:Ldxq$z$a;
  • Field Details

    • CODEC

      public static final com.mojang.serialization.Codec<DensityFunctionTypes.WeirdScaledSampler.RarityValueMapper> CODEC
      Mappings:
      Namespace Name Mixin selector
      named CODEC Lnet/minecraft/world/gen/densityfunction/DensityFunctionTypes$WeirdScaledSampler$RarityValueMapper;CODEC:Lcom/mojang/serialization/Codec;
      intermediary field_37068 Lnet/minecraft/class_6916$class_6944$class_7048;field_37068:Lcom/mojang/serialization/Codec;
      official c Ldxq$z$a;c:Lcom/mojang/serialization/Codec;
    • name

      private final String name
      Mappings:
      Namespace Name Mixin selector
      named name Lnet/minecraft/world/gen/densityfunction/DensityFunctionTypes$WeirdScaledSampler$RarityValueMapper;name:Ljava/lang/String;
      intermediary field_37070 Lnet/minecraft/class_6916$class_6944$class_7048;field_37070:Ljava/lang/String;
      official d Ldxq$z$a;d:Ljava/lang/String;
    • scaleFunction

      final Double2DoubleFunction scaleFunction
      Mappings:
      Namespace Name Mixin selector
      named scaleFunction Lnet/minecraft/world/gen/densityfunction/DensityFunctionTypes$WeirdScaledSampler$RarityValueMapper;scaleFunction:Lit/unimi/dsi/fastutil/doubles/Double2DoubleFunction;
      intermediary field_37071 Lnet/minecraft/class_6916$class_6944$class_7048;field_37071:Lit/unimi/dsi/fastutil/doubles/Double2DoubleFunction;
      official e Ldxq$z$a;e:Lit/unimi/dsi/fastutil/doubles/Double2DoubleFunction;
    • maxValueMultiplier

      final double maxValueMultiplier
      Mappings:
      Namespace Name Mixin selector
      named maxValueMultiplier Lnet/minecraft/world/gen/densityfunction/DensityFunctionTypes$WeirdScaledSampler$RarityValueMapper;maxValueMultiplier:D
      intermediary field_37072 Lnet/minecraft/class_6916$class_6944$class_7048;field_37072:D
      official f Ldxq$z$a;f:D
  • Constructor Details

    • RarityValueMapper

      private RarityValueMapper(String name, Double2DoubleFunction scaleFunction, double maxValueMultiplier)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/world/gen/densityfunction/DensityFunctionTypes$WeirdScaledSampler$RarityValueMapper;<init>(Ljava/lang/String;ILjava/lang/String;Lit/unimi/dsi/fastutil/doubles/Double2DoubleFunction;D)V
      intermediary <init> Lnet/minecraft/class_6916$class_6944$class_7048;<init>(Ljava/lang/String;ILjava/lang/String;Lit/unimi/dsi/fastutil/doubles/Double2DoubleFunction;D)V
      official <init> Ldxq$z$a;<init>(Ljava/lang/String;ILjava/lang/String;Lit/unimi/dsi/fastutil/doubles/Double2DoubleFunction;D)V
  • Method Details

    • values

      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • asString

      public String asString()
      Returns the unique string representation of the enum, used for serialization.
      Specified by:
      asString in interface StringIdentifiable
      Returns:
      the unique string representation of the enum, used for serialization
      Mappings:
      Namespace Name Mixin selector
      named asString Lnet/minecraft/util/StringIdentifiable;asString()Ljava/lang/String;
      intermediary method_15434 Lnet/minecraft/class_3542;method_15434()Ljava/lang/String;
      official c Lazu;c()Ljava/lang/String;