Class PotionEffect

java.lang.Object
net.mcreator.element.GeneratableElement
net.mcreator.element.types.PotionEffect

public class PotionEffect extends GeneratableElement
  • Field Details

    • effectName

      public String effectName
    • icon

      public TextureHolder icon
    • color

      public Color color
    • isInstant

      public boolean isInstant
    • mobEffectCategory

      public String mobEffectCategory
    • renderStatusInInventory

      public boolean renderStatusInInventory
    • renderStatusInHUD

      public boolean renderStatusInHUD
    • isCuredByMilk

      public boolean isCuredByMilk
    • isProtectedByTotem

      public boolean isProtectedByTotem
    • isCuredbyHoney

      public boolean isCuredbyHoney
    • modifiers

    • onStarted

      public Procedure onStarted
    • onActiveTick

      public Procedure onActiveTick
    • onExpired

      public Procedure onExpired
    • activeTickCondition

      public Procedure activeTickCondition
  • Constructor Details

    • PotionEffect

      public PotionEffect(ModElement element)
  • Method Details

    • 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
    • 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
    • hasCustomRenderer

      public boolean hasCustomRenderer()