public static enum ItemWeatherContainer.WeatherContainerType extends java.lang.Enum<ItemWeatherContainer.WeatherContainerType>
| Enum Constant and Description |
|---|
CLEAR
Clear weather container.
|
EMPTY
Empty weather container.
|
LIGHTNING
Lightning weather container.
|
RAIN
Rain weather container.
|
| Modifier and Type | Method and Description |
|---|---|
static ItemWeatherContainer.WeatherContainerType |
getWeatherContainerType(WeatherType weatherType)
Returns the WeatherContainerType corresponding to the
given WeatherType.
|
void |
onFill(net.minecraft.world.World world,
net.minecraft.item.ItemStack containerStack)
When the actual filling of the container should be called.
|
void |
onUse(net.minecraft.world.World world,
net.minecraft.item.ItemStack containerStack)
When the actual usage of the container should be called.
|
static ItemWeatherContainer.WeatherContainerType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ItemWeatherContainer.WeatherContainerType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ItemWeatherContainer.WeatherContainerType EMPTY
public static final ItemWeatherContainer.WeatherContainerType CLEAR
public static final ItemWeatherContainer.WeatherContainerType RAIN
public static final ItemWeatherContainer.WeatherContainerType LIGHTNING
public static ItemWeatherContainer.WeatherContainerType[] values()
for (ItemWeatherContainer.WeatherContainerType c : ItemWeatherContainer.WeatherContainerType.values()) System.out.println(c);
public static ItemWeatherContainer.WeatherContainerType 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 void onFill(net.minecraft.world.World world,
net.minecraft.item.ItemStack containerStack)
world - The world.containerStack - The weather container that was filled.public void onUse(net.minecraft.world.World world,
net.minecraft.item.ItemStack containerStack)
world - The world.containerStack - The weather container that was thrown.public static ItemWeatherContainer.WeatherContainerType getWeatherContainerType(WeatherType weatherType)
weatherType - The WeatherType.