Package net.minecraft.network
Enum NetworkSide
- All Implemented Interfaces:
Serializable
,Comparable<NetworkSide>
,java.lang.constant.Constable
public enum NetworkSide extends Enum<NetworkSide>
- Mappings:
Namespace Name official pb
intermediary net/minecraft/class_2598
named net/minecraft/network/NetworkSide
-
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 CLIENTBOUND
SERVERBOUND
-
Constructor Summary
Constructors Modifier Constructor Description private
NetworkSide()
-
Method Summary
Modifier and Type Method Description static NetworkSide
valueOf(String name)
Returns the enum constant of this type with the specified name.static NetworkSide[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
SERVERBOUND
- Mappings:
Namespace Name Mixin selector official a
Lpb;a:Lpb;
intermediary field_11941
Lnet/minecraft/class_2598;field_11941:Lnet/minecraft/class_2598;
named SERVERBOUND
Lnet/minecraft/network/NetworkSide;SERVERBOUND:Lnet/minecraft/network/NetworkSide;
-
CLIENTBOUND
- Mappings:
Namespace Name Mixin selector official b
Lpb;b:Lpb;
intermediary field_11942
Lnet/minecraft/class_2598;field_11942:Lnet/minecraft/class_2598;
named CLIENTBOUND
Lnet/minecraft/network/NetworkSide;CLIENTBOUND:Lnet/minecraft/network/NetworkSide;
-
-
Constructor Details
-
NetworkSide
private NetworkSide()
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified nameNullPointerException
- if the argument is null
-