### Initialization and Setup Methods Source: https://mappings.dev/1.21.11/net/minecraft/client/gui/screens/inventory/SmithingScreen.html Methods related to the initialization and setup of the mapping system. ```APIDOC ## Initialization and Setup ### Description Provides methods for initializing and setting up the mapping system. ### Methods - `I()`: Protected void method for initialization. - `subInit()`: Method for sub-initialization. - `method_25445()`: An internal method. - `setup()`: Method for setting up the system. - `m_5653_()`: An internal method. ``` -------------------------------- ### World Initialization and Start Source: https://mappings.dev/1.21.11/net/minecraft/client/gui/screens/worldselection/WorldOpenFlows.html APIs for starting and initializing worlds with different configurations. ```APIDOC ## POST /api/world/start ### Description Starts a world with the given session, summary, and properties. ### Method POST ### Endpoint /api/world/start ### Parameters #### Request Body - **session** (LevelStorage$Session) - Required - The level storage session. - **summary** (LevelSummary) - Required - Summary of the level. - **levelProperties** (com.mojang.serialization.Dynamic) - Required - Dynamic level properties. - **onCancel** (Runnable) - Optional - Callback to run if cancelled. ### Response #### Success Response (200) - **result** (void) - Operation completed. #### Response Example ```json { "result": null } ``` ``` ```APIDOC ## POST /api/world/startSafeMode ### Description Starts a world in safe mode. ### Method POST ### Endpoint /api/world/startSafeMode ### Parameters #### Request Body - **session** (LevelStorage$Session) - Required - The level storage session. - **levelProperties** (com.mojang.serialization.Dynamic) - Required - Dynamic level properties. - **safeMode** (boolean) - Required - Flag indicating safe mode. - **onCancel** (Runnable) - Optional - Callback to run if cancelled. ### Response #### Success Response (200) - **result** (void) - Operation completed. #### Response Example ```json { "result": null } ``` ``` ```APIDOC ## POST /api/world/checkBackupAndStart ### Description Checks for backups and starts the world. ### Method POST ### Endpoint /api/world/checkBackupAndStart ### Parameters #### Request Body - **session** (LevelStorage$Session) - Required - The level storage session. - **saveLoader** (SaveLoader) - Required - The save loader. - **dataPackManager** (ResourcePackManager) - Required - The data pack manager. - **onCancel** (Runnable) - Optional - Callback to run if cancelled. ### Response #### Success Response (200) - **result** (void) - Operation completed. #### Response Example ```json { "result": null } ``` ``` ```APIDOC ## POST /api/world/startWithPacks ### Description Starts a world with specified save loader, resource pack loader, and data pack manager. ### Method POST ### Endpoint /api/world/startWithPacks ### Parameters #### Request Body - **session** (LevelStorage$Session) - Required - The level storage session. - **saveLoader** (SaveLoader) - Required - The save loader. - **resourcePackLoader** (ServerResourcePackLoader) - Required - The server resource pack loader. - **dataPackManager** (ResourcePackManager) - Required - The data pack manager. - **onCancel** (Runnable) - Optional - Callback to run if cancelled. ### Response #### Success Response (200) - **result** (void) - Operation completed. #### Response Example ```json { "result": null } ``` ``` -------------------------------- ### PerfCommand - Start Profiling Source: https://mappings.dev/1.21.11/net/minecraft/server/commands/PerfCommand.html Starts the performance profiling on the dedicated server. ```APIDOC ## POST /perf/start ### Description Starts the performance profiling on the dedicated server. ### Method POST ### Endpoint /perf/start ### Parameters #### Request Body - **source** (ServerCommandSource) - Required - The source of the command. ### Request Example ```json { "source": "ServerCommandSource" } ``` ### Response #### Success Response (200) - **status** (integer) - The status code indicating the result of the operation (e.g., 0 for success). #### Response Example ```json { "status": 0 } ``` ``` -------------------------------- ### Transformations Setup Source: https://mappings.dev/1.21.11/net/minecraft/client/renderer/entity/LivingEntityRenderer.html Methods for setting up transformations for rendering. ```APIDOC ## POST /api/render/setup-transforms ### Description Sets up the necessary transformations for rendering an entity. ### Method POST ### Endpoint /api/render/setup-transforms ### Parameters #### Request Body - **state** (S) - Required - The rendering state. - **matrices** (PoseStack) - Required - The transformation matrices. - **bodyYaw** (float) - Required - The body yaw rotation. - **baseHeight** (float) - Required - The base height of the entity. ### Request Example ```json { "state": "RenderStateObject", "matrices": "PoseStackObject", "bodyYaw": 0.0, "baseHeight": 1.8 } ``` ### Response #### Success Response (200) - **status** (string) - Indicates success. #### Response Example ```json { "status": "success" } ``` ``` -------------------------------- ### Page Initialization and Setup Source: https://mappings.dev/1.21.11/net/minecraft/client/gui/screens/inventory/BookEditScreen.html Methods for initializing and setting up the page. ```APIDOC ## POST /websites/mappings_dev_1_21_11/init ### Description Initializes the page or related components. ### Method POST ### Endpoint /websites/mappings_dev_1_21_11/init ### Parameters None ### Request Body None ### Response #### Success Response (200) - **status** (string) - Indicates successful initialization. #### Response Example ```json { "status": "initialized" } ``` ``` -------------------------------- ### Get Examples Method Source: https://mappings.dev/1.21.11/net/minecraft/commands/arguments/ResourceOrIdArgument.html Retrieves a collection of example strings. ```APIDOC ## GET /websites/mappings_dev_1_21_11/examples ### Description Retrieves a collection of example strings. ### Method GET ### Endpoint /websites/mappings_dev_1_21_11/examples ### Response #### Success Response (200) - **examples** (Collection) - A collection of example strings. ``` -------------------------------- ### Method: init() Source: https://mappings.dev/1.21.11/net/minecraft/client/gui/screens/inventory/AbstractRecipeBookScreen.html Initializes the screen, including recipe book components and buttons. ```APIDOC ## Method: init() ### Description Initializes the screen. This method is called when the screen is opened and is responsible for setting up UI elements like the recipe book. ### Method `protected void init()` ``` -------------------------------- ### Get Examples API Source: https://mappings.dev/1.21.11/net/minecraft/commands/arguments/EntityArgument.html Provides methods to retrieve examples. ```APIDOC ## GET /websites/mappings_dev_1_21_11/examples ### Description Retrieves a collection of examples. ### Method GET ### Endpoint /websites/mappings_dev_1_21_11/examples ### Response #### Success Response (200) - **examples** (Collection) - A collection of example strings. ``` -------------------------------- ### Server Initialization and Startup Source: https://mappings.dev/1.21.11/net/minecraft/server/MinecraftServer.html Methods related to starting and initializing the server. ```APIDOC ## POST /api/server/start ### Description Starts the server with a given factory function. ### Method POST ### Endpoint /api/server/start ### Parameters #### Request Body - **serverFactory** (Function) - Required - A function to create the server instance. ### Response #### Success Response (200) - **server** (S) - The started Minecraft server instance. #### Response Example { "server": "[Server Instance]" } ## POST /api/server/init ### Description Initializes the server. ### Method POST ### Endpoint /api/server/init ### Response #### Success Response (200) - **success** (boolean) - Indicates if the initialization was successful. #### Response Example { "success": true } ## POST /api/server/setup ### Description Sets up the server environment. ### Method POST ### Endpoint /api/server/setup ### Response #### Success Response (200) - **success** (boolean) - Indicates if the setup was successful. #### Response Example { "success": true } ``` -------------------------------- ### Getting Examples for Integer Ranges Source: https://mappings.dev/1.21.11/net/minecraft/commands/arguments/RangeArgument%24Ints.html Retrieves a collection of example string representations for integer ranges. ```APIDOC ## GET /examples/range/int ### Description Gets example string representations for integer range arguments. ### Method GET ### Endpoint `/examples/range/int` ### Response #### Success Response (200) - **examples** (`Collection`) - A collection of example strings. #### Response Example ```json { "examples": [ "1", "1-5", "-3-10" ] } ``` ``` -------------------------------- ### Server Plugin Information API Source: https://mappings.dev/1.21.11/net/minecraft/server/ServerInterface.html Get a list of plugins currently installed and running on the server. ```APIDOC ## GET /server/plugins ### Description Retrieves a list of plugin names installed on the server. ### Method GET ### Endpoint /server/plugins ### Response #### Success Response (200) - **plugin_names** (String[]) - An array of plugin names. #### Response Example ```json { "plugin_names": ["PluginA", "PluginB"] } ``` ``` -------------------------------- ### Setup and Update Methods Source: https://mappings.dev/1.21.11/net/minecraft/client/Camera.html Methods for initializing and updating website mapping configurations. ```APIDOC ## POST /websites/mappings_dev_1_21_11/setup ### Description Sets up the initial configuration for website mappings. ### Method POST ### Endpoint /websites/mappings_dev_1_21_11/setup ### Parameters #### Query Parameters - **arg0** (Level) - Required - The level for setup. - **arg1** (Entity) - Required - The entity for setup. - **arg2** (boolean) - Required - A boolean flag for setup. - **arg3** (boolean) - Required - Another boolean flag for setup. - **arg4** (float) - Required - A float value for setup. ### Request Example ```json { "arg0": "level_value", "arg1": "entity_value", "arg2": true, "arg3": false, "arg4": 0.5 } ``` ### Response #### Success Response (200) - **status** (string) - Indicates the success of the operation. #### Response Example ```json { "status": "Setup successful" } ``` ## POST /websites/mappings_dev_1_21_11/update ### Description Updates the current state of website mappings. ### Method POST ### Endpoint /websites/mappings_dev_1_21_11/update ### Parameters #### Query Parameters - **area** (World) - Required - The world area. - **focusedEntity** (Entity) - Required - The currently focused entity. - **thirdPerson** (boolean) - Required - Flag for third-person view. - **inverseView** (boolean) - Required - Flag for inverse view. - **tickProgress** (float) - Required - The progress of the current tick. ### Request Example ```json { "area": "world_value", "focusedEntity": "entity_value", "thirdPerson": true, "inverseView": false, "tickProgress": 0.75 } ``` ### Response #### Success Response (200) - **status** (string) - Indicates the success of the update. #### Response Example ```json { "status": "Update successful" } ``` ``` -------------------------------- ### RenderSetup Class Overview Source: https://mappings.dev/1.21.11/net/minecraft/client/renderer/rendertype/RenderSetup.html Provides details about the fields, constructor, and methods available in the RenderSetup class. ```APIDOC ## Class: RenderSetup ### Description Represents rendering setup configurations, including pipelines, textures, and rendering properties. ### Fields - **a** (RenderPipeline) - The render pipeline. - **b** (Map) - A map of texture bindings. - **c** (TextureTransform) - The texture transformation. - **d** (OutputTarget) - The output target for rendering. - **e** (RenderSetup$OutlineProperty) - The outline property for rendering. - **f** (boolean) - Whether to use lightmap. - **g** (boolean) - Whether to use overlay. - **h** (boolean) - Whether the rendering affects crumbling. - **i** (boolean) - Whether to sort on upload. - **j** (int) - The buffer size. - **k** (LayeringTransform) - The layering transform. ### Constructor - **(RenderPipeline pipeline, Map textures, boolean useLightmap, boolean useOverlay, LayeringTransform layeringTransform, OutputTarget outputTarget, TextureTransform textureTransform, RenderSetup$OutlineProperty outlineMode, boolean hasCrumbling, boolean translucent, int expectedBufferSize)** - Initializes a new instance of RenderSetup with specified parameters. ### Methods - **a(RenderPipeline arg0)** - Creates a builder for RenderSetup. - Alias: `builder(RenderPipeline arg0)` - Alias: `method_75927(RenderPipeline arg0)` - Alias: `builder(RenderPipeline arg0)` - Alias: `m_445834_(RenderPipeline p_455597_)` - **a()** - Gets the textures and samplers. - Alias: `getTextures()` - Alias: `method_75926()` - Alias: `resolveTextures()` - Alias: `m_443621_()` ``` -------------------------------- ### Start JFR Profiling Source: https://mappings.dev/1.21.11/net/minecraft/server/commands/JfrCommand.html This snippet details the command to start JFR profiling. ```APIDOC ## POST /jfr/start ### Description Starts Java Flight Recorder (JFR) profiling on the server. ### Method POST ### Endpoint /jfr/start ### Parameters #### Query Parameters - **source** (CommandSourceStack) - Required - The source of the command execution. ### Request Example ```json { "source": "" } ``` ### Response #### Success Response (200) - **status** (int) - 0 if successful, indicating the command executed without errors. #### Response Example ```json { "status": 0 } ``` #### Error Response (400) - **error** (SimpleCommandExceptionType) - Indicates that starting JFR failed. #### Error Example ```json { "error": "JFR_START_FAILED_EXCEPTION" } ``` ``` -------------------------------- ### PrepareSpawnTask$Ready Class Overview Source: https://mappings.dev/1.21.11/net/minecraft/server/network/config/PrepareSpawnTask%24Ready.html Provides details about the fields, constructor, and methods of the PrepareSpawnTask$Ready class. ```APIDOC ## Class: PrepareSpawnTask$Ready ### Description Represents the 'Ready' state in the PrepareSpawnTask, holding information about the server level, spawn position, and rotation. ### Fields #### Field Summary - **private final ServerLevel** `b` (or `spawnLevel`, `field_61142`, `world`, `f_411637_`): The server level where the player will spawn. - **private final Vec3** `c` (or `spawnPosition`, `field_61143`, `spawnPos`, `f_413339_`): The precise spawn position (x, y, z coordinates). - **private final Vec2** `d` (or `spawnAngle`, `field_61144`, `rotation`, `f_412421_`): The spawn rotation (yaw and pitch). ### Constructor #### Constructor Summary - **(PrepareSpawnTask p_424619_, ServerLevel world, Vec3 spawnPos, Vec2 rotation)**: Initializes a new instance of the PrepareSpawnTask$Ready state. ### Methods #### Method Summary - **public void** `a()` (or `keepAlive()`, `method_72302()`, `tick()`, `m_415140_()`): Performs a tick update or keeps the connection alive. - **public ServerPlayer** `a(wu arg0, axu arg1)` (or `spawn(Connection arg0, CommonListenerCookie arg1)`, `method_72305(class_2535 arg0, class_8792 arg1)`, `onReady(ClientConnection connection, ConnectedClientData clientData)`, `m_419322_(C_4961_ p_430225_, C_290146_ arg1)`): Handles the player spawning process, likely involving connection and client data. ``` -------------------------------- ### Get NBT Data Source: https://mappings.dev/1.21.11/net/minecraft/server/commands/data/DataCommands.html Gets NBT data from an accessor using a path. ```APIDOC ## GET /get_nbt ### Description Gets NBT data from an accessor using a path. ### Method GET ### Endpoint /get_nbt ### Parameters #### Query Parameters - **path** (NbtPathArgumentType$NbtPath) - Required - The NBT path. - **object** (DataCommandObject) - Required - The data accessor. ### Response #### Success Response (200) - **tag** (Tag) - The retrieved NBT tag. #### Response Example ```json { "tag": "example_tag_value" } ``` ``` -------------------------------- ### Library Initialization and Configuration Source: https://mappings.dev/1.21.11/com/mojang/blaze3d/audio/Library.html Methods for initializing the audio library, setting up devices, and managing audio configurations. ```APIDOC ## POST /initialize ### Description Initializes the audio library with a specified device and directional audio settings. ### Method POST ### Endpoint /initialize ### Parameters #### Request Body - **deviceSpecifier** (String) - Required - The identifier for the audio device to use. - **directionalAudio** (boolean) - Required - Whether to enable directional audio. ### Request Example ```json { "deviceSpecifier": "default", "directionalAudio": true } ``` ### Response #### Success Response (200) - **status** (string) - Indicates successful initialization. #### Response Example ```json { "status": "initialized" } ``` ``` ```APIDOC ## GET /default-device-name ### Description Retrieves the name of the default audio device. ### Method GET ### Endpoint /default-device-name ### Response #### Success Response (200) - **deviceName** (String) - The name of the default audio device. #### Response Example ```json { "deviceName": "Built-in Audio" } ``` ``` ```APIDOC ## GET /current-device-name ### Description Retrieves the name of the currently active audio device. ### Method GET ### Endpoint /current-device-name ### Response #### Success Response (200) - **deviceName** (String) - The name of the current audio device. #### Response Example ```json { "deviceName": "Headphones" } ``` ``` ```APIDOC ## GET /available-devices ### Description Retrieves a list of all available sound devices. ### Method GET ### Endpoint /available-devices ### Response #### Success Response (200) - **devices** (List) - A list of available sound device names. #### Response Example ```json { "devices": ["Built-in Audio", "Headphones", "External Speakers"] } ``` ``` -------------------------------- ### Request$Get Class Source: https://mappings.dev/1.21.11/com/mojang/realmsclient/client/Request%24Get.html Details about the Request$Get class, its constructors, and methods. ```APIDOC ## Request$Get Class ### Description Represents a GET request in the realms client. ### Constructor Summary #### `public Request$Get(String p_87366_, int p_87367_, int arg2)` - **p_87366_** (String) - Description for parameter 1 - **p_87367_** (int) - Description for parameter 2 - **arg2** (int) - Description for parameter 3 ### Method Summary #### `public Request$Get f()` - Description for method f #### `doConnect()` - Description for doConnect method #### `method_21058()` - Description for method_21058 #### `doConnect()` - Description for doConnect method (duplicate) #### `m_7218_()` - Description for m_7218_ ``` -------------------------------- ### Command Examples API Source: https://mappings.dev/1.21.11/net/minecraft/commands/arguments/ResourceArgument.html This endpoint provides a way to retrieve a collection of example commands. ```APIDOC ## GET /api/commands/examples ### Description Retrieves a collection of example commands. ### Method GET ### Endpoint /api/commands/examples ### Response #### Success Response (200) - **examples** (Collection) - A collection of example command strings. #### Response Example { "examples": [ "example_command_1", "example_command_2" ] } ``` -------------------------------- ### TextureSetup Class Overview Source: https://mappings.dev/1.21.11/net/minecraft/client/gui/render/TextureSetup.html Provides an overview of the TextureSetup class, its fields, and constructors. ```APIDOC ## TextureSetup Class ### Description Represents a setup for GPU textures and samplers, used in rendering. ### Fields - **a** (GpuTextureView) - Represents the first texture. - **b** (GpuTextureView) - Represents the second texture. - **c** (GpuTextureView) - Represents the third texture. - **d** (GpuSampler) - Represents the first sampler. - **e** (GpuSampler) - Represents the second sampler. - **f** (GpuSampler) - Represents the third sampler. - **g** (TextureSetup) - A static field representing no texture setup (e.g., `NO_TEXTURE_SETUP`, `EMPTY`). - **h** (int) - A seed used for sorting or shuffling rendering order. ### Constructor - **(GpuTextureView texure0, GpuTextureView texure1, GpuTextureView texure2, GpuSampler sampler0, GpuSampler sampler1, GpuSampler sampler2)**: Initializes a new TextureSetup with specified textures and samplers. ``` -------------------------------- ### Structure Start Unpacking Methods Source: https://mappings.dev/1.21.11/net/minecraft/world/level/chunk/storage/SerializableChunkData.html Methods for unpacking and reading structure starts from NbtCompound. ```APIDOC ## Structure Start Unpacking Methods ### Description Methods for unpacking and reading structure starts from NbtCompound. ### Methods - `a(fge arg0, uz arg1, long arg2)` - `unpackStructureStart(StructurePieceSerializationContext arg0, CompoundTag arg1, long arg2)` - `method_12392(class_6625 arg0, class_2487 arg1, long arg2)` - `readStructureStarts(StructureContext context, NbtCompound nbt, long worldSeed)` - `m_353848_(C_183029_ p_368168_, C_4917_ p_361005_, long p_364111_) ``` -------------------------------- ### StructureStart Class Overview Source: https://mappings.dev/1.21.11/net/minecraft/world/level/levelgen/structure/StructureStart.html Provides an overview of the StructureStart class, including its fields, constructor, and methods. ```APIDOC ## StructureStart Class ### Description Represents the starting point of a structure in the world, managing its pieces and bounding box. ### Fields - **INVALID_START_ID** (String) - Represents an invalid start ID. - **INVALID_START** (StructureStart) - A static instance representing an invalid start. - **LOGGER** (Logger) - The logger instance for this class. - **structure** (Structure) - The structure this start belongs to. - **pieceContainer** (PiecesContainer) - Contains all the pieces of this structure. - **chunkPos** (ChunkPos) - The position of the chunk where this structure starts. - **references** (int) - The number of references to this structure start. - **cachedBoundingBox** (BoundingBox) - The cached bounding box of the structure. ### Constructor - **StructureStart**(Structure structure, ChunkPos pos, int references, PiecesContainer children) - Initializes a new instance of the StructureStart class. ### Methods - **loadStaticStart**(StructurePieceSerializationContext context, NbtCompound nbt, long seed) (static) - Loads a StructureStart from NBT data. - **getBoundingBox**() - Gets the bounding box of the structure. - **place**(StructureWorldAccess world, StructureAccessor structureAccessor, ChunkGenerator chunkGenerator, Random random, BlockBox chunkBox, ChunkPos chunkPos) - Places the structure in the world. - **toNbt**(StructureContext context, ChunkPos chunkPos) - Converts the StructureStart to NBT data. - **isValid**() - Checks if the structure start is valid. - **getChunkPos**() - Gets the chunk position of the structure start. - **canBeReferenced**() - Checks if the structure can be referenced by other structures. - **addReference**() - Increments the reference count for this structure start. - **getReferences**() - Gets the number of references to this structure start. - **getMaxReferences**() - Gets the maximum number of references allowed. - **getStructure**() - Gets the Structure object associated with this start. - **getPieces**() - Gets the list of StructurePiece objects that make up this structure. ``` -------------------------------- ### Start GameTest Runner Source: https://mappings.dev/1.21.11/net/minecraft/gametest/framework/TestCommand.html API endpoint to track and start a game test runner. ```APIDOC ## POST /trackAndStartRunner ### Description Tracks and starts a game test runner with the specified context. ### Method POST ### Endpoint /trackAndStartRunner ### Parameters #### Request Body - **source** (CommandSourceStack) - Required - The source of the command. - **context** (GameTestRunner) - Required - The context for the game test runner. ### Request Example ```json { "source": "CommandSourceStack", "context": "GameTestRunner" } ``` ### Response #### Success Response (200) - **status** (string) - Indicates successful tracking and starting. #### Response Example ```json { "status": "Game test runner tracked and started successfully" } ``` ``` -------------------------------- ### PrepareSpawnTask Class Overview Source: https://mappings.dev/1.21.11/net/minecraft/server/network/config/PrepareSpawnTask.html Provides an overview of the PrepareSpawnTask class, its fields, constructor, and methods. ```APIDOC ## Class: PrepareSpawnTask ### Description Represents a configuration task for preparing the spawn of a player in Minecraft. ### Fields - **LOGGER** (static final org.slf4j.Logger) - Logger for this class. - **TYPE** (public static final ConfigurationTask$Type) - The type of this configuration task. - **PREPARE_CHUNK_RADIUS** (public static final int) - The radius for preparing chunks. - **server** (final MinecraftServer) - The Minecraft server instance. - **nameAndId** (final NameAndId) - Player's name and ID. - **loadListener** (final LevelLoadListener) - Listener for level loading progress. - **state** (private PrepareSpawnTask$State) - The current state of the task. ### Constructor - **public PrepareSpawnTask(MinecraftServer server, NameAndId player)** - Constructs a new PrepareSpawnTask. ### Methods - **start(Consumer> arg0)** - Starts the task, sending initial packets. - **tick()** - Updates the task's state. Returns true if the task has finished. - **spawnPlayer(Connection arg0, CommonListenerCookie arg1)** - Spawns the player on the server. - **keepAlive()** - Sends a keep-alive packet. - **close()** - Closes the task and cleans up resources. - **type()** - Returns the type of this configuration task. ``` -------------------------------- ### Menu and Initialization Source: https://mappings.dev/1.21.11/net/minecraft/server/level/ServerPlayer.html Methods related to initializing game menus and other setup procedures. ```APIDOC ## POST /websites/mappings_dev_1_21_11/initMenu ### Description Initializes the game menu. ### Method POST ### Endpoint /websites/mappings_dev_1_21_11/initMenu ### Parameters #### Request Body - **arg0** (AbstractContainerMenu) - Required - The container menu to initialize. ### Response #### Success Response (200) - **void** - Indicates successful initialization. #### Response Example (No response body for void return type) ## POST /websites/mappings_dev_1_21_11/onScreenHandlerOpened ### Description Handles the event when a screen handler is opened. ### Method POST ### Endpoint /websites/mappings_dev_1_21_11/onScreenHandlerOpened ### Parameters #### Request Body - **screenHandler** (ScreenHandler) - Required - The screen handler that was opened. ### Response #### Success Response (200) - **void** - Indicates successful handling. #### Response Example (No response body for void return type) ## POST /websites/mappings_dev_1_21_11/initInventoryMenu ### Description Initializes the player's inventory menu. ### Method POST ### Endpoint /websites/mappings_dev_1_21_11/initInventoryMenu ### Response #### Success Response (200) - **void** - Indicates successful initialization. #### Response Example (No response body for void return type) ## POST /websites/mappings_dev_1_21_11/onSpawn ### Description Handles events that occur when the player spawns. ### Method POST ### Endpoint /websites/mappings_dev_1_21_11/onSpawn ### Response #### Success Response (200) - **void** - Indicates successful handling. #### Response Example (No response body for void return type) ``` -------------------------------- ### Get Target Name Source: https://mappings.dev/1.21.11/net/minecraft/server/commands/ScoreboardCommand.html Methods to get the display name of the first or next target. ```APIDOC ## Get Target Name ### Description Methods to get the display name of the first or next target. ### Methods - `getFirstTargetName(Collection arg0)` - `getNextDisplayName(Collection targets)` - `method_55352(Collection arg0)` - `m_307514_(Collection p_312538_) ### Parameters - `targets` (Collection or Collection) - The collection of targets. - `arg0`, `p_312538_` - Internal arguments for getting target names. ``` -------------------------------- ### Advancement Suggestions and Examples Source: https://mappings.dev/1.21.11/net/minecraft/commands/arguments/ResourceKeyArgument.html This section provides methods for obtaining suggestions and examples related to advancements. ```APIDOC ## GET /advancements/suggestions ### Description Lists suggestions for advancement commands based on the current context and builder. ### Method GET ### Endpoint /advancements/suggestions ### Parameters #### Query Parameters - **context** (CommandContext) - Required - The command context. - **builder** (SuggestionsBuilder) - Required - The suggestions builder. ### Response #### Success Response (200) - **Suggestions** (Object) - A collection of suggestions. #### Response Example ```json { "suggestions": [ "minecraft:story/root", "minecraft:story/obtain_diamond" ] } ``` ``` ```APIDOC ## GET /advancements/examples ### Description Retrieves a collection of example advancement names. ### Method GET ### Endpoint /advancements/examples ### Response #### Success Response (200) - **examples** (Collection) - A collection of example advancement names. #### Response Example ```json { "examples": [ "minecraft:story/root", "minecraft:story/obtain_diamond", "minecraft:adventure/adventuring_time" ] } ``` ``` -------------------------------- ### Method: initButton() Source: https://mappings.dev/1.21.11/net/minecraft/client/gui/screens/inventory/AbstractRecipeBookScreen.html Adds the recipe book button to the screen. ```APIDOC ## Method: initButton() ### Description Initializes and adds the recipe book button to the screen's GUI elements. ### Method `private void initButton()` ``` -------------------------------- ### Carver Start Chunk Check API Source: https://mappings.dev/1.21.11/net/minecraft/world/level/levelgen/carver/WorldCarver.html Method to determine if a chunk is a starting point for carving. ```APIDOC ## POST /api/carvers/isStartChunk ### Description Checks if the given chunk is a suitable starting point for carving. ### Method POST ### Endpoint /api/carvers/isStartChunk ### Parameters #### Request Body - **config** (object) - Required - The carver configuration. - **random** (object) - Required - The random number generator. ### Request Example ```json { "config": { ... }, "random": { ... } } ``` ### Response #### Success Response (200) - **shouldCarve** (boolean) - True if the chunk should be carved, false otherwise. #### Response Example ```json { "shouldCarve": true } ``` ``` -------------------------------- ### CraftPlanksTutorialStep Class Overview Source: https://mappings.dev/1.21.11/net/minecraft/client/tutorial/CraftPlanksTutorialStep.html Provides details about the CraftPlanksTutorialStep class, its fields, constructor, and methods. ```APIDOC ## Class: CraftPlanksTutorialStep ### Description Represents a tutorial step in Minecraft for crafting planks. ### Fields - **HINT_DELAY** (int) - private static final - Delay for hints. - **DELAY** (int) - private static final - General delay. - **CRAFT_TITLE** (Component) - private static final - Title for the crafting tutorial step. - **CRAFT_DESCRIPTION** (Component) - private static final - Description for the crafting tutorial step. - **tutorial** (Tutorial) - private - The tutorial manager instance. - **toast** (TutorialToast) - private - The tutorial toast instance. - **timeWaiting** (int) - private - Counter for waiting time. ### Constructor - **CraftPlanksTutorialStep**(Tutorial manager) - Initializes the tutorial step with the provided tutorial manager. ### Methods - **tick**() - Called every game tick to update the tutorial step's state. - **clear**() - Cleans up resources when the tutorial step is cleared. - **onGetItem**(ItemStack arg0) - Handles item-related events during the tutorial step. - **hasCrafted**(ClientPlayerEntity player, TagKey tag) - Static method to check if the player has previously crafted items with the given tag. ``` -------------------------------- ### Riding and Starting Rides Source: https://mappings.dev/1.21.11/net/minecraft/world/entity/monster/warden/Warden.html Methods to check if an entity can ride or start riding another entity. ```APIDOC ## Riding and Starting Rides ### Description Methods to determine if an entity is capable of riding or initiating a ride. ### Methods #### `canRide(Entity arg0)` - **Description**: Checks if the entity can ride the specified entity. - **Return Type**: `boolean` #### `method_5860(class_1297 arg0)` - **Description**: Internal method for rideability checks. - **Return Type**: `boolean` #### `canStartRiding(Entity arg0)` - **Description**: Checks if the entity can start riding the specified entity. - **Return Type**: `boolean` #### `m_7341_(C_507_ arg0)` - **Description**: Internal method for starting rides. - **Return Type**: `boolean` ``` -------------------------------- ### Server Configuration and Initialization Source: https://mappings.dev/1.21.11/net/minecraft/client/server/IntegratedServer.html Methods for initializing and configuring server settings. ```APIDOC ## Server Configuration and Initialization ### Description APIs for initializing the server, setting default configurations, and managing game types. ### Methods - `initServer()`: Initializes the server. - `setupServer()`: Sets up the server environment. - `setDefaultGameType(GameType arg0)`: Sets the default game type. - `setDefaultGameMode(GameMode arg0)`: Sets the default game mode. - `getForcedGameType()`: Retrieves the forced game type. - `getForcedGameMode()`: Retrieves the forced game mode. ``` -------------------------------- ### RealmsResetWorldScreen$1 Constructor and Methods Source: https://mappings.dev/1.21.11/com/mojang/realmsclient/gui/screens/RealmsResetWorldScreen%241.html Details the constructor and the run() method of the RealmsResetWorldScreen$1 class. ```APIDOC ## RealmsResetWorldScreen$1 API ### Description This section details the constructor and the `run()` method for the `RealmsResetWorldScreen$1` class, which is an inner class extending `Thread`. ### Constructor - **RealmsResetWorldScreen$1**(RealmsResetWorldScreen p_89425_, String arg1) - Initializes a new instance of the `RealmsResetWorldScreen$1` class. - Parameters: - `p_89425_` (RealmsResetWorldScreen): The parent screen instance. - `arg1` (String): An argument string. ### Methods #### public void run() - **Description**: Executes the thread's task. This method is the entry point for the thread's activity. - **Method**: void - **Endpoint**: N/A (This is a method within a class, not a REST endpoint) ### Request Example ```json { "example": "No specific request body for this method, as it's part of a thread's execution." } ``` ### Response #### Success Response (void) - **Description**: The `run()` method typically does not return a value directly but performs actions asynchronously. ``` -------------------------------- ### Get Structure Position Source: https://mappings.dev/1.21.11/net/minecraft/gametest/framework/TestCommand.html API endpoint to get the position for creating a game test structure. ```APIDOC ## GET /getStructurePos ### Description Gets a position suitable for creating a new game test structure. ### Method GET ### Endpoint /getStructurePos ### Parameters #### Query Parameters - **source** (ServerCommandSource) - Required - The source of the command. ### Request Example ```json { "source": "ServerCommandSource" } ``` ### Response #### Success Response (200) - **position** (BlockPos) - The calculated position for the structure. #### Response Example ```json { "position": "(10, 60, 20)" } ``` ``` -------------------------------- ### RuinedPortalStructure$Setup Record Source: https://mappings.dev/1.21.11/net/minecraft/world/level/levelgen/structure/structures/RuinedPortalStructure%24Setup.html Details of the RuinedPortalStructure$Setup record, used to configure ruined portal generation. ```APIDOC ## RuinedPortalStructure$Setup Record ### Description Represents the configuration for a ruined portal structure, including its placement, appearance, and generation properties. ### Fields - **placement** (RuinedPortalPiece$VerticalPlacement) - Represents the vertical placement of the ruined portal. - **airPocketProbability** (float) - The probability of air pockets forming within the portal structure. - **mossiness** (float) - The degree of moss coverage on the portal structure. - **overgrown** (boolean) - Whether the portal is overgrown with vegetation. - **vines** (boolean) - Whether vines are present on the portal structure. - **canBeCold** (boolean) - Whether the portal can generate in a cold biome. - **replaceWithBlackstone** (boolean) - Whether to replace certain blocks with blackstone. - **weight** (float) - The generation weight of this ruined portal setup. ### Constructor - **RuinedPortalStructure$Setup**(RuinedPortalPiece$VerticalPlacement placement, float airPocketProbability, float mossiness, boolean overgrown, boolean vines, boolean canBeCold, boolean replaceWithBlackstone, float weight) - Initializes a new instance of the RuinedPortalStructure$Setup record with the specified parameters. ### Methods - **placement()**: Returns the vertical placement configuration. - **airPocketProbability()**: Returns the probability of air pockets. - **mossiness()**: Returns the mossiness value. - **overgrown()**: Returns whether the portal is overgrown. - **vines()**: Returns whether vines are present. - **canBeCold()**: Returns whether the portal can be cold. - **replaceWithBlackstone()**: Returns whether to replace blocks with blackstone. - **weight()**: Returns the generation weight. ``` -------------------------------- ### Recipe Book Initialization Source: https://mappings.dev/1.21.11/net/minecraft/client/gui/screens/recipebook/RecipeBookPage.html Methods for initializing and setting up the recipe book. ```APIDOC ## POST /api/recipebook/init ### Description Initializes the recipe book with Minecraft client and dimensions. ### Method POST ### Endpoint /api/recipebook/init ### Parameters #### Request Body - **client** (MinecraftClient) - Required - The Minecraft client instance. - **parentLeft** (int) - Required - The left coordinate of the parent container. - **parentTop** (int) - Required - The top coordinate of the parent container. ### Request Example ```json { "client": "MinecraftClient_instance", "parentLeft": 100, "parentTop": 100 } ``` ### Response #### Success Response (200) - **status** (string) - Indicates successful initialization. #### Response Example ```json { "status": "initialized" } ``` ``` -------------------------------- ### StructurePieceSerializationContext.structureTemplateManager() Source: https://mappings.dev/1.21.11/net/minecraft/world/level/levelgen/structure/pieces/StructurePieceSerializationContext.html Gets the StructureTemplateManager associated with this context. ```APIDOC ## StructurePieceSerializationContext.structureTemplateManager() ### Description Retrieves the StructureTemplateManager instance used by this serialization context. ### Method ``` public ``` ### Endpoint N/A ### Parameters None ### Response #### Success Response (200) - **structureTemplateManager** (StructureTemplateManager) - The StructureTemplateManager instance. ### Response Example ```json { "example": "StructureTemplateManager structureTemplateManager" } ``` ``` -------------------------------- ### Initialization and Core Methods Source: https://mappings.dev/1.21.11/com/mojang/realmsclient/gui/screens/RealmsUploadScreen.html Provides methods for initializing the system, handling core logic, and managing element positioning. ```APIDOC ## Public Methods ### `init()` **Description**: Initializes the system. **Method**: void ### `bg_()` **Description**: Background processing method. **Method**: void ### `method_25426()` **Description**: A general-purpose method. **Method**: void ### `m_7856_()` **Description**: Internal method. **Method**: void ## Protected Methods ### `c()` **Description**: Protected core method. **Method**: void ### `repositionElements()` **Description**: Repositions UI elements. **Method**: void ### `method_48640()` **Description**: A general-purpose protected method. **Method**: void ### `refreshWidgetPositions()` **Description**: Refreshes the positions of widgets. **Method**: void ### `m_267719_()` **Description**: Internal protected method. **Method**: void ``` -------------------------------- ### TutorialToast Class Overview Source: https://mappings.dev/1.21.11/net/minecraft/client/gui/components/toasts/TutorialToast.html Provides an overview of the TutorialToast class, including its fields, constructors, and methods. ```APIDOC ## TutorialToast Class Implements `Toast` for displaying tutorial-related messages. ### Fields - **BACKGROUND_SPRITE** (Identifier) - `h` - `field_45397` - `TEXTURE` - `f_290955_` - **PROGRESS_BAR_WIDTH** (int) - `a` - `field_32222` - `PROGRESS_BAR_WIDTH` - `f_169083_` - **PROGRESS_BAR_HEIGHT** (int) - `e` - `field_32223` - `PROGRESS_BAR_HEIGHT` - `f_169084_` - **PROGRESS_BAR_X** (int) - `f` - `field_32224` - `PROGRESS_BAR_X` - `f_169085_` - **PROGRESS_BAR_MARGIN_BOTTOM** (int) - `g` - `field_55091` - `field_55091` - `f_370544_` - **PADDING_TOP** (int) - `i` - `field_55092` - `field_55092` - `f_371057_` - **PADDING_BOTTOM** (int) - `j` - `field_55093` - `field_55093` - `f_370537_` - **LINE_SPACING** (int) - `k` - `field_55094` - `field_55094` - `f_370759_` - **TEXT_LEFT** (int) - `l` - `field_55095` - `field_55095` - `f_371096_` - **TEXT_WIDTH** (int) - `m` - `field_55096` - `field_55096` - `f_371444_` - **icon** (TutorialToast$Icons) - `n` - `field_2225` - `type` - `f_94949_` - **lines** (List) - `o` - `field_55097` - `text` - `f_371095_` - **visibility** (Toast$Visibility) - `p` - `field_2227` - `visibility` - `f_94952_` - **lastSmoothingTime** (long) - `q` - `field_52791` - `lastTime` - `f_349069_` - **smoothedProgress** (float) - `r` - `field_52792` - `lastProgress` - `f_349494_` - **progress** (float) - `s` - `field_2228` - `progress` - `f_94955_` - **progressable** (boolean) - `t` - `field_2222` - `hasProgressBar` - `f_94956_` - **timeToDisplayMs** (int) - `u` - `field_52793` - `displayDuration` - `f_346785_` ### Constructors - `public (Font textRenderer, TutorialToast$Icons type, Component title, Component description, boolean hasProgressBar, int displayDuration)` - `public (Font textRenderer, TutorialToast$Icons type, Component title, Component description, boolean hasProgressBar)` ### Methods - **getWantedVisibility()** (`Toast$Visibility`) - **update(ToastManager arg0, long arg1)** (`void`) - **height()** (`int`) - **contentHeight()** (`int`) - **render(GuiGraphics arg0, Font arg1, long arg2)** (`void`) - **hide()** (`void`) - **updateProgress(float arg0)** (`void`) ``` -------------------------------- ### StructurePieceSerializationContext.registryAccess() Source: https://mappings.dev/1.21.11/net/minecraft/world/level/levelgen/structure/pieces/StructurePieceSerializationContext.html Gets the RegistryAccess associated with this context. ```APIDOC ## StructurePieceSerializationContext.registryAccess() ### Description Retrieves the RegistryAccess instance used by this serialization context. ### Method ``` public ``` ### Endpoint N/A ### Parameters None ### Response #### Success Response (200) - **registryAccess** (RegistryAccess) - The RegistryAccess instance. ### Response Example ```json { "example": "RegistryAccess registryAccess" } ``` ``` -------------------------------- ### StructurePieceSerializationContext.resourceManager() Source: https://mappings.dev/1.21.11/net/minecraft/world/level/levelgen/structure/pieces/StructurePieceSerializationContext.html Gets the ResourceManager associated with this context. ```APIDOC ## StructurePieceSerializationContext.resourceManager() ### Description Retrieves the ResourceManager instance used by this serialization context. ### Method ``` public ``` ### Endpoint N/A ### Parameters None ### Response #### Success Response (200) - **resourceManager** (ResourceManager) - The ResourceManager instance. ### Response Example ```json { "example": "ResourceManager resourceManager" } ``` ```