Enum Class Gender

java.lang.Object
java.lang.Enum<Gender>
com.wildfire.api.Gender
All Implemented Interfaces:
Serializable, Comparable<Gender>, Constable, net.minecraft.util.StringRepresentable

public enum Gender extends Enum<Gender> implements net.minecraft.util.StringRepresentable
  • Enum Constant Details

    • FEMALE

      public static final Gender FEMALE
    • MALE

      public static final Gender MALE
    • OTHER

      public static final Gender OTHER
  • Field Details

    • BY_ID

      public static final IntFunction<Gender> BY_ID
    • CODEC

      public static final com.mojang.serialization.Codec<Gender> CODEC
    • BY_ID_CODEC

      public static final com.mojang.serialization.Codec<Gender> BY_ID_CODEC
    • CODEC_OR_LEGACY

      public static final com.mojang.serialization.Codec<Gender> CODEC_OR_LEGACY
    • STREAM_CODEC

      public static final net.minecraft.network.codec.StreamCodec<io.netty.buffer.ByteBuf, Gender> STREAM_CODEC
  • Method Details

    • values

      public static Gender[] 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 Gender 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
    • getSerializedName

      public String getSerializedName()
      Specified by:
      getSerializedName in interface net.minecraft.util.StringRepresentable
    • getDisplayName

      public net.minecraft.network.chat.Component getDisplayName()
    • canHaveBreasts

      public boolean canHaveBreasts()
    • next

      public Gender next()
    • getTranslationKey

      public String getTranslationKey()