### Get Examples of ResourceOrTagArgument (Java) Source: https://mappings.dev/1.21.5/net/minecraft/commands/arguments/ResourceOrTagArgument Returns a collection of example strings that demonstrate how to use the ResourceOrTagArgument. These examples are helpful for command creators and users. ```java public Collection getExamples() { // Implementation details for providing examples return null; // Placeholder for actual implementation } ``` -------------------------------- ### CreateFlatWorldScreen$DetailsList$Entry Constructor Source: https://mappings.dev/1.21.5/net/minecraft/client/gui/screens/CreateFlatWorldScreen%24DetailsList%24Entry Initializes a new instance of the CreateFlatWorldScreen$DetailsList$Entry class. ```APIDOC ## CreateFlatWorldScreen$DetailsList$Entry Constructor ### Description Initializes a new instance of the CreateFlatWorldScreen$DetailsList$Entry class. ### Method Constructor ### Parameters #### Path Parameters None #### Query Parameters None #### Request Body None ### Request Example ```json { "example": "No request body for constructor" } ``` ### Response #### Success Response (200) - **N/A** (void) - Constructor does not return a value. #### Response Example ```json { "example": "Constructor execution completes without explicit return value." } ``` ``` -------------------------------- ### Get Selection Start Position Source: https://mappings.dev/1.21.5/net/minecraft/client/gui/font/TextFieldHelper Retrieves the starting index of the current text selection. Returns an integer representing the start of the selection. ```java public int getSelectionStart() { // Implementation details... return 0; } ``` -------------------------------- ### CreateFlatWorldScreen$DetailsList Constructor Source: https://mappings.dev/1.21.5/net/minecraft/client/gui/screens/CreateFlatWorldScreen%24DetailsList Initializes a new instance of the CreateFlatWorldScreen$DetailsList class. ```APIDOC ## public CreateFlatWorldScreen$DetailsList(CreateFlatWorldScreen arg0) ### Description Initializes a new instance of the CreateFlatWorldScreen$DetailsList class. ### Method **CONSTRUCTOR** ### Parameters #### Path Parameters None #### Query Parameters None #### Request Body None ### Request Example None ### Response #### Success Response (200) None #### Response Example None ``` -------------------------------- ### Bootstrap Initialization and Validation Source: https://mappings.dev/1.21.5/net/minecraft/server/Bootstrap This section details the core methods for initializing the Minecraft server, ensuring it has been bootstrapped, and validating configurations. ```APIDOC ## POST /api/bootstrap/initialize ### Description Initializes the Minecraft server. This method should be called once at the start of the server process. ### Method POST ### Endpoint /api/bootstrap/initialize ### Parameters #### Path Parameters None #### Query Parameters None #### Request Body None ### Request Example ```json { "message": "Initiating server bootstrap." } ``` ### Response #### Success Response (200) - **status** (string) - Indicates the success of the operation. #### Response Example ```json { "status": "Bootstrap initiated successfully." } ``` --- ## GET /api/bootstrap/validate ### Description Validates the current state of the Minecraft server's bootstrap process. This can be used to check if all necessary components are initialized. ### Method GET ### Endpoint /api/bootstrap/validate ### Parameters #### Path Parameters None #### Query Parameters None #### Request Body None ### Request Example ```json { "query": "Perform validation check." } ``` ### Response #### Success Response (200) - **isValid** (boolean) - True if the server is considered bootstrapped and valid, false otherwise. - **message** (string) - A message detailing the validation result. #### Response Example ```json { "isValid": true, "message": "Server bootstrap validation successful." } ``` --- ## POST /api/bootstrap/ensure ### Description Ensures that the server has been bootstrapped. If not, it will attempt to bootstrap it. This is a safeguard method. ### Method POST ### Endpoint /api/bootstrap/ensure ### Parameters #### Path Parameters None #### Query Parameters None #### Request Body - **caller** (string) - Required - A string identifying the caller of this method for error reporting. ### Request Example ```json { "caller": "GameLogicHandler" } ``` ### Response #### Success Response (200) - **status** (string) - Indicates the success of ensuring bootstrap. #### Response Example ```json { "status": "Bootstrap ensured." } ``` ``` -------------------------------- ### Get ResourceOrTagKey Examples (Java) Source: https://mappings.dev/1.21.5/net/minecraft/commands/arguments/ResourceOrTagKeyArgument This method returns a collection of example strings for the ResourceOrTagKeyArgument. These examples demonstrate the expected format for resource and tag keys that can be parsed by this argument. ```java public Collection getExamples() { // Implementation details not shown return null; } ``` -------------------------------- ### Build Initial Screens Source: https://mappings.dev/1.21.5/net/minecraft/client/Minecraft These methods are responsible for constructing the initial screens of the application, often before the main game loop starts. They might involve creating menus, loading indicators, or splash screens. ```Java buildInitialScreens(Minecraft$GameLoadCookie arg0) ``` ```Java method_53527(class_310$class_8764 arg0) ``` ```Java onInitFinished(MinecraftClient$LoadingContext loadingContext) ``` ```Java m_293152_(C_3391_$C_290041_ arg0) ``` -------------------------------- ### GET /websites/mappings_dev_1_21_5/startTime Source: https://mappings.dev/1.21.5/net/minecraft/util/profiling/jfr/parse/JfrStatsResult Retrieves the start time of the recording or session. ```APIDOC ## GET /websites/mappings_dev_1_21_5/startTime ### Description Retrieves the start time of the recording or session. ### Method GET ### Endpoint /websites/mappings_dev_1_21_5/startTime ### Parameters #### Query Parameters None ### Request Example None ### Response #### Success Response (200) - **startTime** (Instant) - The start time of the recording or session in ISO 8601 format. #### Response Example ```json "2023-10-27T10:00:00Z" ``` ``` -------------------------------- ### Get Start Node for Pathfinding Source: https://mappings.dev/1.21.5/net/minecraft/world/level/pathfinder/WalkNodeEvaluator Methods to retrieve the starting node for a pathfinding operation. These might involve specific criteria or initial calculations. ```Java public Node getStart() public Node method_21() public Node m_7171_() ``` -------------------------------- ### Initialize Server Source: https://mappings.dev/1.21.5/net/minecraft/client/server/IntegratedServer Initializes the server environment. This method is crucial for starting the server and setting up its core components. It may have dependencies on system configurations or initial parameters. ```java public void initServer() { // Implementation details for server initialization } ``` -------------------------------- ### CreateFlatWorldScreen$DetailsList Methods Source: https://mappings.dev/1.21.5/net/minecraft/client/gui/screens/CreateFlatWorldScreen%24DetailsList Provides details on various methods used within the CreateFlatWorldScreen$DetailsList class for managing and rendering world creation details. ```APIDOC ## CreateFlatWorldScreen$DetailsList Methods ### Description Provides details on various methods used within the CreateFlatWorldScreen$DetailsList class for managing and rendering world creation details. ### Methods #### `setSelected(CreateFlatWorldScreen$DetailsList$Entry arg0)` ##### Description Sets the selected entry in the details list. ##### Method **public void** #### `setSelected(CustomizeFlatLevelScreen$SuperflatLayersListWidget$SuperflatLayerEntry arg0)` ##### Description Sets the selected layer entry. ##### Method **public void** #### `resetRows()` ##### Description Resets the rows in the details list. ##### Method **public void** #### `updateLayers()` ##### Description Updates the layer information displayed in the list. ##### Method **public void** #### `renderHeader(GuiGraphics arg0, int arg1, int arg2)` ##### Description Renders the header for the details list. ##### Method **protected void** #### `renderHeader(DrawContext arg0, int arg1, int arg2)` ##### Description Alternative method to render the header for the details list. ##### Method **protected void** ### Parameters (Specific parameters depend on the overload and context, not detailed in the provided snippet) ### Request Example None ### Response #### Success Response (200) None #### Response Example None ``` -------------------------------- ### ScoreHolderArgument: Get Examples Source: https://mappings.dev/1.21.5/net/minecraft/commands/arguments/ScoreHolderArgument Returns a collection of example strings that can be used as valid score holder arguments. This is useful for command suggestions. ```java public Collection getExamples() ``` -------------------------------- ### Initiate Quick Play Session (Java) Source: https://mappings.dev/1.21.5/net/minecraft/client/quickplay/QuickPlay This method starts a quick play session, taking the Minecraft client instance, quick play configuration, and Realms client as arguments. It's the primary entry point for initiating any type of quick play. ```java public static void startQuickPlay(MinecraftClient client, RunArgs.QuickPlay quickPlay, RealmsClient realmsClient) { // Implementation details for starting a quick play session // This method likely dispatches to other methods based on the quickPlay data. } ``` -------------------------------- ### Get Start Node with Position Source: https://mappings.dev/1.21.5/net/minecraft/world/level/pathfinder/WalkNodeEvaluator Methods to obtain a starting node based on a block position. These are crucial for initiating pathfinding from a specific location in the world. ```Java protected Node getStartNode(BlockPos arg0) protected Node getStart(BlockPos pos) protected Node method_43415(class_2338 arg0) protected Node m_230631_(C_4675_ arg0) ``` -------------------------------- ### Get Profiler Start Time Source: https://mappings.dev/1.21.5/net/minecraft/util/profiling/FilledProfileResults Returns the start time of the profiling session in nanoseconds. This provides a precise timestamp for the beginning of the measurement. ```Java public long getStartTimeNano() ``` -------------------------------- ### Initialize GUI/Client Source: https://mappings.dev/1.21.5/net/minecraft/client/gui/screens/recipebook/RecipeBookPage Initializes the client or GUI components with necessary parameters. This method is crucial for setting up the application's state at startup. It typically takes the client instance and dimensions as input. ```Java public void initialize(MinecraftClient client, int parentLeft, int parentTop) ``` ```Java public void init(Minecraft arg0, int arg1, int arg2) ``` ```Java public void method_2636(class_310 arg0, int arg1, int arg2) ``` ```Java public void m_100428_(C_3391_ p_100430_, int p_100431_, int arg2) ``` -------------------------------- ### Get Examples (Java) Source: https://mappings.dev/1.21.5/net/minecraft/commands/arguments/item/FunctionArgument Retrieves a collection of example strings for the function argument. This is useful for providing usage hints to players. ```java public Collection getExamples() { // Implementation details for returning example strings return null; // Placeholder } ``` -------------------------------- ### CreateFlatWorldScreen$DetailsList$Entry Slot Rendering Methods Source: https://mappings.dev/1.21.5/net/minecraft/client/gui/screens/CreateFlatWorldScreen%24DetailsList%24Entry Methods for rendering icons and their backgrounds within a slot. ```APIDOC ## CreateFlatWorldScreen$DetailsList$Entry Slot Rendering Methods ### Description Helper methods for drawing item icons and their background textures within a UI slot. ### Method - `renderIcon(DrawContext context, int x, int y, ItemStack iconItem)` - `renderIconBackgroundTexture(DrawContext context, int x, int y)` ### Endpoint N/A (Instance Methods) ### Parameters #### Path Parameters None #### Query Parameters None #### Request Body None ### Request Example ```json { "example": "Parameters include the drawing context, coordinates (x, y), and an ItemStack for the icon." } ``` ### Response #### Success Response (200) - **N/A** (void) - These methods perform drawing operations and do not return a value. #### Response Example ```json { "example": "Item icons and background textures are drawn to the specified coordinates." } ``` ``` -------------------------------- ### SwizzleArgument: Get Examples in Java Source: https://mappings.dev/1.21.5/net/minecraft/commands/arguments/coordinates/SwizzleArgument Retrieves a collection of example strings for the SwizzleArgument. This is useful for command suggestions and providing context to players. ```java public Collection getExamples() { return field_10740; } ``` -------------------------------- ### BookEditScreen Constructor Source: https://mappings.dev/1.21.5/net/minecraft/client/gui/screens/inventory/BookEditScreen Initializes a new BookEditScreen instance. It takes the player, the ItemStack representing the book, the interaction hand used, and the WritableBookContent as parameters. This constructor sets up the screen for editing a book. ```java public BookEditScreen(Player player, ItemStack stack, InteractionHand hand, WritableBookContent writableBookContent) ``` -------------------------------- ### StartAttacking Class Documentation Source: https://mappings.dev/1.21.5/net/minecraft/world/entity/ai/behavior/StartAttacking Provides details on the StartAttacking class, its constructors, and static methods used for initiating attacks. ```APIDOC ## Class: StartAttacking ### Description Represents a behavior in the AI system that initiates an attack on a target. ### Package net.minecraft.world.entity.ai.behavior ### Constructors #### `public StartAttacking()` - Description: Default constructor for the StartAttacking behavior. ### Methods #### `public static BehaviorControl create(StartAttacking$TargetFinder targetFinder)` - Description: Creates a BehaviorControl for starting an attack using a target finder. - Parameters: - `targetFinder` (StartAttacking$TargetFinder) - Required - Specifies how to find a target to attack. #### `public static BehaviorControl create(UpdateAttackTargetTask$StartCondition condition, UpdateAttackTargetTask$TargetGetter targetGetter)` - Description: Creates a BehaviorControl for starting an attack with specific conditions and target retrieval logic. - Parameters: - `condition` (UpdateAttackTargetTask$StartCondition) - Required - The condition that must be met to start attacking. - `targetGetter` (UpdateAttackTargetTask$TargetGetter) - Required - The logic for getting the attack target. #### `public static BehaviorControl create(StartAttacking$StartAttackingCondition condition, StartAttacking$TargetFinder targetFinder)` - Description: Creates a BehaviorControl for starting an attack with custom conditions and target finding. - Parameters: - `condition` (StartAttacking$StartAttackingCondition) - Required - The condition to initiate the attack. - `targetFinder` (StartAttacking$TargetFinder) - Required - The method for finding the target. #### `public static BehaviorControl a(cci$b arg0)` - Description: An alternative method to create a BehaviorControl for starting an attack. - Parameters: - `arg0` (cci$b) - Required - Internal parameter for behavior control. #### `public static BehaviorControl a(cci$a arg0, cci$b arg1)` - Description: An alternative method to create a BehaviorControl for starting an attack with two internal parameters. - Parameters: - `arg0` (cci$a) - Required - Internal parameter for behavior control. - `arg1` (cci$b) - Required - Internal parameter for behavior control. #### `public static BehaviorControl method_47119(class_4824$class_10251 arg0)` - Description: Method for starting an attack with a specific internal class type. - Parameters: - `arg0` (class_4824$class_10251) - Required - Internal parameter. #### `public static BehaviorControl method_47120(class_4824$class_10250 arg0, class_4824$class_10251 arg1)` - Description: Method for starting an attack with two specific internal class types. - Parameters: - `arg0` (class_4824$class_10250) - Required - Internal parameter. - `arg1` (class_4824$class_10251) - Required - Internal parameter. #### `public static BehaviorControl m_257710_(C_633_$C_345829_ p_368894_)` - Description: Internal method for attack target setting. - Parameters: - `p_368894_` (C_633_$C_345829_) - Required - Internal parameter. #### `public static BehaviorControl m_257741_(C_633_$C_345685_ p_363679_, C_633_$C_345829_ p_360766_)` - Description: Internal method for attack target setting with multiple parameters. - Parameters: - `p_363679_` (C_633_$C_345685_) - Required - Internal parameter. - `p_360766_` (C_633_$C_345829_) - Required - Internal parameter. ``` -------------------------------- ### Get Particle Examples Source: https://mappings.dev/1.21.5/net/minecraft/commands/arguments/ParticleArgument Retrieves a collection of example particle commands. This is useful for providing command autocompletion and usage hints to players. ```java public Collection getExamples() { // ... implementation details ... } ``` ```java public Collection getExamples() { // ... implementation details ... } ``` -------------------------------- ### Rendering State and Backend Initialization Source: https://mappings.dev/1.21.5/com/mojang/blaze3d/systems/RenderSystem Methods for setting line width and initializing the rendering backend. ```APIDOC ## Rendering State and Backend Initialization ### lineWidth(float width) **Description**: Sets the current line width for rendering. **Method**: `public static void` **Parameters**: #### Request Body - **width** (float) - The desired line width. ### getShaderLineWidth() **Description**: Retrieves the current shader line width. **Method**: `public static float` **Returns**: The current line width. ### getBackendDescription() **Description**: Returns a description of the graphics backend being used. **Method**: `public static String` **Returns**: A string describing the backend. ### getApiDescription() **Description**: Returns a description of the graphics API being used. **Method**: `public static String` **Returns**: A string describing the API. ### initBackendSystem() **Description**: Initializes the graphics backend system. **Method**: `public static TimeSource$NanoTimeSource` **Returns**: A NanoTimeSource object, likely for timing purposes. ### initRenderer(long windowHandle, int debugVerbosity, boolean sync, BiFunction shaderSourceGetter, boolean renderDebugLabels) **Description**: Initializes the renderer with specified settings. **Method**: `public static void` **Parameters**: #### Request Body - **windowHandle** (long) - The handle to the window to render in. - **debugVerbosity** (int) - The level of debug verbosity. - **sync** (boolean) - Whether to synchronize with the display's refresh rate. - **shaderSourceGetter** (BiFunction) - A function to get shader source code. - **renderDebugLabels** (boolean) - Whether to render debug labels. ### setErrorCallback(GLFWErrorCallbackI callback) **Description**: Sets the error callback for GLFW. **Method**: `public static void` **Parameters**: #### Request Body - **callback** (org.lwjgl.glfw.GLFWErrorCallbackI) - The error callback interface implementation. ### setupDefaultState() **Description**: Sets up the default rendering state. ``` -------------------------------- ### Get Profiler Start Tick Source: https://mappings.dev/1.21.5/net/minecraft/util/profiling/FilledProfileResults Returns the starting tick count of the profiling session. Ticks can represent discrete time intervals used for measurement. ```Java public int getStartTimeTicks() ``` -------------------------------- ### Get Mountain Start Biome Source: https://mappings.dev/1.21.5/net/minecraft/world/level/biome/OverworldBiomeBuilder Retrieves the biome for the start of a mountain range based on temperature, humidity, and a parameter range. This function defines the initial biome for mountainous terrain. ```Java private ResourceKey getMountainStartBiome(int temperature, int humidity, MultiNoiseUtil$ParameterRange weirdness) ``` -------------------------------- ### Create and Initialize Object Source: https://mappings.dev/1.21.5/net/minecraft/Util Creates an object and immediately initializes it using a Consumer. This pattern is useful for setting default properties or performing initial setup on a newly created object. ```java public static T make(T object, Consumer initializer) ``` -------------------------------- ### Get Command Examples using Brigadier (Java) Source: https://mappings.dev/1.21.5/net/minecraft/commands/arguments/ResourceKeyArgument Retrieves a collection of example strings for a given command or argument. This is useful for command documentation and user guidance. ```java public Collection| | | getExamples() public Collection| | | getExamples() ``` -------------------------------- ### RealmsSelectWorldTemplateScreen$WorldTemplateList Constructors Source: https://mappings.dev/1.21.5/com/mojang/realmsclient/gui/screens/RealmsSelectWorldTemplateScreen%24WorldTemplateList Provides details on how to instantiate the WorldTemplateList class. ```APIDOC ## Constructor Summary ### `public RealmsSelectWorldTemplateScreen$WorldTemplateList(RealmsSelectWorldTemplateScreen screen)` **Description**: Constructs a new WorldTemplateList associated with a specific RealmsSelectWorldTemplateScreen. ### `public RealmsSelectWorldTemplateScreen$WorldTemplateList(Iterable p_89795_)` **Description**: Constructs a new WorldTemplateList with an initial collection of WorldTemplate objects. ``` -------------------------------- ### Get Start Of Current Word Method Source: https://mappings.dev/1.21.5/net/minecraft/client/gui/components/CommandSuggestions Finds the starting index of the current word in a given string. This private static method takes a String and returns an int. ```Java private static int getLastWordIndex(String arg0) ``` ```Java private static int getStartOfCurrentWord(String input) ``` -------------------------------- ### QuickPlayLog Constructor and Method Signatures Source: https://mappings.dev/1.21.5/net/minecraft/client/quickplay/QuickPlayLog%241 Provides the signature details for the constructor and public methods of the QuickPlayLog class. This includes parameter types and return types, essential for understanding method usage. ```java public QuickPlayLog(String arg0) public void a(fqq arg0) public void log(Minecraft arg0) public void method_51265(class_310 arg0) public void save(MinecraftClient arg0) public void m_278768_(C_3391_ arg0) public void a(gqu$c arg0, String arg1, String arg2) public void setWorldData(QuickPlayLog$Type arg0, String arg1, String arg2) public void method_51266(class_8497$class_8500 arg0, String arg1, String arg2) public void setWorld(QuickPlayLogger$WorldType arg0, String arg1, String arg2) public void m_278642_(C_278365_$C_278351_ p_279305_, String p_279177_, String arg2) ``` -------------------------------- ### Initialize ServerReconfigScreen GUI (Java) Source: https://mappings.dev/1.21.5/net/minecraft/client/gui/screens/multiplayer/ServerReconfigScreen The `init()` method is responsible for initializing the graphical user interface elements of the ServerReconfigScreen. This includes setting up buttons, layouts, and other visual components necessary for server reconfiguration. It is a protected method, typically called by the game's rendering loop. ```Java protected void init() { // Initialization logic for GUI elements method_25426(); // Mapped name for init() m_7856_(); // Another mapped name for init() } ``` -------------------------------- ### Get All Structure Starts Map Source: https://mappings.dev/1.21.5/net/minecraft/world/level/StructureManager Returns a map where keys are structures and values are sets of their corresponding start positions. This method provides a comprehensive overview of all generated structures. ```Java public Map getAllStructureStarts() ``` ```Java public Map b(iw arg0) ``` -------------------------------- ### Get All Structure Starts Source: https://mappings.dev/1.21.5/net/minecraft/world/level/chunk/ImposterProtoChunk Retrieves a map of all Structure instances and their corresponding StructureStart objects within a chunk. ```Java public Map getAllStarts() ``` -------------------------------- ### Tesselator Initialization and Instance Source: https://mappings.dev/1.21.5/com/mojang/blaze3d/vertex/Tesselator Provides methods to initialize the Tesselator and get a singleton instance. ```APIDOC ## Tesselator Initialization and Instance ### Description Methods for initializing the Tesselator and obtaining its singleton instance. ### Method `public static void init()` ### Description Initializes the Tesselator. ### Method `public static Tesselator getInstance()` ### Description Gets the singleton instance of the Tesselator. ### Method `public void clear()` ### Description Clears the Tesselator's buffer. ``` -------------------------------- ### Initialization Methods Source: https://mappings.dev/1.21.5/net/minecraft/client/gui/screens/inventory/SmithingScreen These protected void methods are responsible for initializing various components and states within the application. They are typically called during the setup phase of the application or a specific module. ```java protected void G() { // ... } protected void subInit() { // ... } protected void method_25445() { // ... } protected void setup() { // ... } protected void m_5653_() { // ... } ``` -------------------------------- ### Get Structure Start Source: https://mappings.dev/1.21.5/net/minecraft/world/level/chunk/ImposterProtoChunk Retrieves the StructureStart for a given Structure. This represents the primary instance of a structure within a chunk. ```Java public StructureStart getStartForStructure(Structure arg0) ``` -------------------------------- ### NoiseSettings Constructor and Factory Methods Source: https://mappings.dev/1.21.5/net/minecraft/world/level/levelgen/NoiseSettings Details on how to create instances of NoiseSettings, including the primary constructor and static factory methods. ```APIDOC ## NoiseSettings Constructors and Factory Methods ### Constructor * **`public NoiseSettings(int minimumY, int height, int noiseSizeVertical, int arg3)`**: Constructs a new NoiseSettings object. ### Factory Methods * **`public static NoiseSettings create(int arg0, int arg1, int arg2, int arg3)`** * Aliases: `create(int minimumY, int height, int horizontalSize, int verticalSize)`, `method_32994(int arg0, int arg1, int arg2, int arg3)`, `m_224525_(int p_224526_, int p_224527_, int p_224528_, int p_224529_) * Description: Creates a NoiseSettings object with the specified dimensions. * **`private static com.mojang.serialization.DataResult guardY(NoiseSettings arg0)`** * Aliases: `method_32995(class_5309 arg0)`, `checkHeight(GenerationShapeConfig config)`, `m_158720_(C_2196_ p_158721_) * Description: A private helper method likely used for validating Y-level constraints. ``` -------------------------------- ### Get All Dimensions Source: https://mappings.dev/1.21.5/net/minecraft/world/level/levelgen/WorldDimensions Returns a map of all configured dimensions. This provides a comprehensive view of the world's dimension setup. ```java public Map, LevelStem> d() { // implementation omitted } public Map, LevelStem> dimensions() { // implementation omitted } public Map, LevelStem> comp_1014() { // implementation omitted } public Map, LevelStem> dimensions() { // implementation omitted } public Map, LevelStem> f_243948_() { // implementation omitted } ``` -------------------------------- ### CreateFlatWorldScreen$DetailsList$Entry Item Creation Methods Source: https://mappings.dev/1.21.5/net/minecraft/client/gui/screens/CreateFlatWorldScreen%24DetailsList%24Entry Methods for creating ItemStack objects, likely for display purposes. ```APIDOC ## CreateFlatWorldScreen$DetailsList$Entry Item Creation Methods ### Description Provides functionality to create an `ItemStack` based on a given `BlockState`. ### Method - `createItemStackFor(BlockState state)` - `getDisplayItem(BlockState arg0)` ### Endpoint N/A (Instance Methods) ### Parameters #### Path Parameters None #### Query Parameters None #### Request Body None ### Request Example ```json { "example": "Input is a BlockState object representing the block for which to create an item stack." } ``` ### Response #### Success Response (200) - **ItemStack** - An `ItemStack` representing the display item for the given block state. #### Response Example ```json { "example": "An ItemStack object with relevant item and count data." } ``` ``` -------------------------------- ### Get Structure Starts by Chunk Section Position Source: https://mappings.dev/1.21.5/net/minecraft/world/level/StructureManager Fetches structure starts for a specific chunk section position and a structure object. This allows for more granular retrieval of structures within a world. ```Java public List getStructureStarts(ChunkSectionPos sectionPos, Structure structure) ``` ```Java public List startsForStructure(SectionPos arg0, Structure arg1) ``` ```Java public List method_38853(class_4076 arg0, class_3195 arg1) ``` ```Java public List a(jz arg0, esn arg1) ``` ```Java public List m_220504_(C_4710_ p_220506_, C_213164_ arg1) ``` -------------------------------- ### CreateFlatWorldScreen$DetailsList$Entry Rendering Methods Source: https://mappings.dev/1.21.5/net/minecraft/client/gui/screens/CreateFlatWorldScreen%24DetailsList%24Entry Methods related to rendering the entry, including different rendering contexts and parameters. ```APIDOC ## CreateFlatWorldScreen$DetailsList$Entry Rendering Methods ### Description These methods handle the visual rendering of the entry within the list, adapting to different drawing contexts and parameters. ### Method - `render(GuiGraphics arg0, int arg1, int arg2, int arg3, int arg4, int arg5, int arg6, int arg7, boolean arg8, float arg9)` - `render(DrawContext arg0, int arg1, int arg2, int arg3, int arg4, int arg5, int arg6, int arg7, boolean arg8, float arg9)` ### Endpoint N/A (Instance Methods) ### Parameters #### Path Parameters None #### Query Parameters None #### Request Body None ### Request Example ```json { "example": "Parameters vary based on rendering context (GuiGraphics or DrawContext) and screen state." } ``` ### Response #### Success Response (200) - **N/A** (void) - These methods perform rendering actions and do not return a value. #### Response Example ```json { "example": "Visual elements are drawn to the screen." } ``` ``` -------------------------------- ### UuidArgument: Get Examples (Java) Source: https://mappings.dev/1.21.5/net/minecraft/commands/arguments/UuidArgument Returns a collection of example strings for the UUID argument. This is useful for command help messages, providing users with valid formats for UUID input. ```java public Collection getExamples() { // Implementation details for returning example UUID strings return null; // Placeholder for actual implementation } ``` -------------------------------- ### Initiate World Loading Sequence in Java Source: https://mappings.dev/1.21.5/net/minecraft/client/multiplayer/ClientPacketListener Handles the initiation of the world loading sequence, including waiting for the new level to be ready and starting the terrain download. This is a critical part of joining a server or changing dimensions. ```java private void a(gqm arg0, glo arg1, fzo$a arg2) {} public void startWaitingForNewLevel(LocalPlayer arg0, ClientLevel arg1, ReceivingLevelScreen$Reason arg2) {} public void startWorldLoading(ClientPlayerEntity player, ClientWorld world, DownloadingTerrainScreen$WorldEntryReason worldEntryReason) {} ``` -------------------------------- ### Get Structure Start by Chunk Section Position Source: https://mappings.dev/1.21.5/net/minecraft/world/level/StructureManager Retrieves a specific structure start for a given chunk section position, structure, and structure access object. This is useful for accessing detailed information about a single structure. ```Java public StructureStart getStructureStart(ChunkSectionPos pos, Structure structure, StructureHolder holder) ``` ```Java public StructureStart getStartForStructure(SectionPos arg0, Structure arg1, StructureAccess arg2) ``` ```Java public StructureStart method_26975(class_4076 arg0, class_3195 arg1, class_2810 arg2) ``` ```Java public StructureStart a(jz arg0, esn arg1, eej arg2) ``` ```Java public StructureStart m_220512_(C_4710_ p_220514_, C_213164_ p_220515_, C_213126_ arg2) ``` -------------------------------- ### Get Structure Starts by Chunk Position Source: https://mappings.dev/1.21.5/net/minecraft/world/level/StructureManager Retrieves a list of structure starts for a given chunk position and a predicate that filters structures. This method is essential for determining which structures are present within a specific region of the world. ```Java public List getStructureStarts(ChunkPos pos, Predicate predicate) ``` ```Java public List startsForStructure(ChunkPos arg0, Predicate arg1) ``` ```Java public List method_41035(class_1923 arg0, Predicate arg1) ``` ```Java public List a(djo arg0, Predicate arg1) ``` ```Java public List m_220477_(C_1560_ p_220479_, Predicate arg1) ``` -------------------------------- ### Placement Sound and Actions Source: https://mappings.dev/1.21.5/net/minecraft/world/entity/decoration/ItemFrame Handles playing placement sounds and initiating placement actions. ```APIDOC ## Placement Sound and Actions ### Description Manages the sounds associated with placing an object and the actions performed during placement. ### Methods - **playPlacementSound**(): Plays the sound for placement. - **method_6894**(): Internal method for placement sound. - **onPlace**(): Triggered when the object is placed. - **m_7084_**(): Internal method for placement actions. ``` -------------------------------- ### Start Riding Trigger - Get Conditions Codec Source: https://mappings.dev/1.21.5/net/minecraft/advancements/critereon/StartRidingTrigger Retrieves the codec used for defining the conditions for the StartRidingTrigger. ```APIDOC ## GET /advancements/critereon/start_riding/conditions ### Description Retrieves the codec used for defining the conditions for the StartRidingTrigger. This codec is essential for serializing and deserializing the trigger's conditions. ### Method GET ### Endpoint /advancements/critereon/start_riding/conditions ### Parameters None ### Request Example None ### Response #### Success Response (200) - **codec** (Codec) - The codec for the trigger instance conditions. #### Response Example ```json { "codec": "..." } ``` ``` -------------------------------- ### Setup Render Pass Source: https://mappings.dev/1.21.5/com/mojang/blaze3d/opengl/GlCommandEncoder Attempts to set up or initialize a render pass. This method is crucial for preparing the rendering context and states before drawing operations commence. It likely checks for necessary conditions or resources. ```Java private boolean trySetup(GlRenderPass arg0) ``` ```Java private boolean setupRenderPass(RenderPassImpl pass) ``` -------------------------------- ### Villager AI Behavior: Start Execution Source: https://mappings.dev/1.21.5/net/minecraft/world/entity/ai/behavior/LookAndFollowTradingPlayerSink Initiates the LookAndFollowTradingPlayerSink behavior. This method is called once when the behavior begins its execution cycle. It typically handles setup actions required for the villager to start following and looking at the trading player. ```java protected void start(ServerLevel arg0, Villager arg1, long arg2) ``` -------------------------------- ### RealmsMainScreen$Entry Rendering Methods Source: https://mappings.dev/1.21.5/com/mojang/realmsclient/RealmsMainScreen%24Entry Provides documentation for various methods used to render different elements of a Realms server entry, including status lights, text, and game modes. ```APIDOC ## Methods ### `renderStatusLights(RealmsServer server, DrawContext context, int x, int y, int mouseX, int mouseY)` - **Type**: `protected void` - **Description**: Renders the status lights for a Realms server. ### `renderStatusIcon(RealmsServer server, DrawContext context, int x, int y, int mouseX, int mouseY)` - **Type**: `protected void` - **Description**: Renders the status icon for a Realms server. ### `drawRealmStatus(DrawContext context, int x, int y, int mouseX, int mouseY, Identifier texture, Supplier tooltip)` - **Type**: `private void` - **Description**: Draws a realm status texture with a tooltip. ### `drawTextureWithTooltip(DrawContext context, int x, int y, int mouseX, int mouseY, Identifier texture, Supplier tooltip)` - **Type**: `private void` - **Description**: Draws a specified texture with an associated tooltip. ### `renderThirdLine(DrawContext context, int x, int y, RealmsServer server)` - **Type**: `protected void` - **Description**: Renders the third line of text for a Realms server entry (e.g., owner or expiration date). ### `drawOwnerOrExpiredText(DrawContext context, int y, int x, RealmsServer server)` - **Type**: `protected void` - **Description**: Draws the owner or expiration text for a Realms server entry. ### `renderClampedString(DrawContext context, String string, int left, int y, int right, int color)` - **Type**: `protected void` - **Description**: Renders a string clamped within specified horizontal bounds with a given color. ### `drawTrimmedText(DrawContext context, String string, int left, int y, int right, int color)` - **Type**: `protected void` - **Description**: Draws a trimmed string within specified bounds and color. ### `getVersionRight(int x, int width, Text version)` - **Type**: `protected int` - **Description**: Calculates the X coordinate for the right-aligned version text. ### `getGameModeRight(int x, int width, Text gameMode)` - **Type**: `protected int` - **Description**: Calculates the X coordinate for the right-aligned game mode text. ### `drawGameMode(RealmsServer server, DrawContext context, int x, int entryWidth, int y)` - **Type**: `protected int` - **Description**: Draws the game mode information for a Realms server entry. ### `firstLineY(int y)` - **Type**: `protected int` - **Description**: Calculates the Y coordinate for the first line of text. ### `lineHeight()` - **Type**: `protected int` - **Description**: Returns the standard line height for text rendering. ### `textX(int x)` - **Type**: `protected int` - **Description**: Calculates the X coordinate for text elements. ### `secondLineY(int y)` - **Type**: `protected int` - **Description**: Calculates the Y coordinate for the second line of text. ### `thirdLineY(int y)` - **Type**: `protected int` - **Description**: Calculates the Y coordinate for the third line of text. ``` -------------------------------- ### ShulkerAttackGoal start Method Source: https://mappings.dev/1.21.5/net/minecraft/world/entity/monster/Shulker%24ShulkerAttackGoal The start method is responsible for initiating the Shulker's attack sequence. It is called when the canUse method returns true, transitioning the Shulker into its attack state. ```java public void start() // method_6269(), start(), m_8056_() ``` -------------------------------- ### AvoidEntityGoal Method Examples Source: https://mappings.dev/1.21.5/net/minecraft/world/entity/ai/goal/AvoidEntityGoal Illustrates the core methods of the AvoidEntityGoal. canUse checks if the goal should start, canContinueToUse determines if it should persist, start initializes the avoidance behavior, stop cleans up the goal's state, and tick updates the goal's logic during execution. ```java public boolean canUse() public boolean canContinueToUse() public void start() public void stop() public void tick() ``` -------------------------------- ### Library Initialization and Management Source: https://mappings.dev/1.21.5/com/mojang/blaze3d/audio/Library Methods for initializing, cleaning up, and managing the audio library, including device-specific operations. ```APIDOC ## POST /initialize ### Description Initializes the audio library with a specified device and directional audio support. ### Method POST ### Endpoint /initialize ### Parameters #### Request Body - **deviceSpecifier** (String) - Required - The identifier for the audio device. - **directionalAudio** (boolean) - Required - Whether to enable directional audio. ### Request Example ```json { "deviceSpecifier": "default", "directionalAudio": true } ``` ### Response #### Success Response (200) No specific response body defined, success indicated by absence of errors. ## POST /cleanup ### Description Cleans up the audio library, releasing all resources. ### Method POST ### Endpoint /cleanup ### Parameters None ### Response #### Success Response (200) No specific response body defined, success indicated by absence of errors. ## POST /openDeviceOrFallback ### Description Opens a specified audio device, falling back to a default if the specified device is unavailable. ### Method POST ### Endpoint /openDeviceOrFallback ### Parameters #### Request Body - **deviceSpecifier** (String) - Required - The identifier for the audio device to open. ### Request Example ```json { "deviceSpecifier": "default" } ``` ### Response #### Success Response (200) No specific response body defined, success indicated by absence of errors. ## POST /tryOpenDevice ### Description Attempts to open a specified audio device. ### Method POST ### Endpoint /tryOpenDevice ### Parameters #### Request Body - **deviceSpecifier** (String) - Required - The identifier for the audio device to open. ### Request Example ```json { "deviceSpecifier": "default" } ``` ### Response #### Success Response (200) No specific response body defined, success indicated by absence of errors. ``` -------------------------------- ### Get Modded Status Source: https://mappings.dev/1.21.5/net/minecraft/server/MinecraftServer Checks and returns the modded status of the server. This indicates whether the server is running with any modifications installed. ```java public ModCheck getModStatus() { // Implementation to get mod status return null; } ``` -------------------------------- ### Entity Spawning and Initialization Source: https://mappings.dev/1.21.5/net/minecraft/world/entity/monster/Zombie Methods related to entity spawning and initial setup. ```APIDOC ## POST /api/entities/spawn/initialize ### Description Initializes an entity during its spawn process in the world. ### Method POST ### Endpoint /api/entities/spawn/initialize ### Parameters #### Request Body - **serverWorldAccess** (ServerWorldAccess) - Required - The access to the server world. - **difficultyInstance** (DifficultyInstance) - Required - The difficulty settings for the spawn. - **spawnReason** (SpawnReason) - Required - The reason for the entity spawning. - **entityData** (EntityData) - Optional - Additional data for the entity's initialization. ### Response #### Success Response (200) - **initializationStatus** (string) - Confirmation of the initialization. #### Response Example ```json { "initializationStatus": "Entity initialized successfully" } ``` --- ## POST /api/entities/spawn/finalize ### Description Finalizes the spawn process for an entity, potentially setting up group data. ### Method POST ### Endpoint /api/entities/spawn/finalize ### Parameters #### Request Body - **serverLevelAccessor** (ServerLevelAccessor) - Required - Access to the server level. - **difficultyInstance** (DifficultyInstance) - Required - The difficulty settings for the spawn. - **entitySpawnReason** (EntitySpawnReason) - Required - The reason for the entity spawning. - **spawnGroupData** (SpawnGroupData) - Optional - Data related to the spawn group. ### Response #### Success Response (200) - **spawnData** (SpawnGroupData) - The finalized spawn group data. #### Response Example ```json { "spawnData": { "type": "some_group" } } ``` ``` -------------------------------- ### Get Structure Bounding Box (Java) Source: https://mappings.dev/1.21.5/net/minecraft/gametest/framework/StructureUtils Generates the bounding box for a structure given a starting position, size, and rotation. This method is essential for defining the spatial extent of structures. ```java public static BoundingBox getStructureBoundingBox(BlockPos arg0, Vec3i arg1, Rotation arg2) { // Implementation details omitted for brevity return null; } ``` -------------------------------- ### TagsProvider Method Examples (Java) Source: https://mappings.dev/1.21.5/net/minecraft/data/tags/TagsProvider Illustrates key methods of the TagsProvider class, including getting the provider's name, configuring with registry lookups, running the data generation process, creating tag appenders, getting raw tag builders, and retrieving tag lookup futures. ```java public final String getName() protected abstract void addTags(HolderLookup$Provider arg0) public CompletableFuture run(CachedOutput arg0) protected TagsProvider$TagAppender tag(TagKey arg0) protected TagBuilder getOrCreateRawBuilder(TagKey arg0) public CompletableFuture> contentsGetter() ``` -------------------------------- ### RealmsSelectFileToUploadScreen$Entry Constructor Source: https://mappings.dev/1.21.5/com/mojang/realmsclient/gui/screens/RealmsSelectFileToUploadScreen%24Entry Details of the constructor for creating a new RealmsSelectFileToUploadScreen$Entry. ```APIDOC ## RealmsSelectFileToUploadScreen$Entry Constructor ### Description Initializes a new instance of the `RealmsSelectFileToUploadScreen$Entry` class. ### Constructor - **public** (RealmsSelectFileToUploadScreen p_89560_, LevelSummary summary) - Constructs an entry with the given screen and level summary. ``` -------------------------------- ### SimpleSoundInstance Constructors Source: https://mappings.dev/1.21.5/net/minecraft/client/resources/sounds/SimpleSoundInstance Details on the various ways to construct a SimpleSoundInstance. ```APIDOC ## SimpleSoundInstance Constructors ### Description Provides details on the various ways to construct a SimpleSoundInstance. ### Method Constructors ### Parameters #### Constructor 1 - **sound** (SoundEvent) - Description - **category** (SoundSource) - Description - **volume** (float) - Description - **pitch** (float) - Description - **random** (RandomSource) - Description - **pos** (BlockPos) - Description #### Constructor 2 - **sound** (SoundEvent) - Description - **category** (SoundSource) - Description - **volume** (float) - Description - **pitch** (float) - Description - **random** (RandomSource) - Description - **x** (double) - Description - **y** (double) - Description - **z** (double) - Description #### Constructor 3 - **sound** (SoundEvent) - Description - **category** (SoundSource) - Description - **volume** (float) - Description - **pitch** (float) - Description - **random** (RandomSource) - Description - **repeat** (boolean) - Description - **repeatDelay** (int) - Description - **attenuationType** (SoundInstance$Attenuation) - Description - **x** (double) - Description - **y** (double) - Description - **z** (double) - Description #### Constructor 4 - **id** (ResourceLocation) - Description - **category** (SoundSource) - Description - **volume** (float) - Description - **pitch** (float) - Description - **random** (RandomSource) - Description - **repeat** (boolean) - Description - **repeatDelay** (int) - Description - **attenuationType** (SoundInstance$Attenuation) - Description - **x** (double) - Description - **y** (double) - Description - **z** (double) - Description - **relative** (boolean) - Description ``` -------------------------------- ### Get Structure at Block Position Source: https://mappings.dev/1.21.5/net/minecraft/world/level/StructureManager Retrieves the structure start at a specific block position for a given structure. This method is useful for querying structure information at a precise location. ```Java public StructureStart getStructureAt(BlockPos pos, Structure structure) ``` ```Java public StructureStart getStructureWithPieceAt(BlockPos arg0, Structure arg1) ``` ```Java public StructureStart method_28388(class_2338 arg0, class_3195 arg1) ``` ```Java public StructureStart method_38854(class_2338 arg0, class_3195 arg1) ``` ```Java public StructureStart a(iw arg0, esn arg1) ``` ```Java public StructureStart b(iw arg0, esn arg1) ``` ```Java public StructureStart m_220494_(C_4675_ p_220496_, C_213164_ arg1) ``` ```Java public StructureStart m_220524_(C_4675_ p_220526_, C_213164_ arg1) ``` -------------------------------- ### Constructor Summary Source: https://mappings.dev/1.21.5/net/minecraft/client/Options%243 Lists the available constructors for the Options$3 class. ```APIDOC ## Constructor Summary ### `Options$3()` - **Description**: Default constructor for the Options$3 class. - **Modifier**: `()` ```