Package de.ellpeck.rockbottom.api
Class Constants
java.lang.Object
de.ellpeck.rockbottom.api.Constants
This class houses a list of constant values that are used by the game to do
different things. It might be useful to have access to these values for
modders.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThe permission level that the server admin (the host of the local server) should have by default.static final intThe amount of chunks in each direction (the radius) that any given player should load in the worldstatic final intThe amount of time that a chunk should stay loaded at minimum.static final intThe amount of tiles that there are, horizontally and vertically, in a chunkstatic final StringThis is a link to the website of the author of the game, Ellpeckstatic final byteThe maximum light value that any given position in the world can havestatic final intThe amount of chunks in each direction (the radius) that should be persistent surrounding the chunk at 0, 0.static final floatThe percentage of random tile rendering updates that should take place per tickstatic final intThe amount of random tile updates that should take place per tickstatic final StringThe separator for any resources, game or mod based.static final intThe amount of ticks that a second should havestatic final intThe amount of ticks that a full day in the world should havestatic final StringThis is a link to the changelog file that the update gui gets its data from on startupstatic final StringThis is a link to the website of the game -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
RESOURCE_SEPARATOR
The separator for any resources, game or mod based.- See Also:
-
TARGET_TPS
public static final int TARGET_TPSThe amount of ticks that a second should have- See Also:
-
RANDOM_TILE_UPDATES
public static final int RANDOM_TILE_UPDATESThe amount of random tile updates that should take place per tick -
RANDOM_TILE_RENDER_UPDATES
public static final float RANDOM_TILE_RENDER_UPDATESThe percentage of random tile rendering updates that should take place per tick -
CHUNK_SIZE
public static final int CHUNK_SIZEThe amount of tiles that there are, horizontally and vertically, in a chunk- See Also:
-
MAX_LIGHT
public static final byte MAX_LIGHTThe maximum light value that any given position in the world can have -
TIME_PER_DAY
public static final int TIME_PER_DAYThe amount of ticks that a full day in the world should have- See Also:
-
CHUNK_LOAD_DISTANCE
public static final int CHUNK_LOAD_DISTANCEThe amount of chunks in each direction (the radius) that any given player should load in the world -
PERSISTENT_CHUNK_DISTANCE
public static final int PERSISTENT_CHUNK_DISTANCEThe amount of chunks in each direction (the radius) that should be persistent surrounding the chunk at 0, 0. -
CHUNK_LOAD_TIME
public static final int CHUNK_LOAD_TIMEThe amount of time that a chunk should stay loaded at minimum. This is a buffer timer in case players rapidly move around on a chunk border to avoid lag. Additionally, this reduces performance loss with entities or tiles accidentally loading neighboring chunks.- See Also:
-
ADMIN_PERMISSION
public static final int ADMIN_PERMISSIONThe permission level that the server admin (the host of the local server) should have by default. -
UPDATE_LINK
This is a link to the changelog file that the update gui gets its data from on startup- See Also:
-
ELLPECK_LINK
This is a link to the website of the author of the game, Ellpeck- See Also:
-
WEBSITE_LINK
This is a link to the website of the game- See Also:
-
-
Constructor Details
-
Constants
public Constants()
-