Enum Class LogicalSide

java.lang.Object
java.lang.Enum<LogicalSide>
net.minecraftforge.fml.LogicalSide
All Implemented Interfaces:
Serializable, Comparable<LogicalSide>, Constable

public enum LogicalSide extends Enum<LogicalSide>
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

    Enum Constants
    Enum Constant
    Description
    The logical client of the Minecraft game, which interfaces with the player's inputs and renders the player's viewpoint.
    The logical server of the Minecraft game, responsible for connecting to clients and running the simulation logic on the level.
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    private
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Returns if the logical side is the client.
    boolean
    Returns if this logical side is the server.
    Returns the enum constant of this class with the specified name.
    static LogicalSide[]
    Returns an array containing the constants of this enum class, in the order they are declared.

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, wait, wait, wait
  • Enum Constant Details

    • CLIENT

      public static final LogicalSide 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

      public static final LogicalSide 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

      public static LogicalSide[] 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

      public static LogicalSide valueOf(String name)
      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 name
      NullPointerException - 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