java.lang.Object
com.pixelmonmod.pixelmon.entities.pixelmon.tickHandlers.TickHandlerBase
Direct Known Subclasses:
CastformTickHandler, ShearableTickHandler

public abstract class TickHandlerBase extends Object
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
     
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
    TickHandlerBase(AbstractBaseEntity pixelmon, int refreshRate)
    Initializes a tick handler.
  • Method Summary

    Modifier and Type
    Method
    Description
    protected abstract boolean
    onTick(net.minecraft.world.level.Level world)
    Overridable tick method where the actual function of the tick handler should be contained.
    boolean
    tick(net.minecraft.world.level.Level world)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

  • Constructor Details

    • TickHandlerBase

      protected TickHandlerBase(AbstractBaseEntity pixelmon, int refreshRate)
      Initializes a tick handler.
      Parameters:
      pixelmon - The Pokémon with the tick handler.
  • Method Details

    • onTick

      protected abstract boolean onTick(net.minecraft.world.level.Level world)
      Overridable tick method where the actual function of the tick handler should be contained.
      Parameters:
      world - The world the tickable AbstractBaseEntity is in.
      Returns:
      Whether to remove this tick handler from the entity or not.
    • tick

      public boolean tick(net.minecraft.world.level.Level world)