### Other Setup Methods Source: https://nekoyue.github.io/ForgeJavaDocs-NG/javadoc/1.21.x-neoforge/index-files/index-19.html Miscellaneous setup methods. ```APIDOC ## setupGhostRecipe RecipeBookComponent ### Description Sets up the ghost recipe for the recipe book. ### Method Method ### Endpoint net.minecraft.client.gui.screens.recipebook.RecipeBookComponent ### Parameters - **recipeHolder** (RecipeHolder) - Required - Description - **slots** (List) - Required - Description ## setupLegacyTagWarning TagConventionLogWarning ### Description Sets up a warning for legacy tag conventions. ### Method Static Method ### Endpoint net.neoforged.neoforge.common.TagConventionLogWarning ### Parameters - **eventBus** (IEventBus) - Required - Description ## setupRender LevelRenderer ### Description Sets up the rendering process for the level. ### Method Method ### Endpoint net.minecraft.client.renderer.LevelRenderer ### Parameters - **camera** (Camera) - Required - Description - **frustum** (Frustum) - Required - Description - **isSpectator** (boolean) - Required - Description - **isRenderWorld** (boolean) - Required - Description ## setupRequest FileUpload ### Description Sets up an HTTP POST request for file upload. ### Method Method ### Endpoint com.mojang.realmsclient.client.FileUpload ### Parameters - **postRequest** (HttpPost) - Required - Description ## setupResultSlot StonecutterMenu ### Description Sets up the result slot in the stonecutter menu. ### Method Method ### Endpoint net.minecraft.world.inventory.StonecutterMenu ## setupRecipeList StonecutterMenu ### Description Sets up the recipe list for the stonecutter menu. ### Method Method ### Endpoint net.minecraft.world.inventory.StonecutterMenu ### Parameters - **container** (Container) - Required - Description - **itemStack** (ItemStack) - Required - Description ``` -------------------------------- ### Start Class Constructor Source: https://nekoyue.github.io/ForgeJavaDocs-NG/javadoc/1.21.x-neoforge/mcp/client/Start.html Initializes a new instance of the Start class. No specific setup is required. ```java public Start() ``` -------------------------------- ### Method: start Source: https://nekoyue.github.io/ForgeJavaDocs-NG/javadoc/1.21.x-neoforge/net/minecraft/world/entity/animal/sniffer/SnifferAi.FinishedDigging.html Details for the start method. ```APIDOC ## Method: start ### Signature `protected void start(ServerLevel p_272708_, Sniffer p_273502_, long p_272739_)` ### Description Called to initiate the behavior. ### Overrides `start` in class `Behavior` ### Parameters * `p_272708_` (ServerLevel) - The server level. * `p_273502_` (Sniffer) - The sniffer entity. * `p_272739_` (long) - A long value, likely representing time or a tick count. ``` -------------------------------- ### Start Behavior - Java Source: https://nekoyue.github.io/ForgeJavaDocs-NG/javadoc/1.21.x-neoforge/net/minecraft/world/entity/ai/behavior/LongJumpToRandomPos.html Initializes the behavior when it starts. ```java protected void start(ServerLevel p_147676_, E p_147677_, long p_147678_) ``` -------------------------------- ### Common Setup Method Source: https://nekoyue.github.io/ForgeJavaDocs-NG/javadoc/1.21.x-neoforge/net/neoforged/neoforge/oldtest/misc/RegistryCodecTest.html The common setup method for the FML lifecycle, which is called during the common setup phase. ```java public void commonSetup(net.neoforged.fml.event.lifecycle.FMLCommonSetupEvent event) ``` -------------------------------- ### Client Utility and Rendering Setup Source: https://nekoyue.github.io/ForgeJavaDocs-NG/javadoc/1.21.x-neoforge/index-files/index-19.html Methods for client-side utilities and rendering setup. ```APIDOC ## setupAlpha(float) ### Description Sets the alpha value for client-side utilities. ### Method Static method ### Endpoint net.neoforged.testframework.client.ClientUtils ## setupAndRender(BlockEntityRenderer, T, float, PoseStack, MultiBufferSource) ### Description Sets up and renders a block entity. ### Method Static method ### Endpoint net.minecraft.client.renderer.blockentity.BlockEntityRenderDispatcher ``` -------------------------------- ### start(Consumer>) - ConfigurationTask Source: https://nekoyue.github.io/ForgeJavaDocs-NG/javadoc/1.21.x-neoforge/index-files/index-19.html Starts the configuration task. ```APIDOC ## start(Consumer>) ### Description Starts the configuration task. ### Method Method ### Endpoint N/A (Method within an interface) ### Parameters None ### Request Example N/A ### Response N/A ``` -------------------------------- ### Input and Callback Setup Methods Source: https://nekoyue.github.io/ForgeJavaDocs-NG/javadoc/1.21.x-neoforge/index-files/index-19.html Methods for setting up input handling and callbacks. ```APIDOC ## setupKeyboardCallbacks InputConstants ### Description Sets up keyboard input callbacks. ### Method Static Method ### Endpoint com.mojang.blaze3d.platform.InputConstants ### Parameters - **windowHandle** (long) - Required - Description - **keyCallback** (GLFWKeyCallbackI) - Required - Description - **charModsCallback** (GLFWCharModsCallbackI) - Required - Description ## setupMouseCallbacks InputConstants ### Description Sets up mouse input callbacks. ### Method Static Method ### Endpoint com.mojang.blaze3d.platform.InputConstants ### Parameters - **windowHandle** (long) - Required - Description - **posCallback** (GLFWCursorPosCallbackI) - Required - Description - **buttonCallback** (GLFWMouseButtonCallbackI) - Required - Description - **scrollCallback** (GLFWScrollCallbackI) - Required - Description - **dropCallback** (GLFWDropCallbackI) - Required - Description ``` -------------------------------- ### Input Handling Setup Source: https://nekoyue.github.io/ForgeJavaDocs-NG/javadoc/1.21.x-neoforge/index-files/index-19.html Methods for setting up keyboard and mouse input handlers. ```APIDOC ## setup(long) ### Description Sets up the keyboard handler with a given long value. ### Method Method ### Endpoint net.minecraft.client.KeyboardHandler ## setup(long) ### Description Sets up the mouse handler with a given long value. ### Method Method ### Endpoint net.minecraft.client.MouseHandler ``` -------------------------------- ### Get Player Starts Riding Criterion Source: https://nekoyue.github.io/ForgeJavaDocs-NG/javadoc/1.21.x-neoforge/net/minecraft/advancements/critereon/class-use/StartRidingTrigger.TriggerInstance.html Use this method to create a criterion that triggers when a player starts riding an entity. Requires an EntityPredicate.Builder. ```java static Criterion playerStartsRiding(EntityPredicate.Builder p_160402_) ``` -------------------------------- ### Create ItemCombinerMenuSlotDefinition.Builder Source: https://nekoyue.github.io/ForgeJavaDocs-NG/javadoc/1.21.x-neoforge/net/minecraft/world/inventory/class-use/ItemCombinerMenuSlotDefinition.Builder.html Use this static method to start building a new ItemCombinerMenuSlotDefinition. Requires no specific setup. ```java ItemCombinerMenuSlotDefinition.Builder ItemCombinerMenuSlotDefinition.create() ``` -------------------------------- ### mcp.client.Start Constructor Source: https://nekoyue.github.io/ForgeJavaDocs-NG/javadoc/1.21.x-neoforge/index-files/index-19.html Documentation for the Start constructor in the mcp.client.Start class. ```APIDOC ## Start() ### Description Constructs a new Start object. ### Method public ### Endpoint N/A ### Parameters N/A ### Request Example N/A ### Response N/A ``` -------------------------------- ### ItemCombinerMenu - getUseRowStart Method Source: https://nekoyue.github.io/ForgeJavaDocs-NG/javadoc/1.21.x-neoforge/net/minecraft/world/inventory/ItemCombinerMenu.html Gets the start index for the row used in item combination. This is a private helper method. ```java private int getUseRowStart() ``` -------------------------------- ### Configuration and Setup Methods Source: https://nekoyue.github.io/ForgeJavaDocs-NG/javadoc/1.21.x-neoforge/net/minecraft/network/Connection.html Methods for configuring bandwidth, encryption, listeners, and protocols. ```APIDOC ## PUT /configuration/bandwidthLogger ### Description Sets the bandwidth logger for network traffic monitoring. ### Method PUT ### Endpoint /configuration/bandwidthLogger ### Parameters #### Request Body - **p_323799_** (LocalSampleLogger) - Required - The logger instance to set. ### Request Example ```json { "p_323799_": {"type": "LocalSampleLogger"} } ``` ### Response #### Success Response (200) - **status** (string) - Indicates success. #### Response Example ```json { "status": "Bandwidth logger set" } ``` ## PUT /configuration/encryptionKey ### Description Sets the encryption keys for secure communication. ### Method PUT ### Endpoint /configuration/encryptionKey ### Parameters #### Request Body - **p_129496_** (Cipher) - Required - The encryption cipher for outgoing data. - **p_129497_** (Cipher) - Required - The encryption cipher for incoming data. ### Request Example ```json { "p_129496_": {"type": "Cipher"}, "p_129497_": {"type": "Cipher"} } ``` ### Response #### Success Response (200) - **status** (string) - Indicates success. #### Response Example ```json { "status": "Encryption keys set" } ``` ## PUT /configuration/serverboundHandshakeListener ### Description Sets the listener for serverbound handshake packets. ### Method PUT ### Endpoint /configuration/serverboundHandshakeListener ### Parameters #### Request Body - **p_294829_** (PacketListener) - Required - The listener to handle handshake packets. ### Request Example ```json { "p_294829_": {"type": "PacketListener"} } ``` ### Response #### Success Response (200) - **status** (string) - Indicates success. #### Response Example ```json { "status": "Serverbound handshake listener set" } ``` ## PUT /configuration/readOnly ### Description Sets the channel to read-only mode. ### Method PUT ### Endpoint /configuration/readOnly ### Response #### Success Response (200) - **status** (string) - Indicates success. #### Response Example ```json { "status": "Channel set to read-only" } ``` ## POST /configuration/setupCompression ### Description Configures the compression settings for network traffic. ### Method POST ### Endpoint /configuration/setupCompression ### Parameters #### Request Body - **p_129485_** (int) - Required - The compression threshold. - **p_182682_** (boolean) - Required - Whether to enable compression. ### Request Example ```json { "p_129485_": 1024, "p_182682_": true } ``` ### Response #### Success Response (200) - **status** (string) - Indicates success. #### Response Example ```json { "status": "Compression setup complete" } ``` ## POST /protocol/setupInbound ### Description Sets up the inbound protocol handler. ### Method POST ### Endpoint /protocol/setupInbound ### Parameters #### Request Body - **p_320903_** (ProtocolInfo) - Required - Information about the inbound protocol. - **p_320940_** (T) - Required - The packet listener for the inbound protocol. ### Request Example ```json { "p_320903_": {"type": "ProtocolInfo"}, "p_320940_": {"type": "T"} } ``` ### Response #### Success Response (200) - **status** (string) - Indicates success. #### Response Example ```json { "status": "Inbound protocol setup" } ``` ## POST /protocol/setupOutbound ### Description Sets up the outbound protocol handler. ### Method POST ### Endpoint /protocol/setupOutbound ### Parameters #### Request Body - **p_319974_** (ProtocolInfo) - Required - Information about the outbound protocol. ### Request Example ```json { "p_319974_": {"type": "ProtocolInfo"} } ``` ### Response #### Success Response (200) - **status** (string) - Indicates success. #### Response Example ```json { "status": "Outbound protocol setup" } ``` ``` -------------------------------- ### Get DataComponentType Builder Source: https://nekoyue.github.io/ForgeJavaDocs-NG/javadoc/1.21.x-neoforge/net/minecraft/core/component/class-use/DataComponentType.Builder.html Obtain a builder instance for creating a DataComponentType. This is the starting point for configuring a new data component. ```java static DataComponentType.Builder builder() ``` -------------------------------- ### mcp.client.Start Class API Source: https://nekoyue.github.io/ForgeJavaDocs-NG/javadoc/1.21.x-neoforge/mcp/client/Start.html Documentation for the Start class, including its constructor and static methods. ```APIDOC ## Class: mcp.client.Start ### Description Represents the starting point for the application, containing utility methods. ### Methods #### Constructor - **Start()** - Description: Initializes a new instance of the Start class. #### Static Methods - **main(String[] args)** - Description: The entry point of the application. - Parameters: - **args** (String[]) - The command-line arguments. - **concat(T[] first, T[] second)** - Description: Concatenates two arrays into a single new array. - Parameters: - **first** (T[]) - The first array to concatenate. - **second** (T[]) - The second array to concatenate. - Returns: - **T[]** - A new array containing elements from both input arrays. ``` -------------------------------- ### Get Generation Value Source: https://nekoyue.github.io/ForgeJavaDocs-NG/javadoc/1.21.x-neoforge/net/minecraft/world/item/component/WrittenBookContent.html Retrieves the value of the `generation` record component. No specific setup is required beyond having an instance of the relevant object. ```java public List> pages() ``` -------------------------------- ### Default State Setup Source: https://nekoyue.github.io/ForgeJavaDocs-NG/javadoc/1.21.x-neoforge/com/mojang/blaze3d/systems/RenderSystem.html Sets up the default OpenGL state. ```APIDOC ## setupDefaultState ### Description Sets up the default OpenGL state. ### Method `public static void setupDefaultState(int p_69903_, int p_69904_, int p_69905_, int p_69906_)` ### Parameters * **p_69903_** (int) - Unknown parameter. * **p_69904_** (int) - Unknown parameter. * **p_69905_** (int) - Unknown parameter. * **p_69906_** (int) - Unknown parameter. ``` -------------------------------- ### Get MapCodec for NumberFormatType Source: https://nekoyue.github.io/ForgeJavaDocs-NG/javadoc/1.21.x-neoforge/net/minecraft/network/chat/numbers/NumberFormatType.html Use this method to retrieve the MapCodec associated with a NumberFormatType. No specific setup is required beyond having an instance of the interface. ```java com.mojang.serialization.MapCodec mapCodec() ``` -------------------------------- ### RenderSystem Shader Methods Source: https://nekoyue.github.io/ForgeJavaDocs-NG/javadoc/1.21.x-neoforge/index-files/index-7.html Provides methods to get shader fog color, fog end, fog shape, fog start, game time, glint alpha, and texture. ```APIDOC ## Static Methods in com.mojang.blaze3d.systems.RenderSystem ### getShaderFogColor() Retrieves the shader fog color. ### getShaderFogEnd() Retrieves the shader fog end value. ### getShaderFogShape() Retrieves the shader fog shape. ### getShaderFogStart() Retrieves the shader fog start value. ### getShaderGameTime() Retrieves the shader game time. ### getShaderGlintAlpha() Retrieves the shader glint alpha value. ### getShaderLineWidth() Retrieves the shader line width. ### getShaderTexture(int) Retrieves a shader texture based on the provided integer index. ``` -------------------------------- ### Server Initialization Methods Source: https://nekoyue.github.io/ForgeJavaDocs-NG/javadoc/1.21.x-neoforge/index-files/index-9.html Documentation for methods related to initializing game servers. ```APIDOC ## initServer() ### Description Initializes the game server. ### Method Various (e.g., void) ### Endpoint N/A (Java Method) ### Parameters None ### Request Example N/A ### Response N/A ### Notes This method is found in `GameTestServer`, `DedicatedServer`, `MinecraftServer`, and `EphemeralTestServerProvider.JUnitServer`. ``` -------------------------------- ### NeoForgeRegistriesSetup Class Overview Source: https://nekoyue.github.io/ForgeJavaDocs-NG/javadoc/1.21.x-neoforge/net/neoforged/neoforge/registries/NeoForgeRegistriesSetup.html Provides an overview of the NeoForgeRegistriesSetup class, including its fields, constructors, and methods. ```APIDOC ## Class: NeoForgeRegistriesSetup ### Description This class is responsible for setting up and managing NeoForge registries. ### Fields - `setup` (private static boolean): Indicates if the setup process has been completed. - `VANILLA_SYNC_REGISTRIES` (private static final Set>): A set containing vanilla registries that should be synchronized with the client. ### Constructors - `NeoForgeRegistriesSetup()`: Public constructor for the class. ### Methods - `setup(net.neoforged.bus.api.IEventBus modEventBus)` (static): Initializes the registry setup process. - `registerRegistries(NewRegistryEvent event)` (private static): Handles the registration of new registries. - `modifyRegistries(ModifyRegistriesEvent event)` (private static): Allows modification of existing registries. ### Inherited Methods from java.lang.Object `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait` ``` -------------------------------- ### Methods starting with 'get' Source: https://nekoyue.github.io/ForgeJavaDocs-NG/javadoc/1.21.x-neoforge/index-files/index-7.html This section lists various methods available across different classes, primarily focusing on retrieval operations. It includes methods for getting pick results, pickup items, pickup reach, pickup sounds, structure pieces, piston move types, piston push reactions, and camera pitch. ```APIDOC ## getPickResult() ### Description Retrieves the pick result for an entity. ### Method N/A (Java Method) ### Endpoint N/A ### Parameters None ### Response N/A ## getPickupItem() ### Description Retrieves the item that can be picked up. ### Method N/A (Java Method) ### Endpoint N/A ### Parameters None ### Response N/A ## getPickupItemStackOrigin() ### Description Retrieves the origin of the item stack that can be picked up. ### Method N/A (Java Method) ### Endpoint N/A ### Parameters None ### Response N/A ## getPickupReach() ### Description Gets the pickup reach for an entity. ### Method N/A (Java Method) ### Endpoint N/A ### Parameters None ### Response N/A ## getPickupSound() ### Description Retrieves the sound to be played when an item is picked up. ### Method N/A (Java Method) ### Endpoint N/A ### Parameters None ### Response N/A ## getPickupSound(BlockState) ### Description State sensitive variant of `BucketPickup.getPickupSound()`. ### Method N/A (Java Method) ### Endpoint N/A ### Parameters - **state** (BlockState) - Description not provided. ### Response N/A ## getPieces() ### Description Gets the pieces of the structure. ### Method N/A (Java Method) ### Endpoint N/A ### Parameters None ### Response N/A ## getPiecesBuilder() ### Description Gets the pieces builder for the structure generation stub. ### Method N/A (Java Method) ### Endpoint N/A ### Parameters None ### Response N/A ## getPierceLevel() ### Description Gets the pierce level of an arrow. ### Method N/A (Java Method) ### Endpoint N/A ### Parameters None ### Response N/A ## getPiercingCount(ServerLevel, ItemStack, ItemStack) ### Description Gets the piercing count for an enchantment. ### Method N/A (Java Method) ### Endpoint N/A ### Parameters - **level** (ServerLevel) - Description not provided. - **stack1** (ItemStack) - Description not provided. - **stack2** (ItemStack) - Description not provided. ### Response N/A ## getPinger() ### Description Gets the pinger for the multiplayer join screen. ### Method N/A (Java Method) ### Endpoint N/A ### Parameters None ### Response N/A ## getPingLogger() ### Description Gets the ping logger for the debug screen overlay. ### Method N/A (Java Method) ### Endpoint N/A ### Parameters None ### Response N/A ## getPistonMoveType() ### Description Gets the piston move type from a PistonEvent. ### Method N/A (Java Method) ### Endpoint N/A ### Parameters None ### Response N/A ## getPistonPushReaction() ### Description Gets the piston push reaction for an entity or block state. ### Method N/A (Java Method) ### Endpoint N/A ### Parameters None ### Response N/A ## getPistonPushReaction(BlockState) ### Description Returns the reaction of the block when pushed or pulled by a piston. ### Method N/A (Java Method) ### Endpoint N/A ### Parameters - **state** (BlockState) - Description not provided. ### Response N/A ## getPitch() ### Description Gets the pitch of a sound instance or camera. ### Method N/A (Java Method) ### Endpoint N/A ### Parameters None ### Response N/A ## getPitch(RandomSource) ### Description Gets the pitch for a parrot, potentially randomized. ### Method N/A (Java Method) ### Endpoint N/A ### Parameters - **random** (RandomSource) - Description not provided. ### Response N/A ## getPitchFromNote(int) ### Description Gets the pitch from a note block's integer value. ### Method N/A (Java Method) ### Endpoint N/A ### Parameters - **note** (int) - Description not provided. ### Response N/A ## getPixel(SpriteContents.AnimatedTexture, int, int, int, int) ### Description Gets a pixel from a sprite's animated texture at specified coordinates and frame. ### Method N/A (Java Method) ### Endpoint N/A ### Parameters - **texture** (SpriteContents.AnimatedTexture) - Description not provided. - **frame** (int) - Description not provided. - **x** (int) - Description not provided. - **y** (int) - Description not provided. - **width** (int) - Description not provided. ### Response N/A ``` -------------------------------- ### Entity Renderers - Setup Rotations Methods Source: https://nekoyue.github.io/ForgeJavaDocs-NG/javadoc/1.21.x-neoforge/com/mojang/blaze3d/vertex/class-use/PoseStack.html Demonstrates the 'setupRotations' method used in various entity renderers to set up entity rotations. ```APIDOC ## Entity Renderers - Setup Rotations Methods ### Description These methods are used in various entity renderers to set up the rotations for an entity. They typically take the entity, a PoseStack, and several float values for rotation angles. ### Method protected void ### Endpoint N/A (Java methods) ### Parameters #### Path Parameters N/A #### Query Parameters N/A #### Request Body N/A ### Request Example N/A ### Response #### Success Response (void) N/A #### Response Example N/A --- ``` ```APIDOC ## ArmorStandRenderer.setupRotations ### Parameters - **p_113800** (ArmorStand) - The armor stand entity. - **p_113801** (PoseStack) - The pose stack for transformations. - **p_113802** (float) - Rotation value 1. - **p_113803** (float) - Rotation value 2. - **p_113804** (float) - Rotation value 3. - **p_319811** (float) - Rotation value 4. ``` ```APIDOC ## CatRenderer.setupRotations ### Parameters - **p_113956** (Cat) - The cat entity. - **p_113957** (PoseStack) - The pose stack for transformations. - **p_113958** (float) - Rotation value 1. - **p_113959** (float) - Rotation value 2. - **p_113960** (float) - Rotation value 3. - **p_320072** (float) - Rotation value 4. ``` ```APIDOC ## CodRenderer.setupRotations ### Parameters - **p_320712** (Cod) - The cod entity. - **p_114010** (PoseStack) - The pose stack for transformations. - **p_114011** (float) - Rotation value 1. - **p_114012** (float) - Rotation value 2. - **p_114013** (float) - Rotation value 3. - **p_320770** (float) - Rotation value 4. ``` ```APIDOC ## DrownedRenderer.setupRotations ### Parameters - **p_114109** (Drowned) - The drowned entity. - **p_114110** (PoseStack) - The pose stack for transformations. - **p_114111** (float) - Rotation value 1. - **p_114112** (float) - Rotation value 2. - **p_114113** (float) - Rotation value 3. - **p_319953** (float) - Rotation value 4. ``` ```APIDOC ## FoxRenderer.setupRotations ### Parameters - **p_320936** (Fox) - The fox entity. - **p_114731** (PoseStack) - The pose stack for transformations. - **p_114732** (float) - Rotation value 1. - **p_114733** (float) - Rotation value 2. - **p_114734** (float) - Rotation value 3. - **p_320025** (float) - Rotation value 4. ``` ```APIDOC ## IronGolemRenderer.setupRotations ### Parameters - **p_115014** (IronGolem) - The iron golem entity. - **p_115015** (PoseStack) - The pose stack for transformations. - **p_115016** (float) - Rotation value 1. - **p_115017** (float) - Rotation value 2. - **p_115018** (float) - Rotation value 3. - **p_320099** (float) - Rotation value 4. ``` ```APIDOC ## LivingEntityRenderer.setupRotations ### Parameters - **p_115317** (T) - The living entity. - **p_115318** (PoseStack) - The pose stack for transformations. - **p_115319** (float) - Rotation value 1. - **p_115320** (float) - Rotation value 2. - **p_115321** (float) - Rotation value 3. - **p_320045** (float) - Rotation value 4. ``` ```APIDOC ## PandaRenderer.setupRotations ### Parameters - **p_115641** (Panda) - The panda entity. - **p_115642** (PoseStack) - The pose stack for transformations. - **p_115643** (float) - Rotation value 1. - **p_115644** (float) - Rotation value 2. - **p_115645** (float) - Rotation value 3. - **p_320830** (float) - Rotation value 4. ``` ```APIDOC ## PhantomRenderer.setupRotations ### Parameters - **p_320470** (Phantom) - The phantom entity. - **p_115674** (PoseStack) - The pose stack for transformations. - **p_115675** (float) - Rotation value 1. - **p_115676** (float) - Rotation value 2. - **p_115677** (float) - Rotation value 3. - **p_320856** (float) - Rotation value 4. ``` ```APIDOC ## PufferfishRenderer.setupRotations ### Parameters - **p_320383** (Pufferfish) - The pufferfish entity. - **p_115763** (PoseStack) - The pose stack for transformations. - **p_115764** (float) - Rotation value 1. - **p_115765** (float) - Rotation value 2. - **p_115766** (float) - Rotation value 3. - **p_320616** (float) - Rotation value 4. ``` ```APIDOC ## SalmonRenderer.setupRotations ### Parameters - **p_115828** (Salmon) - The salmon entity. - **p_115829** (PoseStack) - The pose stack for transformations. - **p_115830** (float) - Rotation value 1. - **p_115831** (float) - Rotation value 2. - **p_115832** (float) - Rotation value 3. - **p_320820** (float) - Rotation value 4. ``` ```APIDOC ## ShulkerRenderer.setupRotations ### Parameters - **p_320913** (Shulker) - The shulker entity. - **p_115891** (PoseStack) - The pose stack for transformations. - **p_115892** (float) - Rotation value 1. - **p_115893** (float) - Rotation value 2. - **p_115894** (float) - Rotation value 3. - **p_319950** (float) - Rotation value 4. ``` ```APIDOC ## SquidRenderer.setupRotations ### Parameters - **p_116035** (T) - The squid entity. - **p_116036** (PoseStack) - The pose stack for transformations. - **p_116037** (float) - Rotation value 1. - **p_116038** (float) - Rotation value 2. - **p_116039** (float) - Rotation value 3. - **p_319853** (float) - Rotation value 4. ``` ```APIDOC ## TropicalFishRenderer.setupRotations ### Parameters - **p_116226** (TropicalFish) - The tropical fish entity. - **p_116227** (PoseStack) - The pose stack for transformations. - **p_116228** (float) - Rotation value 1. - **p_116229** (float) - Rotation value 2. - **p_116230** (float) - Rotation value 3. - **p_319830** (float) - Rotation value 4. ``` -------------------------------- ### Get Bubble Column Direction Source: https://nekoyue.github.io/ForgeJavaDocs-NG/javadoc/1.21.x-neoforge/net/neoforged/neoforge/common/extensions/IBlockExtension.html Determines if a block can spawn Bubble Columns and their flow direction. Requires the block to call `BubbleColumnBlock.updateColumn` and schedule block/fluid ticks for full functionality. See `SoulSandBlock` and `MagmaBlock` for examples. ```java default BubbleColumnDirection getBubbleColumnDirection(BlockState state) Determines if this block can spawn Bubble Columns and if so, what direction the column flows. NOTE: The block itself will still need to call `BubbleColumnBlock.updateColumn(LevelAccessor, BlockPos, BlockState)` in their tick method and schedule a block tick in the block's onPlace. Also, schedule a fluid tick in updateShape method if update direction is up. Both are needed in order to get the Bubble Columns to function properly. See `SoulSandBlock` and `MagmaBlock` for example. Parameters: `state` - The current state Returns: BubbleColumnDirection.NONE for no Bubble Column. Otherwise, will spawn Bubble Column flowing with specified direction ``` -------------------------------- ### Method Details Source: https://nekoyue.github.io/ForgeJavaDocs-NG/javadoc/1.21.x-neoforge/net/neoforged/neoforge/unittest/StartupConfigTest.html Details of the methods within the StartupConfigTest class. ```APIDOC ## Method Details ### testStartupConfigs `@Test void testStartupConfigs()` Executes the test for startup configurations. ``` -------------------------------- ### net.neoforged.neoforge.event.entity.living.LivingEntityUseItemEvent.Start Source: https://nekoyue.github.io/ForgeJavaDocs-NG/javadoc/1.21.x-neoforge/index-files/index-19.html Documentation for the Start constructor in the LivingEntityUseItemEvent.Start class. ```APIDOC ## Start(LivingEntity, ItemStack, int) ### Description Represents the start of an item usage event for a living entity. ### Method public ### Endpoint N/A ### Parameters #### Path Parameters N/A #### Query Parameters N/A #### Request Body N/A ### Request Example N/A ### Response #### Success Response (200) N/A #### Response Example N/A ``` -------------------------------- ### MeleeAttackGoal start Method Source: https://nekoyue.github.io/ForgeJavaDocs-NG/javadoc/1.21.x-neoforge/net/minecraft/world/entity/ai/goal/MeleeAttackGoal.html Called when the goal starts execution. Overrides the start method from the Goal class. ```java public void start() ``` -------------------------------- ### Default Rendering State Setup Source: https://nekoyue.github.io/ForgeJavaDocs-NG/javadoc/1.21.x-neoforge/index-files/index-19.html Static method to set up the default rendering system state. ```APIDOC ## setupDefaultState(int, int, int, int) ### Description Establishes the default state for the rendering system with four integer parameters. ### Method Static Method ### Endpoint N/A (Java Method) ### Parameters #### Path Parameters N/A #### Query Parameters N/A #### Request Body N/A ### Request Example N/A ### Response #### Success Response (200) N/A #### Response Example N/A ``` -------------------------------- ### Library Initialization and Configuration Source: https://nekoyue.github.io/ForgeJavaDocs-NG/javadoc/1.21.x-neoforge/com/mojang/blaze3d/audio/Library.html Details on how to initialize the Library and configure its settings. ```APIDOC ## POST /library/init ### Description Initializes the audio library with specified parameters. ### Method POST ### Endpoint `/library/init` ### Parameters #### Query Parameters - **p_231085_** (String) - Optional - The name of the audio device to use. - **p_231086_** (boolean) - Optional - Whether to enable HRTF (Head-Related Transfer Function). ### Request Body (Not applicable for this endpoint, parameters are in query) ### Response #### Success Response (200) - **status** (string) - Indicates the success of the operation. #### Response Example ```json { "status": "initialized" } ``` ## PUT /library/setHrtf ### Description Sets the HRTF (Head-Related Transfer Function) for spatial audio. ### Method PUT ### Endpoint `/library/setHrtf` ### Parameters #### Query Parameters - **p_242278_** (boolean) - Required - Whether to enable or disable HRTF. ### Request Body (Not applicable for this endpoint) ### Response #### Success Response (200) - **status** (string) - Indicates the success of the operation. #### Response Example ```json { "status": "hrtf_set" } ``` ``` -------------------------------- ### NeoForgeRegistriesSetup Method Details Source: https://nekoyue.github.io/ForgeJavaDocs-NG/javadoc/1.21.x-neoforge/net/neoforged/neoforge/registries/NeoForgeRegistriesSetup.html Detailed information about the methods available in the NeoForgeRegistriesSetup class. ```APIDOC ## Method Details ### `setup` `public static void setup(net.neoforged.bus.api.IEventBus modEventBus)` ### `registerRegistries` `private static void registerRegistries(NewRegistryEvent event)` ### `modifyRegistries` `private static void modifyRegistries(ModifyRegistriesEvent event)` ``` -------------------------------- ### Registry and Event Setup Source: https://nekoyue.github.io/ForgeJavaDocs-NG/javadoc/1.21.x-neoforge/index-files/index-19.html Methods for setting up NeoForge registries and handling common setup events. ```APIDOC ## setup(IEventBus) ### Description Sets up the NeoForge registries using an IEventBus. ### Method Static method ### Endpoint net.neoforged.neoforge.registries.NeoForgeRegistriesSetup ## Setup(RuinedPortalPiece.VerticalPlacement, float, float, boolean, boolean, boolean, boolean, float) ### Description Creates an instance of a `Setup` record class for RuinedPortalStructure. ### Method Constructor ### Endpoint net.minecraft.world.level.levelgen.structure.structures.RuinedPortalStructure.Setup ``` -------------------------------- ### start(CommandSourceStack) - DebugCommand Source: https://nekoyue.github.io/ForgeJavaDocs-NG/javadoc/1.21.x-neoforge/index-files/index-19.html Starts the debug command. ```APIDOC ## start(CommandSourceStack) ### Description Starts the debug command. ### Method Static Method ### Endpoint N/A (Static method within a class) ### Parameters #### Path Parameters None #### Query Parameters None #### Request Body None ### Request Example N/A ### Response #### Success Response (200) N/A #### Response Example N/A ``` -------------------------------- ### start() - Vindicator.VindicatorBreakDoorGoal Source: https://nekoyue.github.io/ForgeJavaDocs-NG/javadoc/1.21.x-neoforge/index-files/index-19.html Starts the door-breaking behavior for a Vindicator. ```APIDOC ## start() ### Description Starts the door-breaking behavior for a Vindicator. ### Method Method ### Endpoint N/A (Method within a class) ### Parameters None ### Request Example N/A ### Response N/A ``` -------------------------------- ### Network Setup Methods Source: https://nekoyue.github.io/ForgeJavaDocs-NG/javadoc/1.21.x-neoforge/index-files/index-19.html Methods for setting up network handlers and protocols. ```APIDOC ## setupInboundHandler UnconfiguredPipelineHandler ### Description Sets up an inbound handler for the network pipeline. ### Method Static Method ### Endpoint net.minecraft.network.UnconfiguredPipelineHandler ### Parameters - **handler** (ChannelInboundHandler) - Required - Description ## setupInboundProtocol UnconfiguredPipelineHandler ### Description Sets up the inbound protocol information. ### Method Static Method ### Endpoint net.minecraft.network.UnconfiguredPipelineHandler ### Parameters - **protocolInfo** (ProtocolInfo) - Required - Description ## setupInboundProtocol Connection ### Description Sets up the inbound protocol for a connection. ### Method Method ### Endpoint net.minecraft.network.Connection ### Parameters - **protocolInfo** (ProtocolInfo) - Required - Description ## setupInflaterInput CompressionDecoder ### Description Sets up the inflater input stream for decompression. ### Method Method ### Endpoint net.minecraft.network.CompressionDecoder ### Parameters - **byteBuf** (ByteBuf) - Required - Description ## setupOutboundHandler UnconfiguredPipelineHandler ### Description Sets up an outbound handler for the network pipeline. ### Method Static Method ### Endpoint net.minecraft.network.UnconfiguredPipelineHandler ### Parameters - **handler** (ChannelOutboundHandler) - Required - Description ## setupOutboundProtocol Connection ### Description Sets up the outbound protocol for a connection. ### Method Method ### Endpoint net.minecraft.network.Connection ### Parameters - **protocolInfo** (ProtocolInfo) - Required - Description ## setupOutboundProtocol UnconfiguredPipelineHandler ### Description Sets up the outbound protocol information. ### Method Static Method ### Endpoint net.minecraft.network.UnconfiguredPipelineHandler ### Parameters - **protocolInfo** (ProtocolInfo) - Required - Description ``` -------------------------------- ### Bind Texture for Setup Source: https://nekoyue.github.io/ForgeJavaDocs-NG/javadoc/1.21.x-neoforge/net/minecraft/client/renderer/texture/TextureManager.html Binds a texture for the setup process. Use this method before performing operations that require a bound texture during initialization or setup phases. ```java public void bindForSetup(ResourceLocation p_174785_) ``` -------------------------------- ### Mod Initialization and Setup Methods Source: https://nekoyue.github.io/ForgeJavaDocs-NG/javadoc/1.21.x-neoforge/net/neoforged/neoforge/common/NeoForgeMod.html Methods for enabling features and setting up the mod during different lifecycle events. ```APIDOC ## Static Methods for Mod Setup ### enableMilkFluid() #### Description Run this method during mod constructor to enable milk and add it to the Minecraft milk bucket. ### enableProperFilenameValidation() #### Description Run this method during mod constructor to enable `FileUtil.RESERVED_WINDOWS_FILENAMES_NEOFORGE` regex being used for filepath validation. ### getProperFilenameValidation() #### Description Returns the current status of proper filename validation. ### isPRBuild() #### Description Checks if the current build is a Pull Request (PR) build. ``` -------------------------------- ### Get DensityFunctions.TwoArgumentSimpleFunction.Type enum constants Source: https://nekoyue.github.io/ForgeJavaDocs-NG/javadoc/1.21.x-neoforge/net/minecraft/world/level/levelgen/class-use/DensityFunctions.TwoArgumentSimpleFunction.Type.html Use `values()` to get an array of all enum constants. Use `valueOf(String name)` to get a specific constant by its name. ```Java static DensityFunctions.TwoArgumentSimpleFunction.Type.valueOf(String name) ``` ```Java static DensityFunctions.TwoArgumentSimpleFunction.Type[] values() ``` -------------------------------- ### Test Framework Client Setup Source: https://nekoyue.github.io/ForgeJavaDocs-NG/javadoc/1.21.x-neoforge/index-files/index-19.html Method for setting up the test framework client. ```APIDOC ## setupClient(TestFrameworkImpl, IEventBus, ModContainer) ### Description Initializes the test framework client with the event bus and mod container. ### Method Static Method ### Endpoint N/A (Java Method) ### Parameters #### Path Parameters N/A #### Query Parameters N/A #### Request Body N/A ### Request Example N/A ### Response #### Success Response (200) N/A #### Response Example N/A ``` -------------------------------- ### StartAdmiringItemIfSeen Constructor Source: https://nekoyue.github.io/ForgeJavaDocs-NG/javadoc/1.21.x-neoforge/net/minecraft/world/entity/monster/piglin/StartAdmiringItemIfSeen.html Initializes a new instance of the StartAdmiringItemIfSeen class. No specific setup is required. ```java public StartAdmiringItemIfSeen() ``` -------------------------------- ### start() - Raider.RaiderMoveThroughVillageGoal Source: https://nekoyue.github.io/ForgeJavaDocs-NG/javadoc/1.21.x-neoforge/index-files/index-19.html Starts the behavior for a Raider to move through a village. ```APIDOC ## start() ### Description Starts the behavior for a Raider to move through a village. ### Method Method ### Endpoint N/A (Method within a class) ### Parameters None ### Request Example N/A ### Response N/A ``` -------------------------------- ### start() - Vex.VexChargeAttackGoal Source: https://nekoyue.github.io/ForgeJavaDocs-NG/javadoc/1.21.x-neoforge/index-files/index-19.html Starts the charge attack behavior for a Vex. ```APIDOC ## start() ### Description Starts the charge attack behavior for a Vex. ### Method Method ### Endpoint N/A (Method within a class) ### Parameters None ### Request Example N/A ### Response N/A ``` -------------------------------- ### Lighting Setup Methods Source: https://nekoyue.github.io/ForgeJavaDocs-NG/javadoc/1.21.x-neoforge/index-files/index-19.html Methods for setting up lighting conditions in various scenarios. ```APIDOC ## setupFor3DItems Lighting ### Description Sets up lighting for rendering 3D items. ### Method Static Method ### Endpoint com.mojang.blaze3d.platform.Lighting ## setupForEntityInInventory Lighting ### Description Sets up lighting for rendering entities in inventory. ### Method Static Method ### Endpoint com.mojang.blaze3d.platform.Lighting ## setupForEntityInInventory Lighting ### Description Sets up lighting for rendering entities in inventory with a specific rotation. ### Method Static Method ### Endpoint com.mojang.blaze3d.platform.Lighting ### Parameters - **rotation** (Quaternionf) - Required - Description ## setupForFlatItems Lighting ### Description Sets up lighting for rendering flat items. ### Method Static Method ### Endpoint com.mojang.blaze3d.platform.Lighting ## setupLevel Lighting ### Description Sets up lighting for the game level. ### Method Static Method ### Endpoint com.mojang.blaze3d.platform.Lighting ## setupNetherLevel Lighting ### Description Sets up lighting specifically for the Nether dimension. ### Method Static Method ### Endpoint com.mojang.blaze3d.platform.Lighting ``` -------------------------------- ### Get Crafting Player Source: https://nekoyue.github.io/ForgeJavaDocs-NG/javadoc/1.21.x-neoforge/net/neoforged/neoforge/common/CommonHooks.html Gets the player currently crafting. ```java public static Player getCraftingPlayer() ``` -------------------------------- ### StartAdmiringItemIfSeen create method Source: https://nekoyue.github.io/ForgeJavaDocs-NG/javadoc/1.21.x-neoforge/index-files/index-3.html Static method to create a StartAdmiringItemIfSeen behavior. ```APIDOC ## create(int) StartAdmiringItemIfSeen ### Description Static method in class net.minecraft.world.entity.monster.piglin.StartAdmiringItemIfSeen to create an instance. ### Method static ### Endpoint N/A (Class Method) ### Parameters #### Path Parameters None #### Query Parameters None #### Request Body None ### Request Example None ### Response #### Success Response (200) None #### Response Example None ``` -------------------------------- ### GET /api/level/nextSubTickCount Source: https://nekoyue.github.io/ForgeJavaDocs-NG/javadoc/1.21.x-neoforge/net/minecraft/world/level/Level.html Gets the next sub-tick count for the level. ```APIDOC ## GET /api/level/nextSubTickCount ### Description Gets the next sub-tick count for the level. This method is specified by the `LevelAccessor` interface. ### Method GET ### Endpoint `/api/level/nextSubTickCount` ### Response #### Success Response (200) - **nextSubTickCount** (long) - The next sub-tick count. ``` -------------------------------- ### Constructor Details Source: https://nekoyue.github.io/ForgeJavaDocs-NG/javadoc/1.21.x-neoforge/net/neoforged/neoforge/unittest/StartupConfigTest.html Details of the constructor for the StartupConfigTest class. ```APIDOC ## Constructor Details ### StartupConfigTest `public StartupConfigTest()` Default constructor. ``` -------------------------------- ### GET /api/level/maxEntityRadius Source: https://nekoyue.github.io/ForgeJavaDocs-NG/javadoc/1.21.x-neoforge/net/minecraft/world/level/Level.html Gets the maximum radius for entity scanning. ```APIDOC ## GET /api/level/maxEntityRadius ### Description Gets the maximum radius to scan for entities when trying to check bounding boxes. Vanilla's default is 2.0D, but mods can increase this. This method is specified by the `ILevelExtension` interface. ### Method GET ### Endpoint `/api/level/maxEntityRadius` ### Response #### Success Response (200) - **maxEntityRadius** (double) - The maximum entity radius. ``` -------------------------------- ### Recipe Book Setup Methods Source: https://nekoyue.github.io/ForgeJavaDocs-NG/javadoc/1.21.x-neoforge/index-files/index-19.html Methods for setting up the recipe book component. ```APIDOC ## setupGhostRecipe AbstractFurnaceRecipeBookComponent ### Description Sets up the ghost recipe for the recipe book. ### Method Method ### Endpoint net.minecraft.client.gui.screens.recipebook.AbstractFurnaceRecipeBookComponent ### Parameters - **recipeHolder** (RecipeHolder) - Required - Description - **slots** (List) - Required - Description ## setupGhostRecipe RecipeBookComponent ### Description Sets up the ghost recipe for the recipe book. ### Method Method ### Endpoint net.minecraft.client.gui.screens.recipebook.RecipeBookComponent ### Parameters - **recipeHolder** (RecipeHolder) - Required - Description - **slots** (List) - Required - Description ``` -------------------------------- ### TestFrameworkImpl setupClient Method Source: https://nekoyue.github.io/ForgeJavaDocs-NG/javadoc/1.21.x-neoforge/net/neoforged/testframework/impl/class-use/TestFrameworkImpl.html The setupClient method is a private static method used to set up the client with a TestFrameworkImpl instance, an IEventBus, and a ModContainer. It is package-private. ```java private static void setupClient(TestFrameworkImpl impl, net.neoforged.bus.api.IEventBus modBus, net.neoforged.fml.ModContainer container) ``` -------------------------------- ### start(Consumer>) - SynchronizeRegistriesTask Source: https://nekoyue.github.io/ForgeJavaDocs-NG/javadoc/1.21.x-neoforge/index-files/index-19.html Starts the task for synchronizing registries. ```APIDOC ## start(Consumer>) ### Description Starts the task for synchronizing registries. ### Method Method ### Endpoint N/A (Method within a class) ### Parameters #### Path Parameters None #### Query Parameters None #### Request Body None ### Request Example N/A ### Response #### Success Response (200) N/A #### Response Example N/A ``` -------------------------------- ### start(Consumer>) - JoinWorldTask Source: https://nekoyue.github.io/ForgeJavaDocs-NG/javadoc/1.21.x-neoforge/index-files/index-19.html Starts the task for joining a world. ```APIDOC ## start(Consumer>) ### Description Starts the task for joining a world. ### Method Method ### Endpoint N/A (Method within a class) ### Parameters #### Path Parameters None #### Query Parameters None #### Request Body None ### Request Example N/A ### Response #### Success Response (200) N/A #### Response Example N/A ``` -------------------------------- ### NetworkPayloadSetup.from Source: https://nekoyue.github.io/ForgeJavaDocs-NG/javadoc/1.21.x-neoforge/net/neoforged/neoforge/network/negotiation/class-use/NegotiationResult.html Creates a modded network setup from negotiation results. ```APIDOC ## NetworkPayloadSetup.from ### Description Returns A modded network with the given configuration and play channels. ### Method static NetworkPayloadSetup ### Endpoint N/A (Method within a class) ### Parameters #### Path Parameters None #### Query Parameters None #### Request Body None ### Request Example None ### Response #### Success Response (200) - **NetworkPayloadSetup** (NetworkPayloadSetup) - The configured network payload setup. #### Response Example None ``` -------------------------------- ### start(int) - AnimationState Source: https://nekoyue.github.io/ForgeJavaDocs-NG/javadoc/1.21.x-neoforge/index-files/index-19.html Starts the animation state with a specified tick. ```APIDOC ## start(int) ### Description Starts the animation state with a specified tick. ### Method Method ### Endpoint N/A (Method within a class) ### Parameters #### Path Parameters None #### Query Parameters None #### Request Body None ### Request Example N/A ### Response #### Success Response (200) N/A #### Response Example N/A ```