### start(String mcVersion, String forgeVersion) Source: https://lexxie.dev/forge/1.20.1/net/minecraftforge/fml/earlydisplay/DisplayWindow.html Starts the window and the dedicated render thread. ```APIDOC ## Runnable start(String mcVersion, String forgeVersion) ### Description Initializes and starts the window and the associated render thread. ### Parameters - **mcVersion** (String) - The Minecraft version. - **forgeVersion** (String) - The Forge version. ### Returns - **Runnable** - A runnable for the render process. ``` -------------------------------- ### start() Source: https://lexxie.dev/forge/1.20.1/net/minecraft/server/level/progress/ChunkProgressListener.html Initializes or starts the chunk progress tracking. ```APIDOC ### Method void start() ``` -------------------------------- ### start() Source: https://lexxie.dev/forge/1.20.1/net/minecraftforge/common/data/GlobalLootModifierProvider.html Abstract method to be implemented by the user to register modifiers. ```APIDOC ### Method `start()` ### Description An abstract method that must be implemented by subclasses. Users should call `add(String, T)` within this method to define the modifiers to be generated. ``` -------------------------------- ### getExamples Source: https://lexxie.dev/forge/1.20.1/net/minecraft/commands/arguments/RangeArgument.Ints.html Returns a collection of example strings for this argument type. ```APIDOC ## Collection getExamples() ### Description Returns a collection of example strings that demonstrate valid input formats for this argument type. ``` -------------------------------- ### beginProfile() Source: https://lexxie.dev/forge/1.20.1/com/mojang/blaze3d/systems/TimerQuery.html Starts the profiling process for the current frame. ```APIDOC ### void beginProfile() Begins the profiling session for the current frame context. ``` -------------------------------- ### begin(Format format, Mode mode) Source: https://lexxie.dev/forge/1.20.1/net/minecraftforge/fml/earlydisplay/SimpleBufferBuilder.html Starts building a new set of vertex data in the specified format and mode. ```APIDOC ### Method `public SimpleBufferBuilder begin(SimpleBufferBuilder.Format format, SimpleBufferBuilder.Mode mode)` #### Parameters - **format** (SimpleBufferBuilder.Format) - The format to start building in. - **mode** (SimpleBufferBuilder.Mode) - The mode to start building in. ``` -------------------------------- ### startPlaying(Music p_120185_) Source: https://lexxie.dev/forge/1.20.1/net/minecraft/client/sounds/MusicManager.html Starts playing the specified music track. ```APIDOC ### Method `void startPlaying(Music p_120185_)` ### Description Starts the playback of the provided music track. ### Parameters - **p_120185_** (Music) - The music track to start playing. ``` -------------------------------- ### LivingEntityUseItemEvent.Start Constructor Source: https://lexxie.dev/forge/1.20.1/net/minecraftforge/event/entity/living/LivingEntityUseItemEvent.Start.html Constructor for the Start event, which is fired when an entity begins using an item. ```APIDOC ## Constructor: Start(LivingEntity entity, ItemStack item, int duration) ### Description Constructs a new Start event instance when an entity begins using an item. ### Parameters - **entity** (LivingEntity) - The entity that is starting to use the item. - **item** (ItemStack) - The item being used. - **duration** (int) - The initial duration of the item usage. ``` -------------------------------- ### setupMinecraftWindow(IntSupplier, IntSupplier, Supplier, LongSupplier) Source: https://lexxie.dev/forge/1.20.1/net/minecraftforge/fml/loading/ImmediateWindowProvider.html Sets up the Minecraft window during the handoff process. ```APIDOC ### long setupMinecraftWindow(IntSupplier width, IntSupplier height, Supplier title, LongSupplier monitor) Configures the Minecraft window as if performed by the native Window class. **Parameters:** - **width** (IntSupplier) - The expected window width. - **height** (IntSupplier) - The expected window height. - **title** (Supplier) - The window title. - **monitor** (LongSupplier) - The monitor identifier. ``` -------------------------------- ### get() Source: https://lexxie.dev/forge/1.20.1/net/minecraftforge/common/ForgeConfigSpec.ConfigValue.html Retrieves the current value for the configuration setting. Throws an exception if the configuration has not been loaded. ```APIDOC ## T get() ### Description Returns the actual value for the configuration setting. If the configuration has not yet been loaded, this method will throw an IllegalStateException. ### Returns - **T** - The actual value for the setting. ### Throws - **NullPointerException** - If the config spec object has not been built. - **IllegalStateException** - If the associated config has not been loaded. ``` -------------------------------- ### setupMinecraftWindow(IntSupplier width, IntSupplier height, Supplier title, LongSupplier monitor) Source: https://lexxie.dev/forge/1.20.1/net/minecraftforge/fml/loading/ImmediateWindowHandler.html Sets up the initial Minecraft window properties. ```APIDOC ### Method `public static long setupMinecraftWindow(IntSupplier width, IntSupplier height, Supplier title, LongSupplier monitor)` ### Description Configures the Minecraft window dimensions, title, and monitor selection, returning a handle to the window. ``` -------------------------------- ### get Source: https://lexxie.dev/forge/1.20.1/net/minecraftforge/registries/RegistryObject.html Retrieves the wrapped object from the registry. ```APIDOC ## T get() ### Description Retrieves the wrapped object in the registry. This value will automatically be updated when the backing registry is updated. ### Returns - **T** - The wrapped object. ### Throws - **NullPointerException** - If the value is null. ``` -------------------------------- ### FMLPaths.setup(IEnvironment env) Source: https://lexxie.dev/forge/1.20.1/net/minecraftforge/fml/loading/FMLPaths.html Initializes the FMLPaths system using the provided environment. ```APIDOC ### static void setup(cpw.mods.modlauncher.api.IEnvironment env) Initializes the path system based on the provided `IEnvironment` configuration. ``` -------------------------------- ### getBedDirection Source: https://lexxie.dev/forge/1.20.1/net/minecraftforge/common/extensions/IForgeBlockState.html Gets the direction of the bed block. ```APIDOC ### Direction getBedDirection(LevelReader level, BlockPos pos) Returns the direction of the bed block. ``` -------------------------------- ### getEquipmentSlot() Source: https://lexxie.dev/forge/1.20.1/net/minecraftforge/common/extensions/IForgeItemStack.html Gets the armor slot for the ItemStack. ```APIDOC ### getEquipmentSlot() Returns the EquipmentSlot for the ItemStack, or null to use default vanilla logic. ``` -------------------------------- ### begin Source: https://lexxie.dev/forge/1.20.1/net/minecraftforge/data/loading/DatagenModLoader.html Initializes the data generation process with the specified configuration. ```APIDOC ### Method public static void begin(Set mods, Path path, Collection inputs, Collection existingPacks, Set existingMods, boolean serverGenerators, boolean clientGenerators, boolean devToolGenerators, boolean reportsGenerator, boolean structureValidator, boolean flat, String assetIndex, File assetsDir) ### Description Starts the data generation process for the specified mods and configuration settings. ### Parameters - **mods** (Set) - The set of mod IDs to generate data for. - **path** (Path) - The output path for generated data. - **inputs** (Collection) - Input paths for data generation. - **existingPacks** (Collection) - Existing resource packs. - **existingMods** (Set) - Set of existing mod IDs. - **serverGenerators** (boolean) - Enable server data generators. - **clientGenerators** (boolean) - Enable client data generators. - **devToolGenerators** (boolean) - Enable development tool generators. - **reportsGenerator** (boolean) - Enable reports generator. - **structureValidator** (boolean) - Enable structure validator. - **flat** (boolean) - Whether to use a flat output structure. - **assetIndex** (String) - The asset index identifier. - **assetsDir** (File) - The directory containing assets. ``` -------------------------------- ### getEnchantmentValue() Source: https://lexxie.dev/forge/1.20.1/net/minecraftforge/common/extensions/IForgeItemStack.html Gets the enchantment value of the ItemStack. ```APIDOC ### getEnchantmentValue() Returns the integer enchantment value of this ItemStack. ``` -------------------------------- ### initialize(String[] arguments) Source: https://lexxie.dev/forge/1.20.1/net/minecraftforge/fml/earlydisplay/DisplayWindow.html Initializes the window and GL core resources during the early startup phase. ```APIDOC ## Runnable initialize(String[] arguments) ### Description Initializes the window and GL core resources. It attempts to create the highest possible GL profile and returns a runnable for periodic ticking on the main thread. ### Parameters - **arguments** (String[]) - The command line arguments provided to the Java process. ### Returns - **Runnable** - A runnable that will be periodically ticked by FML during startup on the main thread. ``` -------------------------------- ### pendingInvitesCount Source: https://lexxie.dev/forge/1.20.1/com/mojang/realmsclient/client/RealmsClient.html Gets the count of pending invitations. ```APIDOC ## pendingInvitesCount() ### Description Returns the number of pending invitations for the current user. ### Signature `public int pendingInvitesCount() throws RealmsServiceException` ``` -------------------------------- ### setupForEntityInInventory() Source: https://lexxie.dev/forge/1.20.1/com/mojang/blaze3d/platform/Lighting.html Configures the lighting environment for rendering entities within an inventory screen. ```APIDOC ### Method `public static void setupForEntityInInventory()` ### Description Sets up the lighting state optimized for rendering entities when displayed in an inventory interface. ``` -------------------------------- ### defaultConfigPath() Source: https://lexxie.dev/forge/1.20.1/net/minecraftforge/fml/loading/FMLConfig.html Gets the default path for the configuration file. ```APIDOC ## static String defaultConfigPath() ### Description Returns the default file path for the FML configuration. ``` -------------------------------- ### setupFor3DItems() Source: https://lexxie.dev/forge/1.20.1/com/mojang/blaze3d/platform/Lighting.html Configures the lighting environment for rendering 3D items. ```APIDOC ### Method `public static void setupFor3DItems()` ### Description Sets up the lighting state optimized for rendering 3D items. ``` -------------------------------- ### enable(int duration) Source: https://lexxie.dev/forge/1.20.1/net/minecraftforge/server/timings/TimeTracker.html Starts recording tracking data for the specified duration in seconds. ```APIDOC ### Method void enable(int duration) ### Description Starts recording tracking data for the given duration in seconds. ### Parameters - **duration** (int) - Required - The duration for the time to track in seconds. ``` -------------------------------- ### setupMinecraftWindow Source: https://lexxie.dev/forge/1.20.1/net/minecraftforge/fml/earlydisplay/DisplayWindow.html Hands off the window management to the vanilla game. This method is called on the main thread during initialization. ```APIDOC ## setupMinecraftWindow ### Description Hand-off the window to the vanilla game. Called on the main thread instead of the game's initialization. ### Signature `public long setupMinecraftWindow(IntSupplier width, IntSupplier height, Supplier title, LongSupplier monitorSupplier)` ### Parameters - **width** (IntSupplier) - The width of the window Mojang expects - **height** (IntSupplier) - The height of the Window Mojang expects - **title** (Supplier) - The title for the window - **monitorSupplier** (LongSupplier) - The monitor it should appear on ### Returns - **long** - The Window handle owned by the provider ``` -------------------------------- ### getBubbleCount() Source: https://lexxie.dev/forge/1.20.1/net/minecraftforge/event/entity/living/LivingDrownEvent.html Gets the number of bubble particles to spawn. ```APIDOC ### int getBubbleCount() Returns the number of bubble particles that will be spawned when the entity is actively drowning. ``` -------------------------------- ### getEnchantmentLevel Source: https://lexxie.dev/forge/1.20.1/net/minecraftforge/common/extensions/IForgeItem.html Gets the level of a specific enchantment on an ItemStack. ```APIDOC ### getEnchantmentLevel(ItemStack stack, Enchantment enchantment) Retrieves the level of the enchantment present on the stack. #### Parameters - **stack** (ItemStack) - The item stack being checked. - **enchantment** (Enchantment) - The enchantment being checked. #### Returns - (int) The level of the enchantment, or 0 if not present. ``` -------------------------------- ### getRespawnPosition Source: https://lexxie.dev/forge/1.20.1/net/minecraftforge/common/extensions/IForgeBlockState.html Gets the respawn position for an entity at this block. ```APIDOC ### Optional getRespawnPosition(EntityType type, LevelReader level, BlockPos pos, float orientation, LivingEntity entity) Returns the position an entity is moved to upon respawning at this block. ``` -------------------------------- ### setupForFlatItems() Source: https://lexxie.dev/forge/1.20.1/com/mojang/blaze3d/platform/Lighting.html Configures the lighting environment for rendering flat items. ```APIDOC ### Method `public static void setupForFlatItems()` ### Description Sets up the lighting state optimized for rendering flat items. ``` -------------------------------- ### getAllEnchantments() Source: https://lexxie.dev/forge/1.20.1/net/minecraftforge/common/extensions/IForgeItemStack.html Gets a map of all enchantments present on the stack. ```APIDOC ### getAllEnchantments() Returns a Map containing all enchantments on the stack. Returns an empty map if no enchantments are present. ``` -------------------------------- ### IForgeBlockGetter.getExistingBlockEntity Source: https://lexxie.dev/forge/1.20.1/net/minecraft/core/class-use/BlockPos.html Get the BlockEntity at the given position if it exists. ```APIDOC ### Method IForgeBlockGetter.getExistingBlockEntity(BlockPos pos) ### Description Get the BlockEntity at the given position if it exists. ### Returns - @Nullable BlockEntity - The block entity at the position, or null if none exists. ``` -------------------------------- ### get Source: https://lexxie.dev/forge/1.20.1/net/minecraft/core/DefaultedRegistry.html Retrieves an entry from the registry by its ResourceLocation key. ```APIDOC ## T get(ResourceLocation p_122328_) ### Description Retrieves the object associated with the provided ResourceLocation key. ### Parameters - **p_122328_** (ResourceLocation) - The key to search for. ### Returns - **T** - The registry entry. ``` -------------------------------- ### init() Source: https://lexxie.dev/forge/1.20.1/net/minecraftforge/fml/earlydisplay/ElementShader.html Initializes the shader program. ```APIDOC ### Method `public void init()` ``` -------------------------------- ### logStartupWarning() Source: https://lexxie.dev/forge/1.20.1/net/minecraftforge/forge/snapshots/ForgeSnapshotsMod.html Logs a warning message during the startup process if the environment is a snapshot. ```APIDOC ### Method `public static void logStartupWarning()` ### Description Logs a startup warning to the console or log files. ``` -------------------------------- ### getViewDistance Source: https://lexxie.dev/forge/1.20.1/net/minecraft/client/renderer/blockentity/BlockEntityRenderer.html Gets the distance at which the block entity should be rendered. ```APIDOC ### getViewDistance **Signature:** `default int getViewDistance()` **Description:** Returns the maximum distance in blocks at which this renderer will be active. ``` -------------------------------- ### simple Source: https://lexxie.dev/forge/1.20.1/net/minecraft/commands/CommandBuildContext.html Creates a simple CommandBuildContext instance. ```APIDOC ## static CommandBuildContext simple(HolderLookup.Provider p_255702_, FeatureFlagSet p_255968_) ### Description Creates a new CommandBuildContext instance using the provided registry provider and feature flag set. ### Parameters - **p_255702_** (HolderLookup.Provider) - The provider for registry lookups. - **p_255968_** (FeatureFlagSet) - The set of enabled features. ``` -------------------------------- ### setupLevel(Matrix4f p_254246_) Source: https://lexxie.dev/forge/1.20.1/com/mojang/blaze3d/platform/Lighting.html Configures the standard lighting environment for a level. ```APIDOC ### Method `public static void setupLevel(org.joml.Matrix4f p_254246_)` ### Description Sets up the standard lighting state for rendering a level using the provided transformation matrix. ``` -------------------------------- ### getNearPlaneDistance() Source: https://lexxie.dev/forge/1.20.1/net/minecraftforge/client/event/ViewportEvent.RenderFog.html Returns the distance to the near plane where the fog starts. ```APIDOC ### Method `public float getNearPlaneDistance()` ### Description Returns the distance to the near plane where the fog starts. ### Returns - `float` - the distance to the near plane where the fog starts ``` -------------------------------- ### setBorderStart Source: https://lexxie.dev/forge/1.20.1/net/minecraftforge/client/event/RenderTooltipEvent.Color.html Sets the gradient start color for the tooltip border. ```APIDOC ## void setBorderStart(int borderStart) ### Description Sets the new start color for the gradient of the tooltip border (top edge). ### Parameters - **borderStart** (int) - The new start color for the tooltip border. ``` -------------------------------- ### logInitialPreferences() Source: https://lexxie.dev/forge/1.20.1/net/minecraftforge/network/DualStackUtils.html Logs the initial network system properties. ```APIDOC ## static void logInitialPreferences() ### Description Logs the initial values of 'java.net.preferIPv4Stack' and 'java.net.preferIPv6Addresses' as read by Java at JVM startup. This is useful for debugging network hostname lookup failures. ``` -------------------------------- ### get() Source: https://lexxie.dev/forge/1.20.1/net/minecraftforge/fml/javafmlmod/FMLJavaModLoadingContext.html Retrieves the FMLJavaModLoadingContext instance for the current mod context. ```APIDOC ### static FMLJavaModLoadingContext get() #### Description Helper to get the right instance from the ModLoadingContext correctly. #### Returns - **FMLJavaModLoadingContext** - The FMLJavaMod language specific extension from the ModLoadingContext ``` -------------------------------- ### load(String launchTarget, String[] arguments) Source: https://lexxie.dev/forge/1.20.1/net/minecraftforge/fml/loading/ImmediateWindowHandler.html Initializes the loading window with the specified launch target and arguments. ```APIDOC ### Method `public static void load(String launchTarget, String[] arguments)` ### Description Initializes the loading window environment using the provided launch target and command-line arguments. ``` -------------------------------- ### getCreatorModId Source: https://lexxie.dev/forge/1.20.1/net/minecraftforge/common/extensions/IForgeItem.html Gets the Mod ID of the mod that created the ItemStack. ```APIDOC ### getCreatorModId(ItemStack itemStack) Retrieves the creator Mod ID. #### Parameters - **itemStack** (ItemStack) - The stack to check. #### Returns - (String) The Mod ID, or null if not associated. ``` -------------------------------- ### progressStart Source: https://lexxie.dev/forge/1.20.1/net/minecraft/util/ProgressListener.html Initializes a standard progress operation. ```APIDOC ### void progressStart(Component p_14213_) Initializes a new progress tracking operation with the provided component title. ``` -------------------------------- ### CompositeModelBuilder.begin Source: https://lexxie.dev/forge/1.20.1/net/minecraftforge/client/model/generators/loaders/CompositeModelBuilder.html Initializes a new instance of the CompositeModelBuilder. ```APIDOC ## static > CompositeModelBuilder begin(T parent, ExistingFileHelper existingFileHelper) ### Description Creates a new builder instance for a composite model. ### Parameters - **parent** (T) - The parent model builder. - **existingFileHelper** (ExistingFileHelper) - Helper for existing files. ### Returns - **CompositeModelBuilder** - The initialized builder instance. ``` -------------------------------- ### get() Source: https://lexxie.dev/forge/1.20.1/net/minecraftforge/common/util/Lazy.Fast.html Retrieves the lazily initialized instance. This implementation is not thread-safe. ```APIDOC ### Method `public final T get()` ### Description Retrieves the value associated with this Lazy instance. If the value has not been initialized yet, it will be computed using the provided supplier. ### Returns - **T** - The lazily initialized instance. ``` -------------------------------- ### getAdjacentBlockPathType Source: https://lexxie.dev/forge/1.20.1/net/minecraftforge/common/extensions/IForgeBlockState.html Gets the path type of an adjacent block for pathfinding. ```APIDOC ## @Nullable BlockPathTypes getAdjacentBlockPathType(BlockGetter level, BlockPos pos, @Nullable Mob mob, BlockPathTypes originalType) ### Description Gets the path type of the adjacent block to a pathfinding entity. When null, uses vanilla behavior. ### Parameters - **level** (BlockGetter) - The level which contains this block - **pos** (BlockPos) - The position of the block - **mob** (Mob) - The mob currently pathfinding, may be null - **originalType** (BlockPathTypes) - The path type of the source the entity is on ### Returns - **BlockPathTypes** - The path type of this block ``` -------------------------------- ### bootStrap() Source: https://lexxie.dev/forge/1.20.1/net/minecraft/core/dispenser/DispenseItemBehavior.html Initializes the default dispense behaviors for the game. ```APIDOC ### Method `static void bootStrap()` ### Description Registers the default dispense behaviors for various items in the game. ``` -------------------------------- ### getBlockPathType Source: https://lexxie.dev/forge/1.20.1/net/minecraftforge/common/extensions/IForgeBlockState.html Gets the path type of this block for entity pathfinding. ```APIDOC ## @Nullable BlockPathTypes getBlockPathType(BlockGetter level, BlockPos pos, @Nullable Mob mob) ### Description Gets the path type of this block when an entity is pathfinding. When null, uses vanilla behavior. ### Parameters - **level** (BlockGetter) - The level which contains this block - **pos** (BlockPos) - The position of the block - **mob** (Mob) - The mob currently pathfinding, may be null ### Returns - **BlockPathTypes** - The path type of this block ``` -------------------------------- ### setupKeyboardCallbacks Source: https://lexxie.dev/forge/1.20.1/com/mojang/blaze3d/platform/InputConstants.html Registers callbacks for keyboard input events. ```APIDOC ### Method public static void setupKeyboardCallbacks(long p_84845_, org.lwjgl.glfw.GLFWKeyCallbackI p_84846_, org.lwjgl.glfw.GLFWCharModsCallbackI p_84847_) ### Description Configures the keyboard event handlers for the specified window handle. ``` -------------------------------- ### setupMouseCallbacks Source: https://lexxie.dev/forge/1.20.1/com/mojang/blaze3d/platform/InputConstants.html Registers callbacks for mouse input events. ```APIDOC ### Method public static void setupMouseCallbacks(long p_84839_, org.lwjgl.glfw.GLFWCursorPosCallbackI p_84840_, org.lwjgl.glfw.GLFWMouseButtonCallbackI p_84841_, org.lwjgl.glfw.GLFWScrollCallbackI p_84842_, org.lwjgl.glfw.GLFWDropCallbackI p_84843_) ### Description Configures the mouse event handlers, including cursor position, button clicks, scrolling, and file drops, for the specified window handle. ``` -------------------------------- ### getExplosionResistance Source: https://lexxie.dev/forge/1.20.1/net/minecraftforge/common/extensions/IForgeBlockState.html Gets the explosion resistance of the block at a specific location. ```APIDOC ### float getExplosionResistance(BlockGetter level, BlockPos pos, Explosion explosion) Returns the amount of explosion force absorbed by the block. ``` -------------------------------- ### create(int windowId, Inventory playerInv, FriendlyByteBuf extraData) Source: https://lexxie.dev/forge/1.20.1/net/minecraftforge/common/extensions/IForgeMenuType.html Creates a container instance for the menu using the provided window ID, player inventory, and extra data. ```APIDOC ## T create(int windowId, Inventory playerInv, FriendlyByteBuf extraData) ### Description Creates a container instance for the menu. This method is typically called when opening a menu to initialize the container with the necessary context. ### Parameters - **windowId** (int) - Required - The unique ID for the menu window. - **playerInv** (Inventory) - Required - The player's inventory. - **extraData** (FriendlyByteBuf) - Required - Additional data passed to the container. ``` -------------------------------- ### getBlockPathType Source: https://lexxie.dev/forge/1.20.1/net/minecraftforge/common/extensions/IForgeFluidState.html Gets the path type of this fluid when an entity is pathfinding. ```APIDOC ### Method `BlockPathTypes getBlockPathType(BlockGetter level, BlockPos pos, Mob mob, boolean canFluidLog)` ### Description Gets the path type of this fluid when an entity is pathfinding. When null, uses vanilla behavior. ### Parameters - **level** (BlockGetter) - The level which contains this fluid. - **pos** (BlockPos) - The position of the fluid. - **mob** (Mob) - The mob currently pathfinding, may be null. - **canFluidLog** (boolean) - true if the path is being applied for fluids that can log blocks. ### Returns - **BlockPathTypes** - The path type of this fluid. ``` -------------------------------- ### ItemLayerModelBuilder.begin Source: https://lexxie.dev/forge/1.20.1/net/minecraftforge/client/model/generators/loaders/ItemLayerModelBuilder.html Initializes a new ItemLayerModelBuilder instance. ```APIDOC ## static > ItemLayerModelBuilder begin(T parent, ExistingFileHelper existingFileHelper) ### Description Creates a new builder instance for an item layer model. ### Parameters - **parent** (T) - The parent model builder. - **existingFileHelper** (ExistingFileHelper) - Helper for validating existing files. ``` -------------------------------- ### getRailMaxSpeed Source: https://lexxie.dev/forge/1.20.1/net/minecraftforge/common/extensions/IForgeBaseRailBlock.html Gets the maximum speed allowed on this rail block. ```APIDOC ## float getRailMaxSpeed(BlockState state, Level level, BlockPos pos, AbstractMinecart cart) ### Description Returns the max speed of the rail at the specified position. ### Parameters - **state** (BlockState) - The current block state. - **level** (Level) - The level context. - **pos** (BlockPos) - The position of the block in the level. - **cart** (AbstractMinecart) - The minecart on the rail, may be null. ### Returns - **float** - The maximum speed value. ``` -------------------------------- ### getModelTextureGetter Source: https://lexxie.dev/forge/1.20.1/net/minecraftforge/client/extensions/IForgeModelBaker.html Retrieves the function used to get textures for materials. ```APIDOC ## getModelTextureGetter ### Description Returns the function responsible for retrieving texture atlas sprites for given materials. ### Signature `Function getModelTextureGetter()` ``` -------------------------------- ### void setupBufferState(int p_167053_, int p_167054_, int p_167055_, long p_167056_, int p_167057_, int p_167058_) Source: https://lexxie.dev/forge/1.20.1/com/mojang/blaze3d/vertex/VertexFormatElement.Usage.SetupState.html Configures the buffer state using the provided integer and long parameters. This method is intended to be implemented via lambda or method reference. ```APIDOC ## void setupBufferState(int p_167053_, int p_167054_, int p_167055_, long p_167056_, int p_167057_, int p_167058_) ### Description Configures the buffer state for a vertex format element usage. This is a functional interface method. ### Parameters - **p_167053_** (int) - Buffer state parameter 1 - **p_167054_** (int) - Buffer state parameter 2 - **p_167055_** (int) - Buffer state parameter 3 - **p_167056_** (long) - Buffer state parameter 4 - **p_167057_** (int) - Buffer state parameter 5 - **p_167058_** (int) - Buffer state parameter 6 ``` -------------------------------- ### get() Source: https://lexxie.dev/forge/1.20.1/net/minecraft/world/item/Equipable.html Static utility to retrieve an Equipable instance from an ItemStack. ```APIDOC ### Method @Nullable static Equipable get(ItemStack p_270317_) ### Description Attempts to retrieve an Equipable interface implementation from the provided ItemStack. Returns null if the item is not equipable. ``` -------------------------------- ### init(TitleScreen guiMainMenu, Button modButton) Source: https://lexxie.dev/forge/1.20.1/net/minecraftforge/client/gui/TitleScreenModUpdateIndicator.html Static initializer to attach the update indicator to the main menu screen. ```APIDOC ### Method `static TitleScreenModUpdateIndicator init(TitleScreen guiMainMenu, Button modButton)` ### Description Initializes the mod update indicator for the main menu, linking it to the specified main menu screen and mod button. ``` -------------------------------- ### configurable Source: https://lexxie.dev/forge/1.20.1/net/minecraft/commands/CommandBuildContext.html Creates a configurable CommandBuildContext instance. ```APIDOC ## static CommandBuildContext.Configurable configurable(RegistryAccess p_255925_, FeatureFlagSet p_255945_) ### Description Creates a configurable CommandBuildContext instance using the provided registry access and feature flag set. ### Parameters - **p_255925_** (RegistryAccess) - The registry access instance. - **p_255945_** (FeatureFlagSet) - The set of enabled features. ``` -------------------------------- ### get(String) Source: https://lexxie.dev/forge/1.20.1/net/minecraft/nbt/CompoundTag.html Retrieves the Tag associated with the specified key. ```APIDOC ## Method: get(String key) ### Description Retrieves the tag stored under the provided key. Returns null if the key does not exist. ### Parameters - **key** (String) - The key to look up. ``` -------------------------------- ### VanillaSoundDefinitionsProvider(PackOutput output, ExistingFileHelper helper) Source: https://lexxie.dev/forge/1.20.1/net/minecraftforge/common/data/VanillaSoundDefinitionsProvider.html Constructs a new VanillaSoundDefinitionsProvider instance. ```APIDOC ## Constructor: VanillaSoundDefinitionsProvider ### Description Initializes a new provider for generating vanilla-style sound definitions. ### Parameters - **output** (PackOutput) - The output target for the generated data. - **helper** (ExistingFileHelper) - Helper to locate existing files for validation. ``` -------------------------------- ### getDefaultRecipeId Source: https://lexxie.dev/forge/1.20.1/net/minecraft/data/recipes/RecipeBuilder.html Gets the default ResourceLocation ID for a given item. ```APIDOC ## RecipeBuilder.getDefaultRecipeId(ItemLike) ### Description Retrieves the default ResourceLocation ID for the specified item. ### Parameters - **p_176494_** (ItemLike) - The item to get the ID for. ``` -------------------------------- ### init(RegisterRecipeBookCategoriesEvent event) Source: https://lexxie.dev/forge/1.20.1/net/minecraftforge/debug/recipe/recipebook/RecipeBookExtensionClientHelper.html Initializes the recipe book extension categories by registering them with the provided event. ```APIDOC ## static void init(RegisterRecipeBookCategoriesEvent event) ### Description Registers custom recipe book categories during the recipe book initialization phase. ### Parameters - **event** (RegisterRecipeBookCategoriesEvent) - Required - The event instance used to register new recipe book categories. ``` -------------------------------- ### get() Source: https://lexxie.dev/forge/1.20.1/net/minecraft/data/models/blockstates/MultiPartGenerator.html Generates the JSON representation of the multipart block state. ```APIDOC ## com.google.gson.JsonElement get() ### Description Serializes the configured multipart state into a GSON JsonElement. ``` -------------------------------- ### begin(BufferBuilder, TextureManager) Source: https://lexxie.dev/forge/1.20.1/net/minecraft/client/particle/ParticleRenderType.html Initializes the rendering process for a specific particle type using the provided buffer builder and texture manager. ```APIDOC ### void begin(BufferBuilder p_107436_, TextureManager p_107437_) #### Description Initializes the rendering state for particles. #### Parameters - **p_107436_** (BufferBuilder) - The buffer builder used for rendering. - **p_107437_** (TextureManager) - The texture manager used to bind particle textures. ``` -------------------------------- ### get(RandomSource) Source: https://lexxie.dev/forge/1.20.1/net/minecraft/client/particle/SpriteSet.html Retrieves a random TextureAtlasSprite using a RandomSource. ```APIDOC ## TextureAtlasSprite get(RandomSource p_234102_) ### Description Retrieves a random TextureAtlasSprite from the set using the provided random source. ### Parameters - **p_234102_** (RandomSource) - The source of randomness used to select the sprite. ### Returns - **TextureAtlasSprite** - A randomly selected sprite from the set. ``` -------------------------------- ### getVersion() Source: https://lexxie.dev/forge/1.20.1/net/minecraftforge/versions/forge/ForgeVersion.html Retrieves the current version string of the Forge installation. ```APIDOC ## static String getVersion() ### Description Returns the current version of Forge as a String. ### Returns - **String** - The Forge version string. ``` -------------------------------- ### static int open() Source: https://lexxie.dev/forge/1.20.1/net/minecraftforge/debug/client/TestScreen.html Opens the test screen. ```APIDOC ## Method: open() ### Description Opens the test screen within the Minecraft client. ### Returns - **int** - The result status of the operation. ``` -------------------------------- ### void render(GuiGraphics graphics, int MouseX, int MouseY, float PartialTick) Source: https://lexxie.dev/forge/1.20.1/net/minecraftforge/debug/client/TestScreen.html Renders the screen elements. ```APIDOC ## Method: render(GuiGraphics graphics, int MouseX, int MouseY, float PartialTick) ### Description Handles the rendering logic for the screen. ### Parameters - **graphics** (GuiGraphics) - The graphics context used for rendering. - **MouseX** (int) - The current X coordinate of the mouse. - **MouseY** (int) - The current Y coordinate of the mouse. - **PartialTick** (float) - The partial tick time for smooth rendering. ``` -------------------------------- ### initializeClient(Consumer) Source: https://lexxie.dev/forge/1.20.1/net/minecraftforge/debug/client/CustomArmorModelTest.EndermanArmorItem.html Initializes client-side extensions for the item. ```APIDOC ## Method: initializeClient ### Description Used to register client-side item extensions, such as custom model properties or rendering logic. ### Parameters - **consumer** (Consumer) - A consumer to register the client-side extensions. ``` -------------------------------- ### tick(boolean start) Source: https://lexxie.dev/forge/1.20.1/net/minecraftforge/common/WorldWorkerManager.html Processes the worker queue during the game tick. ```APIDOC ## static void tick(boolean start) ### Description Updates the worker manager, processing pending tasks. This should be called during the game tick cycle. ### Parameters - **start** (boolean) - Required - Flag indicating if the tick cycle is starting. ``` -------------------------------- ### void accept(SimpleBufferBuilder bb, RenderElement.DisplayContext context, int[] size, int frame) Source: https://lexxie.dev/forge/1.20.1/net/minecraftforge/fml/earlydisplay/RenderElement.TextureRenderer.html Renders a texture using the provided buffer builder, display context, size dimensions, and frame index. ```APIDOC ## void accept(SimpleBufferBuilder bb, RenderElement.DisplayContext context, int[] size, int frame) ### Description Performs the rendering operation for a texture element using the specified buffer builder and display context. ### Parameters - **bb** (SimpleBufferBuilder) - The buffer builder used for rendering geometry. - **context** (RenderElement.DisplayContext) - The current display context. - **size** (int[]) - An array representing the dimensions of the texture. - **frame** (int) - The current frame index to render. ``` -------------------------------- ### getBorderStart Source: https://lexxie.dev/forge/1.20.1/net/minecraftforge/client/event/RenderTooltipEvent.Color.html Retrieves the current gradient start color for the tooltip border. ```APIDOC ## int getBorderStart() ### Description Returns the gradient start color for the tooltip border (top edge). ### Returns - **int** - The gradient start color for the tooltip border. ``` -------------------------------- ### setupNetherLevel(Matrix4f p_254421_) Source: https://lexxie.dev/forge/1.20.1/com/mojang/blaze3d/platform/Lighting.html Configures the lighting environment specifically for the Nether dimension. ```APIDOC ### Method `public static void setupNetherLevel(org.joml.Matrix4f p_254421_)` ### Description Sets up the lighting state for rendering in the Nether dimension using the provided transformation matrix. ``` -------------------------------- ### getBackgroundStart Source: https://lexxie.dev/forge/1.20.1/net/minecraftforge/client/event/RenderTooltipEvent.Color.html Retrieves the current gradient start color for the tooltip background. ```APIDOC ## int getBackgroundStart() ### Description Returns the gradient start color for the tooltip background (top edge). ### Returns - **int** - The gradient start color for the tooltip background. ``` -------------------------------- ### create(int p_create_1_, Inventory p_create_2_) Source: https://lexxie.dev/forge/1.20.1/net/minecraftforge/network/IContainerFactory.html A default implementation for creating a container menu without additional network data. ```APIDOC ## default T create(int p_create_1_, Inventory p_create_2_) ### Description Creates a new instance of the container menu using the provided window ID and player inventory. This is a default implementation provided by the interface. ### Parameters - **p_create_1_** (int) - The unique ID for the container window. - **p_create_2_** (Inventory) - The player's inventory. ``` -------------------------------- ### instantiate(CommandBuildContext) Source: https://lexxie.dev/forge/1.20.1/net/minecraft/commands/synchronization/ArgumentTypeInfo.Template.html Creates an instance of the argument type using the provided command build context. ```APIDOC ## A instantiate(CommandBuildContext p_235378_) ### Description Instantiates the argument type based on the provided command build context. ### Parameters - **p_235378_** (CommandBuildContext) - The context used for building the command argument. ``` -------------------------------- ### getCloneItemStack Source: https://lexxie.dev/forge/1.20.1/net/minecraftforge/common/extensions/IForgeBlockState.html Gets the item stack for the block when using pick block. ```APIDOC ### ItemStack getCloneItemStack(HitResult target, BlockGetter level, BlockPos pos, Player player) Called when a user uses the creative pick block action on this block. ``` -------------------------------- ### create Source: https://lexxie.dev/forge/1.20.1/net/minecraft/client/gui/screens/MenuScreens.html Creates and displays a screen for the specified menu type. ```APIDOC ## static void create(MenuType p_96202_, Minecraft p_96203_, int p_96204_, Component p_96205_) ### Description Creates a screen for the provided menu type and sets it as the current screen in the Minecraft client. ### Parameters - **p_96202_** (MenuType) - The menu type. - **p_96203_** (Minecraft) - The Minecraft client instance. - **p_96204_** (int) - The window ID. - **p_96205_** (Component) - The title of the screen. ``` -------------------------------- ### getEnchantmentLevel(Enchantment) Source: https://lexxie.dev/forge/1.20.1/net/minecraftforge/common/extensions/IForgeItemStack.html Gets the level of the enchantment currently present on the stack. ```APIDOC ### getEnchantmentLevel(Enchantment enchantment) Returns the level of the specified enchantment on the ItemStack. Returns 0 if the enchantment is not present. ``` -------------------------------- ### initCapabilities Source: https://lexxie.dev/forge/1.20.1/net/minecraftforge/common/extensions/IForgeItem.html Initializes capabilities for an ItemStack. ```APIDOC ### initCapabilities(ItemStack stack, CompoundTag nbt) Initializes extra data for the ItemStack. #### Parameters - **stack** (ItemStack) - The stack. - **nbt** (CompoundTag) - The NBT data. #### Returns - (ICapabilityProvider) The capability provider. ``` -------------------------------- ### get(ResourceLocation name) Source: https://lexxie.dev/forge/1.20.1/net/minecraftforge/client/textures/TextureAtlasSpriteLoaderManager.html Retrieves a registered ITextureAtlasSpriteLoader by its ResourceLocation name. ```APIDOC ## static @Nullable ITextureAtlasSpriteLoader get(ResourceLocation name) ### Description Finds the loader with the given name, or null if none is registered. ### Parameters - **name** (ResourceLocation) - Required - The identifier of the loader to retrieve. ### Returns - **ITextureAtlasSpriteLoader** - The loader instance if found, otherwise null. ``` -------------------------------- ### get(ResourceLocation name) Source: https://lexxie.dev/forge/1.20.1/net/minecraftforge/client/model/renderable/ITextureRenderTypeLookup.html Retrieves the RenderType associated with the specified ResourceLocation. ```APIDOC ## RenderType get(ResourceLocation name) ### Description Retrieves the RenderType implementation that corresponds to the provided texture resource location. ### Parameters - **name** (ResourceLocation) - The resource location of the texture to look up. ### Returns - **RenderType** - The RenderType associated with the given texture. ``` -------------------------------- ### build() Source: https://lexxie.dev/forge/1.20.1/net/minecraftforge/client/model/generators/ConfiguredModel.Builder.html Builds all configured models and returns them as an array. ```APIDOC ### build() Builds all configured models and returns them as an array. **Returns:** - `ConfiguredModel[]` - The array of built models. ``` -------------------------------- ### get(BakedModel model) Source: https://lexxie.dev/forge/1.20.1/net/minecraftforge/client/model/data/MultipartModelData.html Retrieves the ModelData associated with a specific BakedModel. ```APIDOC ### @Nullable ModelData get(BakedModel model) Retrieves the `ModelData` associated with the provided `BakedModel` instance. Returns null if no data is found for the model. ``` -------------------------------- ### create Source: https://lexxie.dev/forge/1.20.1/net/minecraft/world/level/chunk/Palette.Factory.html Creates a new Palette instance with the specified bit width, ID map, resize handler, and initial list of elements. ```APIDOC ## create ### Description Creates a new Palette instance using the provided configuration parameters. ### Signature ` Palette create(int p_188027_, IdMap p_188028_, PaletteResize p_188029_, List p_188030_)` ### Parameters - **p_188027_** (int) - The bit width for the palette. - **p_188028_** (IdMap) - The mapping of IDs to elements. - **p_188029_** (PaletteResize) - The handler for palette resizing events. - **p_188030_** (List) - The initial list of elements to populate the palette. ### Returns - **Palette** - A new instance of a Palette. ``` -------------------------------- ### getServer Source: https://lexxie.dev/forge/1.20.1/net/minecraftforge/common/util/FakePlayer.html Retrieves the Minecraft server instance. ```APIDOC ## getServer() ### Description Returns the MinecraftServer instance associated with this fake player. ``` -------------------------------- ### get(FireworkRocketItem.Shape) Source: https://lexxie.dev/forge/1.20.1/net/minecraftforge/client/FireworkShapeFactoryRegistry.html Retrieves the registered factory for a given firework shape. ```APIDOC ## static @Nullable FireworkShapeFactoryRegistry.Factory get(FireworkRocketItem.Shape shape) ### Description Retrieves the factory associated with the provided firework shape. ### Parameters - **shape** (FireworkRocketItem.Shape) - The firework shape to look up. ### Returns - **@Nullable FireworkShapeFactoryRegistry.Factory** - The registered factory, or null if no factory is registered for the shape. ``` -------------------------------- ### newInstance Source: https://lexxie.dev/forge/1.20.1/net/minecraftforge/fml/loading/log4j/ForgeHighlight.html Creates a new instance of the HighlightConverter with the provided configuration and options. ```APIDOC ## static newInstance(Configuration config, String[] options) ### Description Gets a new instance of the HighlightErrorConverter with the specified options. This method is used to configure log highlighting within the Log4j framework. ### Parameters - **config** (org.apache.logging.log4j.core.config.Configuration) - The current configuration. - **options** (String[]) - The pattern options. ### Returns - **HighlightConverter** (org.apache.logging.log4j.core.pattern.HighlightConverter) - The new instance, or null if instantiation fails. ``` -------------------------------- ### IForgeFluid.getBlockPathType Source: https://lexxie.dev/forge/1.20.1/net/minecraft/world/level/material/class-use/FluidState.html Gets the path type of the adjacent fluid to a pathfinding entity. ```APIDOC ## IForgeFluid.getBlockPathType(FluidState state, BlockGetter level, BlockPos pos, @Nullable Mob mob, boolean canFluidLog) ### Description Gets the path type of the adjacent fluid to a pathfinding entity. ### Returns - **BlockPathTypes** (Nullable) - The path type for the entity. ``` -------------------------------- ### get(Block p_125965_) Source: https://lexxie.dev/forge/1.20.1/net/minecraft/data/models/model/TexturedModel.Provider.html Retrieves the TexturedModel associated with the specified block. ```APIDOC ### Method TexturedModel get(Block p_125965_) ### Description Retrieves the TexturedModel instance for a given block. ### Parameters - **p_125965_** (Block) - The block to retrieve the model for. ``` -------------------------------- ### run(BootstrapContext p_255783_) Source: https://lexxie.dev/forge/1.20.1/net/minecraft/core/RegistrySetBuilder.RegistryBootstrap.html Executes the bootstrap logic for a registry using the provided context. ```APIDOC ## void run(BootstrapContext p_255783_) ### Description Executes the bootstrap logic for a registry. This method is intended to be implemented as a functional interface to define how registry entries are registered within the provided context. ### Parameters - **p_255783_** (BootstrapContext) - The context used for bootstrapping the registry. ``` -------------------------------- ### get(TelemetryProperty) Source: https://lexxie.dev/forge/1.20.1/net/minecraft/client/telemetry/TelemetryPropertyMap.html Retrieves the value associated with a specific telemetry property. ```APIDOC ## T get(TelemetryProperty p_261667_) ### Description Retrieves the value stored for the given telemetry property key. ### Parameters - **p_261667_** (TelemetryProperty) - The property key to look up. ### Returns - **T** - The value associated with the property, or null if not found. ``` -------------------------------- ### Handle Bed Occupancy Source: https://lexxie.dev/forge/1.20.1/net/minecraftforge/common/extensions/IForgeBlock.html Triggered when a player starts or stops using the bed. ```java default void setBedOccupied(BlockState state, Level level, BlockPos pos, LivingEntity sleeper, boolean occupied) ``` -------------------------------- ### startVersionCheck() Source: https://lexxie.dev/forge/1.20.1/net/minecraftforge/fml/VersionChecker.html Initiates the version check process for mods. ```APIDOC ## static void startVersionCheck() ### Description Initiates the version check process for all mods. This is a static method that triggers the background check logic. ### Signature `public static void startVersionCheck()` ``` -------------------------------- ### prepareKeyPair Source: https://lexxie.dev/forge/1.20.1/net/minecraft/client/multiplayer/ProfileKeyPairManager.html Prepares the profile key pair asynchronously. ```APIDOC ## CompletableFuture> prepareKeyPair() ### Description Initiates the preparation of the profile key pair, returning a CompletableFuture that resolves to an Optional containing the key pair. ``` -------------------------------- ### canStartSwimming Source: https://lexxie.dev/forge/1.20.1/net/minecraftforge/common/extensions/IForgeEntity.html Checks if the entity is capable of starting a swimming action within a fluid. ```APIDOC ## boolean canStartSwimming() ### Description Returns whether the entity can start swimming in the fluid. ### Returns - **boolean** - true if the entity can start swimming, false otherwise. ``` -------------------------------- ### preRegisterVanillaOverlays Source: https://lexxie.dev/forge/1.20.1/index-files/index-16.html Pre-registers vanilla overlays so they are available for ordering. ```APIDOC ## preRegisterVanillaOverlays(HashMap, ArrayList) ### Description Pre-registers vanilla overlays so they are available for ordering. ### Method Static Method ### Parameters - **overlays** (HashMap) - Required - The map of GUI overlays. - **ordering** (ArrayList) - Required - The list defining the order of overlays. ``` -------------------------------- ### ConditionalRecipe.builder() Source: https://lexxie.dev/forge/1.20.1/net/minecraftforge/common/crafting/ConditionalRecipe.html Creates a new instance of a ConditionalRecipe.Builder to start defining a conditional recipe. ```APIDOC ### Method `public static ConditionalRecipe.Builder builder()` ### Description Initializes a new builder for constructing a conditional recipe. This is the entry point for creating recipes that are conditionally registered based on game state or configuration. ``` -------------------------------- ### Options(Minecraft, File) Source: https://lexxie.dev/forge/1.20.1/net/minecraft/client/Options.html Constructs a new Options instance associated with the provided Minecraft client and configuration file. ```APIDOC ### Constructor `Options(Minecraft p_92138_, File p_92139_)` ### Description Initializes the options manager for the specified Minecraft client instance, loading settings from the given file. ``` -------------------------------- ### setBackground Source: https://lexxie.dev/forge/1.20.1/net/minecraftforge/client/event/RenderTooltipEvent.Color.html Sets the background color for the tooltip, applying it to both the start and end of the gradient. ```APIDOC ## void setBackground(int background) ### Description Sets the new color for the tooltip background. This sets both the gradient start and end color for the background to this color. ### Parameters - **background** (int) - The new color for the tooltip background. ``` -------------------------------- ### T get() Source: https://lexxie.dev/forge/1.20.1/net/minecraftforge/common/util/NonNullSupplier.html Retrieves a result from the supplier. This method is guaranteed to return a non-null value. ```APIDOC ## T get() ### Description Gets a result of type T. This method is marked with @NotNull, ensuring that implementations must return a non-null value. ### Returns - **T** - The non-null result. ``` -------------------------------- ### System Information Methods Source: https://lexxie.dev/forge/1.20.1/com/mojang/blaze3d/platform/GlUtil.html Methods to retrieve hardware and OpenGL environment details. ```APIDOC ### Methods - `static String getVendor()` - Returns the OpenGL vendor string. - `static String getCpuInfo()` - Returns information about the system CPU. - `static String getRenderer()` - Returns the OpenGL renderer string. - `static String getOpenGLVersion()` - Returns the current OpenGL version string. ``` -------------------------------- ### get(String name) Source: https://lexxie.dev/forge/1.20.1/net/minecraftforge/client/model/CompositeModel.Data.html Retrieves the ModelData associated with a specific part name. ```APIDOC ## get(String name) ### Description Retrieves the ModelData associated with a specific part name within the composite model data container. ### Parameters - **name** (String) - The name of the part to retrieve data for. ### Returns - **ModelData** - The associated ModelData, or null if not found. ``` -------------------------------- ### getColumn(CreativeModeTab tab) Source: https://lexxie.dev/forge/1.20.1/net/minecraftforge/client/gui/CreativeTabsScreenPage.html Gets the column index for a specific creative tab. ```APIDOC ## Method: getColumn(CreativeModeTab tab) ### Description Returns the column index for the specified tab. ### Parameters - **tab** (CreativeModeTab) - The tab to query. ### Returns - **int** - The column index. ``` -------------------------------- ### build() Source: https://lexxie.dev/forge/1.20.1/net/minecraft/client/gui/components/tabs/TabNavigationBar.Builder.html Constructs the final TabNavigationBar instance. ```APIDOC ### Method public TabNavigationBar build() ### Description Finalizes the configuration and returns a new TabNavigationBar instance. ``` -------------------------------- ### get(LootContext p_165591_) Source: https://lexxie.dev/forge/1.20.1/net/minecraft/world/level/storage/loot/providers/nbt/ContextNbtProvider.Getter.html Retrieves the NBT Tag from the provided loot context. ```APIDOC ### Method Tag get(LootContext p_165591_) ### Description Retrieves the NBT Tag associated with the given loot context. ### Parameters - **p_165591_** (LootContext) - The context from which to retrieve the NBT data. ### Returns - **Tag** - The retrieved NBT tag, or null if not found. ``` -------------------------------- ### build() Source: https://lexxie.dev/forge/1.20.1/net/minecraft/advancements/critereon/LightPredicate.Builder.html Constructs the final LightPredicate instance. ```APIDOC ### Method `public LightPredicate build()` Finalizes the configuration and returns a new LightPredicate object. ``` -------------------------------- ### SeparateTransformsModelBuilder.begin Source: https://lexxie.dev/forge/1.20.1/net/minecraftforge/client/model/generators/loaders/SeparateTransformsModelBuilder.html Initializes a new instance of the SeparateTransformsModelBuilder. ```APIDOC ## static > SeparateTransformsModelBuilder begin(T parent, ExistingFileHelper existingFileHelper) ### Description Creates a new builder instance for a model with separate transforms. ### Parameters - **parent** (T) - The parent model builder. - **existingFileHelper** (ExistingFileHelper) - Helper to verify existing files. ``` -------------------------------- ### get(float p_270270_) Source: https://lexxie.dev/forge/1.20.1/net/minecraft/world/entity/Display.GenericInterpolator.html Retrieves the interpolated value at a specific progress point. ```APIDOC ## T get(float p_270270_) ### Description Calculates and returns the interpolated value for the given progress factor. ### Parameters - **p_270270_** (float) - The interpolation progress, typically ranging from 0.0 to 1.0. ``` -------------------------------- ### get(TagKey) Source: https://lexxie.dev/forge/1.20.1/net/minecraft/core/HolderGetter.html Retrieves an optional named tag set by its tag key. ```APIDOC ## Optional> get(TagKey p_256283_) ### Description Retrieves an Optional containing the HolderSet.Named for the specified tag key if it exists. ### Parameters - **p_256283_** (TagKey) - The tag key to look up. ``` -------------------------------- ### accept(SimpleBufferBuilder bb, RenderElement.DisplayContext context, int frame) Source: https://lexxie.dev/forge/1.20.1/net/minecraftforge/fml/earlydisplay/RenderElement.Renderer.html Renders the element using the provided buffer builder, display context, and frame index. ```APIDOC ### void accept(SimpleBufferBuilder bb, RenderElement.DisplayContext context, int frame) #### Description Performs the rendering operation for the element. #### Parameters - **bb** (SimpleBufferBuilder) - The buffer builder used for rendering. - **context** (RenderElement.DisplayContext) - The current display context. - **frame** (int) - The current frame index. ``` -------------------------------- ### get(ResourceKey) Source: https://lexxie.dev/forge/1.20.1/net/minecraft/core/HolderGetter.html Retrieves an optional reference to a registry entry by its resource key. ```APIDOC ## Optional> get(ResourceKey p_255645_) ### Description Retrieves an Optional containing the Holder.Reference for the specified resource key if it exists. ### Parameters - **p_255645_** (ResourceKey) - The resource key to look up. ``` -------------------------------- ### get(int, int) Source: https://lexxie.dev/forge/1.20.1/net/minecraft/client/particle/SpriteSet.html Retrieves a TextureAtlasSprite based on the provided integer parameters. ```APIDOC ## TextureAtlasSprite get(int p_107966_, int p_107967_) ### Description Retrieves a specific TextureAtlasSprite from the set using two integer identifiers. ### Parameters - **p_107966_** (int) - The first integer identifier. - **p_107967_** (int) - The second integer identifier. ### Returns - **TextureAtlasSprite** - The sprite corresponding to the provided identifiers. ``` -------------------------------- ### simpleChannel() Source: https://lexxie.dev/forge/1.20.1/net/minecraftforge/network/NetworkRegistry.ChannelBuilder.html Constructs a SimpleChannel using the current builder configuration. ```APIDOC ## simpleChannel() ### Description Builds and returns a new SimpleChannel instance based on the configured parameters. ### Returns - **SimpleChannel** - A new instance of SimpleChannel. ```