Package forestry.api.core
Enum Class ForestryError
- All Implemented Interfaces:
IError,Serializable,Comparable<ForestryError>,Constable
All errors used by base Forestry for its blocks and items.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescription -
Method Summary
Modifier and TypeMethodDescriptionnet.minecraft.resources.ResourceLocationgetId()net.minecraft.resources.ResourceLocationstatic ForestryErrorReturns the enum constant of this class with the specified name.static ForestryError[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
INVALID
-
TOO_HOT
-
TOO_COLD
-
TOO_HUMID
-
TOO_ARID
-
IS_RAINING
-
NOT_GLOOMY
-
NOT_BRIGHT
-
NOT_DAY
-
NOT_NIGHT
-
NOT_TWILIGHT
-
NO_FLOWER
-
NO_QUEEN
-
NO_DRONE
-
NO_SKY
-
SLEEPY
-
NO_RESOURCE
-
NO_RESOURCE_INVENTORY
-
NO_RESOURCE_LIQUID
-
NO_RECIPE
-
NO_SPACE_INVENTORY
-
NO_SPACE_TANK
-
NO_POWER
-
NO_REDSTONE
-
DISABLED_BY_REDSTONE
-
NOT_DARK
-
NOT_RAINING
-
NO_RAIN_BIOME
-
NO_SKY_RAIN_TANK
-
NO_HONEY
-
NO_SPECIMEN
-
FORCED_COOLDOWN
-
NO_FUEL
-
NO_HEAT
-
NO_ENERGY_NET
-
NO_STAMPS
-
NO_PAPER
-
NO_SUPPLIES
-
NO_TRADE
-
NOT_ALPHANUMERIC
-
NOT_UNIQUE
-
NOT_POST_PAID
-
NO_RECIPIENT
-
NO_CIRCUIT_BOARD
-
NO_CIRCUIT_LAYOUT
-
CIRCUIT_MISMATCH
-
NO_FERTILIZER
-
NO_FARMLAND
-
NO_LIQUID_FARM
-
-
Method Details
-
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
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 nameNullPointerException- if the argument is null
-
getDescriptionTranslationKey
- Specified by:
getDescriptionTranslationKeyin interfaceIError- Returns:
- Translation key for a short name that succinctly describes the error. Ex. "Too Hot"
-
getHelpTranslationKey
- Specified by:
getHelpTranslationKeyin interfaceIError- Returns:
- Translation key for a detailed message on how to fix the error. Ex. "Move the bees to a cooler climate."
-
getSprite
public net.minecraft.resources.ResourceLocation getSprite()- Specified by:
getSpritein interfaceIError- Returns:
- Location of an icon sprite registered to the Forestry texture manager at
ITextureManager.
-
getId
public net.minecraft.resources.ResourceLocation getId()
-