Package net.minecraftforge.fml
Enum Class LogicalSide
- All Implemented Interfaces:
Serializable
,Comparable<LogicalSide>
,Constable
A logical side of the Minecraft game.
The client distribution has a copy of the logical client and the logical server, while the dedicated server distribution only holds the logical server.
- See Also:
-
Dist
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
isClient()
Returns if the logical side is the client.boolean
isServer()
Returns if this logical side is the server.static LogicalSide
Returns the enum constant of this class with the specified name.static LogicalSide[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
CLIENT
The logical client of the Minecraft game, which interfaces with the player's inputs and renders the player's viewpoint.The logical client is only shipped with the client distribution of the game.
- See Also:
-
Dist.CLIENT
-
SERVER
The logical server of the Minecraft game, responsible for connecting to clients and running the simulation logic on the level.The logical server is shipped with both client and dedicated server distributions. The client distribution runs the logical server for singleplayer mode and LAN play.
- See Also:
-
Dist.DEDICATED_SERVER
-
-
Constructor Details
-
LogicalSide
private LogicalSide()
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-
isServer
public boolean isServer()Returns if this logical side is the server.- Returns:
- if this logical side is the server
-
isClient
public boolean isClient()Returns if the logical side is the client.- Returns:
- if the logical side is the client
-