Package net.mcreator.element
Class GeneratableElement
java.lang.Object
net.mcreator.element.GeneratableElement
- Direct Known Subclasses:
Achievement
,Armor
,Attribute
,Biome
,Block
,Command
,CustomElement
,DamageType
,Dimension
,Enchantment
,Feature
,Fluid
,GameRule
,GeneratableElement.Unknown
,GUI
,Item
,ItemExtension
,KeyBinding
,LivingEntity
,NamespacedGeneratableElement
,Overlay
,Painting
,Particle
,Plant
,Potion
,PotionEffect
,Procedure
,Projectile
,Structure
,Tab
,Tool
,VillagerProfession
,VillagerTrade
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
static final class
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
This method should take care of generating additional mod element resources for cases such as GUI mod elementOverride this to add additional data to the element data modelboolean
final boolean
void
setModElement
(ModElement element) boolean
-
Field Details
-
formatVersion
public static final int formatVersion- See Also:
-
-
Constructor Details
-
GeneratableElement
-
-
Method Details
-
getModElement
-
setModElement
-
generateModElementPicture
- Returns:
- BufferedImage of mod element preview or null if default mod element icon should be used
-
finalizeModElementGeneration
public void finalizeModElementGeneration()This method should take care of generating additional mod element resources for cases such as GUI mod element -
getAdditionalTemplateData
Override this to add additional data to the element data model- Returns:
- null if no additional data, or IAdditionalTemplateDataProvider implementation
-
wasConversionApplied
public boolean wasConversionApplied() -
performQuickValidation
public final boolean performQuickValidation() -
isUnknown
public boolean isUnknown()
-