public enum TickType extends Enum<TickType>
Enum Constant and Description |
---|
CLIENT
client side only
Fired once per client tick loop.
|
CLIENTGUI
Deprecated.
|
GUI
Deprecated.
|
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
@Deprecated public static final TickType GUI
@Deprecated public static final TickType CLIENTGUI
public static final TickType WORLDLOAD
public static final TickType PLAYER
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 nullpublic EnumSet<TickType> partnerTicks()