Class SpecialEntity

java.lang.Object
net.mcreator.element.GeneratableElement
net.mcreator.element.types.SpecialEntity
All Implemented Interfaces:
ICommonType, IMCItemProvider, ITabContainedElement

public class SpecialEntity extends GeneratableElement implements ICommonType, ITabContainedElement, IMCItemProvider
  • Field Details

  • Constructor Details

    • SpecialEntity

      public SpecialEntity(ModElement element)
  • Method Details

    • finalizeModElementGeneration

      public void finalizeModElementGeneration()
      Description copied from class: GeneratableElement
      This method should take care of generating additional mod element resources for cases such as GUI mod element
      Overrides:
      finalizeModElementGeneration in class GeneratableElement
    • generateModElementPicture

      public BufferedImage generateModElementPicture()
      Overrides:
      generateModElementPicture in class GeneratableElement
      Returns:
      BufferedImage of mod element preview or null if default mod element icon should be used
    • getBaseTypesProvided

      public Collection<BaseType> getBaseTypesProvided()
      Specified by:
      getBaseTypesProvided in interface ICommonType
    • getIconForMCItem

      public ImageIcon getIconForMCItem(Workspace workspace, String suffix)
      Description copied from interface: IMCItemProvider
      This method determines what icon should be used for a custom MCItem, according to its eventual suffix
      Specified by:
      getIconForMCItem in interface IMCItemProvider
      Parameters:
      workspace - The current workspace
      suffix - The suffix of the given MCItem (for example, "bucket" for fluid buckets). If this MCItem has no suffix, this will be the empty string.
      Returns:
      An ImageIcon to use for the given MCItem, or null to use the element preview image.
    • providedMCItems

      public List<MCItem> providedMCItems()
      Description copied from interface: IMCItemProvider
      This method determines what MCItems are provided by this generatable element

      WARNING: Calls to this method are generally not thread safe. Implementations can call MCItem.Custom::new that calls getBlockIconBasedOnName which calls ModElement#getGeneratableElement that is not thread safe

      Specified by:
      providedMCItems in interface IMCItemProvider
      Returns:
      A list of MCItems provided by this generatable element
    • getCreativeTabs

      public List<TabEntry> getCreativeTabs()
      Specified by:
      getCreativeTabs in interface ITabContainedElement
    • getCreativeTabItems

      public List<MCItem> getCreativeTabItems()
      Description copied from interface: ITabContainedElement
      WARNING: Calls to this method are generally not thread safe. Implementations can call MCItem.Custom::new that calls getBlockIconBasedOnName that calls ModElement#getGeneratableElement which is not thread safe
      Specified by:
      getCreativeTabItems in interface ITabContainedElement
      Returns:
      list of items in the creative tab of this element