Package net.minecraft

Class SharedConstants

java.lang.Object
net.minecraft.SharedConstants

public class SharedConstants extends Object
  • Field Details

    • SNAPSHOT

      @Deprecated public static final boolean SNAPSHOT
      Deprecated.
      See Also:
      Constant Field Values
    • WORLD_VERSION

      @Deprecated public static final int WORLD_VERSION
      Deprecated.
      See Also:
      Constant Field Values
    • VERSION_STRING

      @Deprecated public static final String VERSION_STRING
      Deprecated.
      See Also:
      Constant Field Values
    • RELEASE_TARGET

      @Deprecated public static final String RELEASE_TARGET
      Deprecated.
      See Also:
      Constant Field Values
    • RELEASE_NETWORK_PROTOCOL_VERSION

      @Deprecated public static final int RELEASE_NETWORK_PROTOCOL_VERSION
      Deprecated.
      See Also:
      Constant Field Values
    • SNAPSHOT_NETWORK_PROTOCOL_VERSION

      @Deprecated public static final int SNAPSHOT_NETWORK_PROTOCOL_VERSION
      Deprecated.
      See Also:
      Constant Field Values
    • SNBT_NAG_VERSION

      public static final int SNBT_NAG_VERSION
      See Also:
      Constant Field Values
    • SNAPSHOT_PROTOCOL_BIT

      private static final int SNAPSHOT_PROTOCOL_BIT
      See Also:
      Constant Field Values
    • RESOURCE_PACK_FORMAT

      @Deprecated public static final int RESOURCE_PACK_FORMAT
      Deprecated.
      See Also:
      Constant Field Values
    • DATA_PACK_FORMAT

      @Deprecated public static final int DATA_PACK_FORMAT
      Deprecated.
      See Also:
      Constant Field Values
    • DATA_VERSION_TAG

      public static final String DATA_VERSION_TAG
      See Also:
      Constant Field Values
    • CNC_PART_2

      public static final boolean CNC_PART_2
      See Also:
      Constant Field Values
    • CNC_PART_2_ITEMS_AND_BLOCKS

      public static final boolean CNC_PART_2_ITEMS_AND_BLOCKS
      See Also:
      Constant Field Values
    • NEW_WORLD_GENERATION

      public static final boolean NEW_WORLD_GENERATION
      See Also:
      Constant Field Values
    • EXTENDED_WORLD_HEIGHT

      public static final boolean EXTENDED_WORLD_HEIGHT
      See Also:
      Constant Field Values
    • AQUIFER_ENABLED_CARVERS

      public static final boolean AQUIFER_ENABLED_CARVERS
      See Also:
      Constant Field Values
    • USE_NEW_RENDERSYSTEM

      public static final boolean USE_NEW_RENDERSYSTEM
      See Also:
      Constant Field Values
    • MULTITHREADED_RENDERING

      public static final boolean MULTITHREADED_RENDERING
      See Also:
      Constant Field Values
    • FIX_TNT_DUPE

      public static final boolean FIX_TNT_DUPE
      See Also:
      Constant Field Values
    • FIX_SAND_DUPE

      public static final boolean FIX_SAND_DUPE
      See Also:
      Constant Field Values
    • ENABLE_SNOOPER

      public static final boolean ENABLE_SNOOPER
      See Also:
      Constant Field Values
    • USE_DEBUG_FEATURES

      public static final boolean USE_DEBUG_FEATURES
      See Also:
      Constant Field Values
    • ALLOW_INCOMPATIBLE_WORLD_HEIGHT

      public static final boolean ALLOW_INCOMPATIBLE_WORLD_HEIGHT
      See Also:
      Constant Field Values
    • DEBUG_HOTKEYS

      public static final boolean DEBUG_HOTKEYS
      See Also:
      Constant Field Values
    • DEBUG_UI_NARRATION

      public static final boolean DEBUG_UI_NARRATION
      See Also:
      Constant Field Values
    • DEBUG_RENDER

      public static final boolean DEBUG_RENDER
      See Also:
      Constant Field Values
    • DEBUG_PATHFINDING

      public static final boolean DEBUG_PATHFINDING
      See Also:
      Constant Field Values
    • DEBUG_WATER

      public static final boolean DEBUG_WATER
      See Also:
      Constant Field Values
    • DEBUG_HEIGHTMAP

      public static final boolean DEBUG_HEIGHTMAP
      See Also:
      Constant Field Values
    • DEBUG_COLLISION

      public static final boolean DEBUG_COLLISION
      See Also:
      Constant Field Values
    • DEBUG_SHAPES

      public static final boolean DEBUG_SHAPES
      See Also:
      Constant Field Values
    • DEBUG_NEIGHBORSUPDATE

      public static final boolean DEBUG_NEIGHBORSUPDATE
      See Also:
      Constant Field Values
    • DEBUG_STRUCTURES

      public static final boolean DEBUG_STRUCTURES
      See Also:
      Constant Field Values
    • DEBUG_LIGHT

      public static final boolean DEBUG_LIGHT
      See Also:
      Constant Field Values
    • DEBUG_WORLDGENATTEMPT

      public static final boolean DEBUG_WORLDGENATTEMPT
      See Also:
      Constant Field Values
    • DEBUG_SOLID_FACE

      public static final boolean DEBUG_SOLID_FACE
      See Also:
      Constant Field Values
    • DEBUG_CHUNKS

      public static final boolean DEBUG_CHUNKS
      See Also:
      Constant Field Values
    • DEBUG_GAME_EVENT_LISTENERS

      public static final boolean DEBUG_GAME_EVENT_LISTENERS
      See Also:
      Constant Field Values
    • DEBUG_DUMP_TEXTURE_ATLAS

      public static final boolean DEBUG_DUMP_TEXTURE_ATLAS
      See Also:
      Constant Field Values
    • DEBUG_DUMP_INTERPOLATED_TEXTURE_FRAMES

      public static final boolean DEBUG_DUMP_INTERPOLATED_TEXTURE_FRAMES
      See Also:
      Constant Field Values
    • DEBUG_STRUCTURE_EDIT_MODE

      public static final boolean DEBUG_STRUCTURE_EDIT_MODE
      See Also:
      Constant Field Values
    • DEBUG_SAVE_STRUCTURES_AS_SNBT

      public static final boolean DEBUG_SAVE_STRUCTURES_AS_SNBT
      See Also:
      Constant Field Values
    • DEBUG_SYNCHRONOUS_GL_LOGS

      public static final boolean DEBUG_SYNCHRONOUS_GL_LOGS
      See Also:
      Constant Field Values
    • DEBUG_VERBOSE_SERVER_EVENTS

      public static final boolean DEBUG_VERBOSE_SERVER_EVENTS
      See Also:
      Constant Field Values
    • DEBUG_NAMED_RUNNABLES

      public static final boolean DEBUG_NAMED_RUNNABLES
      See Also:
      Constant Field Values
    • DEBUG_GOAL_SELECTOR

      public static final boolean DEBUG_GOAL_SELECTOR
      See Also:
      Constant Field Values
    • DEBUG_VILLAGE_SECTIONS

      public static final boolean DEBUG_VILLAGE_SECTIONS
      See Also:
      Constant Field Values
    • DEBUG_BRAIN

      public static final boolean DEBUG_BRAIN
      See Also:
      Constant Field Values
    • DEBUG_BEES

      public static final boolean DEBUG_BEES
      See Also:
      Constant Field Values
    • DEBUG_RAIDS

      public static final boolean DEBUG_RAIDS
      See Also:
      Constant Field Values
    • DEBUG_BLOCK_BREAK

      public static final boolean DEBUG_BLOCK_BREAK
      See Also:
      Constant Field Values
    • DEBUG_RESOURCE_LOAD_TIMES

      public static final boolean DEBUG_RESOURCE_LOAD_TIMES
      See Also:
      Constant Field Values
    • DEBUG_MONITOR_TICK_TIMES

      public static final boolean DEBUG_MONITOR_TICK_TIMES
      See Also:
      Constant Field Values
    • DEBUG_KEEP_JIGSAW_BLOCKS_DURING_STRUCTURE_GEN

      public static final boolean DEBUG_KEEP_JIGSAW_BLOCKS_DURING_STRUCTURE_GEN
      See Also:
      Constant Field Values
    • DEBUG_DONT_SAVE_WORLD

      public static final boolean DEBUG_DONT_SAVE_WORLD
      See Also:
      Constant Field Values
    • DEBUG_LARGE_DRIPSTONE

      public static final boolean DEBUG_LARGE_DRIPSTONE
      See Also:
      Constant Field Values
    • DEBUG_PACKET_SERIALIZATION

      public static final boolean DEBUG_PACKET_SERIALIZATION
      See Also:
      Constant Field Values
    • DEBUG_CARVERS

      public static final boolean DEBUG_CARVERS
      See Also:
      Constant Field Values
    • DEBUG_ORE_VEINS

      public static final boolean DEBUG_ORE_VEINS
      See Also:
      Constant Field Values
    • DEBUG_SMALL_SPAWN

      public static final boolean DEBUG_SMALL_SPAWN
      See Also:
      Constant Field Values
    • DEBUG_DISABLE_LIQUID_SPREADING

      public static final boolean DEBUG_DISABLE_LIQUID_SPREADING
      See Also:
      Constant Field Values
    • DEBUG_ONLY_GENERATE_HALF_THE_WORLD

      public static final boolean DEBUG_ONLY_GENERATE_HALF_THE_WORLD
      See Also:
      Constant Field Values
    • DEBUG_DISABLE_FLUID_GENERATION

      public static final boolean DEBUG_DISABLE_FLUID_GENERATION
      See Also:
      Constant Field Values
    • DEBUG_DISABLE_AQUIFERS

      public static final boolean DEBUG_DISABLE_AQUIFERS
      See Also:
      Constant Field Values
    • DEBUG_DISABLE_NOISE_CAVES

      public static final boolean DEBUG_DISABLE_NOISE_CAVES
      See Also:
      Constant Field Values
    • DEBUG_DISABLE_SURFACE

      public static final boolean DEBUG_DISABLE_SURFACE
      See Also:
      Constant Field Values
    • DEBUG_DISABLE_CARVERS

      public static final boolean DEBUG_DISABLE_CARVERS
      See Also:
      Constant Field Values
    • DEBUG_DISABLE_STRUCTURES

      public static final boolean DEBUG_DISABLE_STRUCTURES
      See Also:
      Constant Field Values
    • DEBUG_DISABLE_FEATURES

      public static final boolean DEBUG_DISABLE_FEATURES
      See Also:
      Constant Field Values
    • DEBUG_DISABLE_ORE_VEINS

      public static final boolean DEBUG_DISABLE_ORE_VEINS
      See Also:
      Constant Field Values
    • DEBUG_DISABLE_NOODLE_CAVES

      public static final boolean DEBUG_DISABLE_NOODLE_CAVES
      See Also:
      Constant Field Values
    • DEFAULT_MINECRAFT_PORT

      public static final int DEFAULT_MINECRAFT_PORT
      See Also:
      Constant Field Values
    • INGAME_DEBUG_OUTPUT

      public static final boolean INGAME_DEBUG_OUTPUT
      See Also:
      Constant Field Values
    • DEBUG_SUBTITLES

      public static final boolean DEBUG_SUBTITLES
      See Also:
      Constant Field Values
    • FAKE_MS_LATENCY

      public static final int FAKE_MS_LATENCY
      See Also:
      Constant Field Values
    • FAKE_MS_JITTER

      public static final int FAKE_MS_JITTER
      See Also:
      Constant Field Values
    • NETTY_LEAK_DETECTION

      public static final io.netty.util.ResourceLeakDetector.Level NETTY_LEAK_DETECTION
    • COMMAND_STACK_TRACES

      public static final boolean COMMAND_STACK_TRACES
      See Also:
      Constant Field Values
    • DEBUG_WORLD_RECREATE

      public static final boolean DEBUG_WORLD_RECREATE
      See Also:
      Constant Field Values
    • DEBUG_SHOW_SERVER_DEBUG_VALUES

      public static final boolean DEBUG_SHOW_SERVER_DEBUG_VALUES
      See Also:
      Constant Field Values
    • DEBUG_STORE_CHUNK_STACKTRACES

      public static final boolean DEBUG_STORE_CHUNK_STACKTRACES
      See Also:
      Constant Field Values
    • RAIN_THRESHOLD

      public static final float RAIN_THRESHOLD
      See Also:
      Constant Field Values
    • MAXIMUM_TICK_TIME_NANOS

      public static final long MAXIMUM_TICK_TIME_NANOS
    • CHECK_DATA_FIXER_SCHEMA

      public static boolean CHECK_DATA_FIXER_SCHEMA
    • IS_RUNNING_IN_IDE

      public static boolean IS_RUNNING_IN_IDE
    • WORLD_RESOLUTION

      public static final int WORLD_RESOLUTION
      See Also:
      Constant Field Values
    • MAX_CHAT_LENGTH

      public static final int MAX_CHAT_LENGTH
      See Also:
      Constant Field Values
    • MAX_COMMAND_LENGTH

      public static final int MAX_COMMAND_LENGTH
      See Also:
      Constant Field Values
    • ILLEGAL_FILE_CHARACTERS

      public static final char[] ILLEGAL_FILE_CHARACTERS
    • TICKS_PER_SECOND

      public static final int TICKS_PER_SECOND
      See Also:
      Constant Field Values
    • TICKS_PER_MINUTE

      public static final int TICKS_PER_MINUTE
      See Also:
      Constant Field Values
    • TICKS_PER_GAME_DAY

      public static final int TICKS_PER_GAME_DAY
      See Also:
      Constant Field Values
    • AVERAGE_GAME_TICKS_PER_RANDOM_TICK_PER_BLOCK

      public static final float AVERAGE_GAME_TICKS_PER_RANDOM_TICK_PER_BLOCK
      See Also:
      Constant Field Values
    • AVERAGE_RANDOM_TICKS_PER_BLOCK_PER_MINUTE

      public static final float AVERAGE_RANDOM_TICKS_PER_BLOCK_PER_MINUTE
      See Also:
      Constant Field Values
    • AVERAGE_RANDOM_TICKS_PER_BLOCK_PER_GAME_DAY

      public static final float AVERAGE_RANDOM_TICKS_PER_BLOCK_PER_GAME_DAY
      See Also:
      Constant Field Values
    • CURRENT_VERSION

      @Nullable private static com.mojang.bridge.game.GameVersion CURRENT_VERSION
  • Constructor Details

    • SharedConstants

      public SharedConstants()
  • Method Details

    • isAllowedChatCharacter

      public static boolean isAllowedChatCharacter(char p_136189_)
    • filterText

      public static String filterText(String p_136191_)
    • setVersion

      public static void setVersion(com.mojang.bridge.game.GameVersion p_142979_)
    • tryDetectVersion

      public static void tryDetectVersion()
    • getCurrentVersion

      public static com.mojang.bridge.game.GameVersion getCurrentVersion()
    • getProtocolVersion

      public static int getProtocolVersion()