public enum TickType extends Enum<TickType>
Enum Constant and Description |
---|
CLIENT
client side only
Fired once per client tick loop.
|
PLAYER
client and server side.
|
RENDER
client side
Fired during the render processing phase
arg 0 : float "partial render time"
|
SERVER
server side only.
|
WORLD
Fired during the world evaluation loop
server and client side
arg 0 : The world that is ticking
|
WORLDLOAD
server side
Fired once as the world loads from disk
|
Modifier and Type | Method and Description |
---|---|
EnumSet<TickType> |
partnerTicks()
Partner ticks that are also cancelled by returning false from onTickInGame
|
static TickType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static TickType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TickType WORLD
public static final TickType RENDER
public static final TickType WORLDLOAD
public static final TickType CLIENT
public static final TickType PLAYER
public static final TickType SERVER
public static TickType[] values()
for (TickType c : TickType.values()) System.out.println(c);
public static TickType valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant
with the specified nameNullPointerException
- if the argument is null