Class ClientWorld
java.lang.Object
com.viaversion.viaversion.api.minecraft.ClientWorld
- All Implemented Interfaces:
StorableObject
Stored up until 1.14 to be used in chunk sending.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleansetEnvironment(int environmentId) Sets the environment of the world and returns whether the environment was changed.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.viaversion.viaversion.api.connection.StorableObject
onRemove
-
Constructor Details
-
ClientWorld
public ClientWorld() -
ClientWorld
-
-
Method Details
-
getEnvironment
-
setEnvironment
public boolean setEnvironment(int environmentId) Sets the environment of the world and returns whether the environment was changed.- Parameters:
environmentId- the id of the environment to set- Returns:
- whether the environment was changed
-