Package forestry.api.core
Interface IError
- All Known Implementing Classes:
ForestryError
public interface IError
An error describes when a certain working condition is not met and how to resolve the error.
-
Method Summary
Modifier and TypeMethodDescriptionnet.minecraft.resources.ResourceLocationgetId()net.minecraft.resources.ResourceLocation
-
Method Details
-
getId
net.minecraft.resources.ResourceLocation getId()- Returns:
- The unique ID for this error.
-
getDescriptionTranslationKey
String getDescriptionTranslationKey()- Returns:
- Translation key for a short name that succinctly describes the error. Ex. "Too Hot"
-
getHelpTranslationKey
String getHelpTranslationKey()- Returns:
- Translation key for a detailed message on how to fix the error. Ex. "Move the bees to a cooler climate."
-
getSprite
net.minecraft.resources.ResourceLocation getSprite()- Returns:
- Location of an icon sprite registered to the Forestry texture manager at
ITextureManager.
-