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 dpl
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 Ldpl;a:Ldpl;
      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 Ldpl;b:Ldpl;
      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

    • CODEC

      public static final StringIdentifiable.Codec<SpreadType> CODEC
      Mappings:
      Namespace Name Mixin selector
      official c Ldpl;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 d Ldpl;d: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> Ldpl;<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
    • 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
      official c Laor;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(Random random, int bound)
      Mappings:
      Namespace Name Mixin selector
      official a Ldpl;a(Laoh;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/util/math/random/Random;I)I