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

public abstract class GeneratableElement extends Object
  • Field Details

  • Constructor Details

    • GeneratableElement

      public GeneratableElement(ModElement element)
  • Method Details

    • getModElement

      public ModElement getModElement()
    • setModElement

      public void setModElement(ModElement element)
    • generateModElementPicture

      public BufferedImage 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

      @Nullable public IAdditionalTemplateDataProvider 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()