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 SummaryNested classes/interfaces inherited from class java.lang.EnumEnum.EnumDesc<E extends Enum<E>>
- 
Enum Constant SummaryEnum Constants
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionbooleanisClient()Returns if the logical side is the client.booleanisServer()Returns if this logical side is the server.static LogicalSideReturns 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- 
CLIENTThe 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
 
 
- 
SERVERThe 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- 
LogicalSideprivate LogicalSide()
 
- 
- 
Method Details- 
valuesReturns 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
 
- 
valueOfReturns 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 name
- NullPointerException- if the argument is null
 
- 
isServerpublic boolean isServer()Returns if this logical side is the server.- Returns:
- if this logical side is the server
 
- 
isClientpublic boolean isClient()Returns if the logical side is the client.- Returns:
- if the logical side is the client
 
 
-