Class AntiRandom


  • public abstract class AntiRandom
    extends java.lang.Object
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected org.apache.logging.log4j.Logger LOG  
    • Constructor Summary

      Constructors 
      Constructor Description
      AntiRandom​(java.lang.String name)  
    • Field Detail

      • LOG

        protected final org.apache.logging.log4j.Logger LOG
    • Constructor Detail

      • AntiRandom

        public AntiRandom​(java.lang.String name)
    • Method Detail

      • init

        @Inject
        public void init()
      • execute

        public abstract void execute()
      • shouldExecute

        public abstract boolean shouldExecute()
      • doOnRender

        protected abstract void doOnRender​(RenderEvent event)
      • getName

        public java.lang.String getName()
      • setActive

        public final void setActive​(boolean active)
        Called by the RandomHandler to set whether or not this random is currently active.
        Parameters:
        active -
      • isActive

        public final boolean isActive()
        Get whether or not this random is currently active. Random is activated by the RandomHandler.
        Returns:
        boolean
      • setEnabled

        public final AntiRandom setEnabled​(boolean enabled)
      • isEnabled

        public final boolean isEnabled()