Enum Class SpreadType

java.lang.Object
java.lang.Enum<SpreadType>
net.minecraft.world.gen.chunk.placement.SpreadType
All Implemented Interfaces:
Serializable, Comparable<SpreadType>, Constable, StringIdentifiable

public enum SpreadType extends Enum<SpreadType> implements StringIdentifiable
Mappings:
Namespace Name
official dgf
intermediary net/minecraft/class_6873
named net/minecraft/world/gen/chunk/placement/SpreadType
  • Enum Constant Details

    • LINEAR

      public static final SpreadType LINEAR
      Mappings:
      Namespace Name Mixin selector
      official a Ldgf;a:Ldgf;
      intermediary field_36421 Lnet/minecraft/class_6873;field_36421:Lnet/minecraft/class_6873;
      named LINEAR Lnet/minecraft/world/gen/chunk/placement/SpreadType;LINEAR:Lnet/minecraft/world/gen/chunk/placement/SpreadType;
    • TRIANGULAR

      public static final SpreadType TRIANGULAR
      Mappings:
      Namespace Name Mixin selector
      official b Ldgf;b:Ldgf;
      intermediary field_36422 Lnet/minecraft/class_6873;field_36422:Lnet/minecraft/class_6873;
      named TRIANGULAR Lnet/minecraft/world/gen/chunk/placement/SpreadType;TRIANGULAR:Lnet/minecraft/world/gen/chunk/placement/SpreadType;
  • Field Details

    • VALUES

      private static final SpreadType[] VALUES
      Mappings:
      Namespace Name Mixin selector
      official d Ldgf;d:[Ldgf;
      intermediary field_36424 Lnet/minecraft/class_6873;field_36424:[Lnet/minecraft/class_6873;
      named VALUES Lnet/minecraft/world/gen/chunk/placement/SpreadType;VALUES:[Lnet/minecraft/world/gen/chunk/placement/SpreadType;
    • CODEC

      public static final com.mojang.serialization.Codec<SpreadType> CODEC
      Mappings:
      Namespace Name Mixin selector
      official c Ldgf;c:Lcom/mojang/serialization/Codec;
      intermediary field_36423 Lnet/minecraft/class_6873;field_36423:Lcom/mojang/serialization/Codec;
      named CODEC Lnet/minecraft/world/gen/chunk/placement/SpreadType;CODEC:Lcom/mojang/serialization/Codec;
    • name

      private final String name
      Mappings:
      Namespace Name Mixin selector
      official e Ldgf;e:Ljava/lang/String;
      intermediary field_36425 Lnet/minecraft/class_6873;field_36425:Ljava/lang/String;
      named name Lnet/minecraft/world/gen/chunk/placement/SpreadType;name:Ljava/lang/String;
  • Constructor Details

    • SpreadType

      private SpreadType(String name)
      Mappings:
      Namespace Name Mixin selector
      official <init> Ldgf;<init>(Ljava/lang/String;ILjava/lang/String;)V
      intermediary <init> Lnet/minecraft/class_6873;<init>(Ljava/lang/String;ILjava/lang/String;)V
      named <init> Lnet/minecraft/world/gen/chunk/placement/SpreadType;<init>(Ljava/lang/String;ILjava/lang/String;)V
  • Method Details

    • values

      public static SpreadType[] 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

      public static SpreadType valueOf(String name)
      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
    • byName

      public static SpreadType byName(String name)
      Mappings:
      Namespace Name Mixin selector
      official a Ldgf;a(Ljava/lang/String;)Ldgf;
      intermediary method_40174 Lnet/minecraft/class_6873;method_40174(Ljava/lang/String;)Lnet/minecraft/class_6873;
      named byName Lnet/minecraft/world/gen/chunk/placement/SpreadType;byName(Ljava/lang/String;)Lnet/minecraft/world/gen/chunk/placement/SpreadType;
    • asString

      public String asString()
      Specified by:
      asString in interface StringIdentifiable
      Mappings:
      Namespace Name Mixin selector
      official c Lajt;c()Ljava/lang/String;
      intermediary method_15434 Lnet/minecraft/class_3542;method_15434()Ljava/lang/String;
      named asString Lnet/minecraft/util/StringIdentifiable;asString()Ljava/lang/String;
    • get

      public int get(AbstractRandom random, int bound)
      Mappings:
      Namespace Name Mixin selector
      official a Ldgf;a(Lcun;I)I
      intermediary method_40173 Lnet/minecraft/class_6873;method_40173(Lnet/minecraft/class_5819;I)I
      named get Lnet/minecraft/world/gen/chunk/placement/SpreadType;get(Lnet/minecraft/world/gen/random/AbstractRandom;I)I