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
named net/minecraft/world/gen/chunk/placement/SpreadType
intermediary net/minecraft/class_6873
official epf
  • Enum Constant Details

    • LINEAR

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

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

    • CODEC

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

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

    • SpreadType

      private SpreadType(String name)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/world/gen/chunk/placement/SpreadType;<init>(Ljava/lang/String;ILjava/lang/String;)V
      intermediary <init> Lnet/minecraft/class_6873;<init>(Ljava/lang/String;ILjava/lang/String;)V
      official <init> Lepf;<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
      named asString Lnet/minecraft/util/StringIdentifiable;asString()Ljava/lang/String;
      intermediary method_15434 Lnet/minecraft/class_3542;method_15434()Ljava/lang/String;
      official c Lbba;c()Ljava/lang/String;
    • get

      public int get(Random random, int bound)
      Mappings:
      Namespace Name Mixin selector
      named get Lnet/minecraft/world/gen/chunk/placement/SpreadType;get(Lnet/minecraft/util/math/random/Random;I)I
      intermediary method_40173 Lnet/minecraft/class_6873;method_40173(Lnet/minecraft/class_5819;I)I
      official a Lepf;a(Lbam;I)I