Package net.minecraft
Class SharedConstants
java.lang.Object
net.minecraft.SharedConstants
public class SharedConstants extends Object
-
Field Summary
Fields Modifier and Type Field Description static longfield_22251private static com.mojang.bridge.game.GameVersiongameVersionstatic char[]INVALID_CHARS_LEVEL_NAMEstatic booleanisDevelopmentstatic io.netty.util.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
public static final io.netty.util.ResourceLeakDetector.Level RESOURCE_LEAK_DETECTOR_DISABLED -
field_22251
public static final long field_22251 -
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. -
isDevelopment
public static boolean isDevelopment -
INVALID_CHARS_LEVEL_NAME
public static final char[] INVALID_CHARS_LEVEL_NAME -
gameVersion
private static com.mojang.bridge.game.GameVersion gameVersion
-
-
Constructor Details
-
SharedConstants
public SharedConstants()
-
-
Method Details
-
isValidChar
public static boolean isValidChar(char chr) -
stripInvalidChars
-
getGameVersion
public static com.mojang.bridge.game.GameVersion getGameVersion() -
getProtocolVersion
public static int getProtocolVersion()
-