public enum EnumTemperature extends java.lang.Enum<EnumTemperature>
This enum concerns temperature.
| Enum Constant and Description |
|---|
COLD |
HELLISH |
HOT |
ICY |
NONE |
NORMAL |
WARM |
| Modifier and Type | Field and Description |
|---|---|
int |
color |
java.lang.String |
iconIndex |
java.lang.String |
name |
static EnumTemperature[] |
VALUES |
| Modifier and Type | Method and Description |
|---|---|
static EnumTemperature |
getFromBiome(net.minecraft.world.biome.Biome biome) |
static EnumTemperature |
getFromBiome(net.minecraft.world.biome.Biome biome,
net.minecraft.util.math.BlockPos pos) |
static EnumTemperature |
getFromBiome(net.minecraft.world.biome.Biome biome,
net.minecraft.world.World world,
net.minecraft.util.math.BlockPos pos)
Deprecated.
Use the version below.
|
static EnumTemperature |
getFromValue(float rawTemp)
Determines the EnumTemperature given a floating point representation of
Minecraft temperature.
|
java.lang.String |
getName() |
net.minecraft.client.renderer.texture.TextureAtlasSprite |
getSprite() |
static EnumTemperature |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static EnumTemperature[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final EnumTemperature NONE
public static final EnumTemperature ICY
public static final EnumTemperature COLD
public static final EnumTemperature NORMAL
public static final EnumTemperature WARM
public static final EnumTemperature HOT
public static final EnumTemperature HELLISH
public static EnumTemperature[] VALUES
public final java.lang.String name
public final java.lang.String iconIndex
public final int color
public static EnumTemperature[] values()
for (EnumTemperature c : EnumTemperature.values()) System.out.println(c);
public static EnumTemperature valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic java.lang.String getName()
public net.minecraft.client.renderer.texture.TextureAtlasSprite getSprite()
public static EnumTemperature getFromValue(float rawTemp)
rawTemp - raw temperature valuepublic static EnumTemperature getFromBiome(net.minecraft.world.biome.Biome biome)
@Deprecated public static EnumTemperature getFromBiome(net.minecraft.world.biome.Biome biome, net.minecraft.world.World world, net.minecraft.util.math.BlockPos pos)
public static EnumTemperature getFromBiome(net.minecraft.world.biome.Biome biome, net.minecraft.util.math.BlockPos pos)