static enum TropicalFishEntity.Variety extends Enum<TropicalFishEntity.Variety>
Enum Constant and Description |
---|
BETTY |
BLOCKFISH |
BRINELY |
CLAYFISH |
DASHER |
FLOPPER |
GLITTER |
KOB |
SNOOPER |
SPOTTY |
STRIPEY |
SUNSTREAK |
Modifier and Type | Field and Description |
---|---|
private int |
pattern |
private int |
shape |
private static TropicalFishEntity.Variety[] |
VALUES |
Modifier and Type | Method and Description |
---|---|
int |
getPattern() |
int |
getShape() |
static String |
getTranslateKey(int shape,
int pattern) |
String |
getTranslationKey() |
static TropicalFishEntity.Variety |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static TropicalFishEntity.Variety[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TropicalFishEntity.Variety KOB
public static final TropicalFishEntity.Variety SUNSTREAK
public static final TropicalFishEntity.Variety SNOOPER
public static final TropicalFishEntity.Variety DASHER
public static final TropicalFishEntity.Variety BRINELY
public static final TropicalFishEntity.Variety SPOTTY
public static final TropicalFishEntity.Variety FLOPPER
public static final TropicalFishEntity.Variety STRIPEY
public static final TropicalFishEntity.Variety GLITTER
public static final TropicalFishEntity.Variety BLOCKFISH
public static final TropicalFishEntity.Variety BETTY
public static final TropicalFishEntity.Variety CLAYFISH
private static final TropicalFishEntity.Variety[] VALUES
private final int shape
private final int pattern
public static TropicalFishEntity.Variety[] values()
for (TropicalFishEntity.Variety c : TropicalFishEntity.Variety.values()) System.out.println(c);
public static TropicalFishEntity.Variety valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic int getShape()
public int getPattern()
@Environment(value=CLIENT) public static String getTranslateKey(int shape, int pattern)
@Environment(value=CLIENT) public String getTranslationKey()