Package net.minecraft
Class SharedConstants
java.lang.Object
net.minecraft.SharedConstants
public class SharedConstants extends Object
- Mappings:
Namespace Name official w
intermediary net/minecraft/class_155
named net/minecraft/SharedConstants
-
Field Summary
Fields Modifier and Type Field Description static long
field_22251
private static com.mojang.bridge.game.GameVersion
gameVersion
static char[]
INVALID_CHARS_LEVEL_NAME
static boolean
isDevelopment
static ResourceLeakDetector.Level
RESOURCE_LEAK_DETECTOR_DISABLED
static boolean
useChoiceTypeRegistrations
Specifies whether Minecraft should use choice type registrations from the game's schema when entity types or block entity types are created. -
Constructor Summary
Constructors Constructor Description SharedConstants()
-
Method Summary
Modifier and Type Method Description static com.mojang.bridge.game.GameVersion
getGameVersion()
static int
getProtocolVersion()
static boolean
isValidChar(char chr)
static String
stripInvalidChars(String s)
-
Field Details
-
RESOURCE_LEAK_DETECTOR_DISABLED
- Mappings:
Namespace Name Mixin selector official a
Lw;a:Lio/netty/util/ResourceLeakDetector$Level;
intermediary field_1124
Lnet/minecraft/class_155;field_1124:Lio/netty/util/ResourceLeakDetector$Level;
named RESOURCE_LEAK_DETECTOR_DISABLED
Lnet/minecraft/SharedConstants;RESOURCE_LEAK_DETECTOR_DISABLED:Lio/netty/util/ResourceLeakDetector$Level;
-
field_22251
public static final long field_22251- Mappings:
Namespace Name Mixin selector official b
Lw;b:J
intermediary field_22251
Lnet/minecraft/class_155;field_22251:J
named field_22251
Lnet/minecraft/SharedConstants;field_22251:J
-
useChoiceTypeRegistrations
public static boolean useChoiceTypeRegistrationsSpecifies whether Minecraft should use choice type registrations from the game's schema when entity types or block entity types are created.- Mappings:
Namespace Name Mixin selector official c
Lw;c:Z
intermediary field_25135
Lnet/minecraft/class_155;field_25135:Z
named useChoiceTypeRegistrations
Lnet/minecraft/SharedConstants;useChoiceTypeRegistrations:Z
-
isDevelopment
public static boolean isDevelopment- Mappings:
Namespace Name Mixin selector official d
Lw;d:Z
intermediary field_1125
Lnet/minecraft/class_155;field_1125:Z
named isDevelopment
Lnet/minecraft/SharedConstants;isDevelopment:Z
-
INVALID_CHARS_LEVEL_NAME
public static final char[] INVALID_CHARS_LEVEL_NAME- Mappings:
Namespace Name Mixin selector official e
Lw;e:[C
intermediary field_1126
Lnet/minecraft/class_155;field_1126:[C
named INVALID_CHARS_LEVEL_NAME
Lnet/minecraft/SharedConstants;INVALID_CHARS_LEVEL_NAME:[C
-
gameVersion
private static com.mojang.bridge.game.GameVersion gameVersion- Mappings:
Namespace Name Mixin selector official f
Lw;f:Lcom/mojang/bridge/game/GameVersion;
intermediary field_16742
Lnet/minecraft/class_155;field_16742:Lcom/mojang/bridge/game/GameVersion;
named gameVersion
Lnet/minecraft/SharedConstants;gameVersion:Lcom/mojang/bridge/game/GameVersion;
-
-
Constructor Details
-
SharedConstants
public SharedConstants()
-
-
Method Details
-
isValidChar
public static boolean isValidChar(char chr)- Mappings:
Namespace Name Mixin selector official a
Lw;a(C)Z
intermediary method_643
Lnet/minecraft/class_155;method_643(C)Z
named isValidChar
Lnet/minecraft/SharedConstants;isValidChar(C)Z
-
stripInvalidChars
- Mappings:
Namespace Name Mixin selector official a
Lw;a(Ljava/lang/String;)Ljava/lang/String;
intermediary method_644
Lnet/minecraft/class_155;method_644(Ljava/lang/String;)Ljava/lang/String;
named stripInvalidChars
Lnet/minecraft/SharedConstants;stripInvalidChars(Ljava/lang/String;)Ljava/lang/String;
-
getGameVersion
public static com.mojang.bridge.game.GameVersion getGameVersion()- Mappings:
Namespace Name Mixin selector official a
Lw;a()Lcom/mojang/bridge/game/GameVersion;
intermediary method_16673
Lnet/minecraft/class_155;method_16673()Lcom/mojang/bridge/game/GameVersion;
named getGameVersion
Lnet/minecraft/SharedConstants;getGameVersion()Lcom/mojang/bridge/game/GameVersion;
-
getProtocolVersion
public static int getProtocolVersion()- Mappings:
Namespace Name Mixin selector official b
Lw;b()I
intermediary method_31372
Lnet/minecraft/class_155;method_31372()I
named getProtocolVersion
Lnet/minecraft/SharedConstants;getProtocolVersion()I
-