Class TickHandlerBase
java.lang.Object
com.pixelmonmod.pixelmon.entities.pixelmon.tickHandlers.TickHandlerBase
- Direct Known Subclasses:
CastformTickHandler,ShearableTickHandler
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedTickHandlerBase(AbstractBaseEntity pixelmon, int refreshRate) Initializes a tick handler. -
Method Summary
-
Field Details
-
pixelmon
-
-
Constructor Details
-
TickHandlerBase
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 tickableAbstractBaseEntityis in.- Returns:
- Whether to remove this tick handler from the entity or not.
-
tick
public boolean tick(net.minecraft.world.level.Level world)
-