Package net.minecraft
Class SharedConstants
java.lang.Object
net.minecraft.SharedConstants
public class SharedConstants extends Object
- Mappings:
Namespace Name official wintermediary net/minecraft/class_155named net/minecraft/SharedConstants
-
Field Summary
Fields Modifier and Type Field Description static longfield_22251private static com.mojang.bridge.game.GameVersiongameVersionstatic char[]INVALID_CHARS_LEVEL_NAMEstatic booleanisDevelopmentstatic ResourceLeakDetector.LevelRESOURCE_LEAK_DETECTOR_DISABLEDstatic booleanuseChoiceTypeRegistrationsSpecifies 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.GameVersiongetGameVersion()static intgetProtocolVersion()static booleanisValidChar(char chr)static StringstripInvalidChars(String s)
-
Field Details
-
RESOURCE_LEAK_DETECTOR_DISABLED
- Mappings:
Namespace Name Mixin selector official aLw;a:Lio/netty/util/ResourceLeakDetector$Level;intermediary field_1124Lnet/minecraft/class_155;field_1124:Lio/netty/util/ResourceLeakDetector$Level;named RESOURCE_LEAK_DETECTOR_DISABLEDLnet/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 bLw;b:Jintermediary field_22251Lnet/minecraft/class_155;field_22251:Jnamed field_22251Lnet/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 cLw;c:Zintermediary field_25135Lnet/minecraft/class_155;field_25135:Znamed useChoiceTypeRegistrationsLnet/minecraft/SharedConstants;useChoiceTypeRegistrations:Z
-
isDevelopment
public static boolean isDevelopment- Mappings:
Namespace Name Mixin selector official dLw;d:Zintermediary field_1125Lnet/minecraft/class_155;field_1125:Znamed isDevelopmentLnet/minecraft/SharedConstants;isDevelopment:Z
-
INVALID_CHARS_LEVEL_NAME
public static final char[] INVALID_CHARS_LEVEL_NAME- Mappings:
Namespace Name Mixin selector official eLw;e:[Cintermediary field_1126Lnet/minecraft/class_155;field_1126:[Cnamed INVALID_CHARS_LEVEL_NAMELnet/minecraft/SharedConstants;INVALID_CHARS_LEVEL_NAME:[C
-
gameVersion
private static com.mojang.bridge.game.GameVersion gameVersion- Mappings:
Namespace Name Mixin selector official fLw;f:Lcom/mojang/bridge/game/GameVersion;intermediary field_16742Lnet/minecraft/class_155;field_16742:Lcom/mojang/bridge/game/GameVersion;named gameVersionLnet/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 aLw;a(C)Zintermediary method_643Lnet/minecraft/class_155;method_643(C)Znamed isValidCharLnet/minecraft/SharedConstants;isValidChar(C)Z
-
stripInvalidChars
- Mappings:
Namespace Name Mixin selector official aLw;a(Ljava/lang/String;)Ljava/lang/String;intermediary method_644Lnet/minecraft/class_155;method_644(Ljava/lang/String;)Ljava/lang/String;named stripInvalidCharsLnet/minecraft/SharedConstants;stripInvalidChars(Ljava/lang/String;)Ljava/lang/String;
-
getGameVersion
public static com.mojang.bridge.game.GameVersion getGameVersion()- Mappings:
Namespace Name Mixin selector official aLw;a()Lcom/mojang/bridge/game/GameVersion;intermediary method_16673Lnet/minecraft/class_155;method_16673()Lcom/mojang/bridge/game/GameVersion;named getGameVersionLnet/minecraft/SharedConstants;getGameVersion()Lcom/mojang/bridge/game/GameVersion;
-
getProtocolVersion
public static int getProtocolVersion()- Mappings:
Namespace Name Mixin selector official bLw;b()Iintermediary method_31372Lnet/minecraft/class_155;method_31372()Inamed getProtocolVersionLnet/minecraft/SharedConstants;getProtocolVersion()I
-