public abstract class TickHandlerBase
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected AbstractBaseEntity |
pixelmon |
Constructor and Description |
---|
TickHandlerBase(AbstractBaseEntity pixelmon) |
TickHandlerBase(AbstractBaseEntity pixelmon,
int refreshRate)
Initializes a tick handler.
|
Modifier and Type | Method and Description |
---|---|
static TickHandlerBase |
getTickHandler(PixelmonEntity pixelmon)
Gets the tick handler for a Pokémon.
|
protected abstract boolean |
onTick(net.minecraft.world.World world)
Overridable tick method where the actual function of the tick handler should be contained.
|
boolean |
tick(net.minecraft.world.World world) |
protected AbstractBaseEntity pixelmon
public TickHandlerBase(AbstractBaseEntity pixelmon, int refreshRate)
pixelmon
- The Pokémon with the tick handler.public TickHandlerBase(AbstractBaseEntity pixelmon)
protected abstract boolean onTick(net.minecraft.world.World world)
world
- The world the tickable AbstractBaseEntity
is in.public boolean tick(net.minecraft.world.World world)
public static TickHandlerBase getTickHandler(PixelmonEntity pixelmon)
pixelmon
- The Pokémon to get the tick handler for.