promotional bannermobile promotional banner

Impatient Torch

Overclocks your blocks!

File Details

impatient-0.1.1-1.21.1-forge.jar

  • R
  • Feb 21, 2025
  • 188.17 KB
  • 22
  • 1.21.1
  • Forge

File Name

impatient-0.1.1-1.21.1-forge.jar

Supported Versions

  • 1.21.1

Curse Maven Snippet

Forge

implementation "curse.maven:impatient-torch-1139101:6216105"
Curse Maven does not yet support mods that have disabled 3rd party sharing

Learn more about Curse Maven

Changelog

Added

  • Message Registration:

    • Registered Messages class for managing server and client communication using PayloadRegistrar and PacketDistributor.

    • Methods:

      • sendToServer: Sends packets from client to server.
      • sendToPlayer: Sends packets from server to specific players.
    • Built on NeoForge's RegisterPayloadHandlersEvent.

  • Client Setup Enhancements:

    • Added onClientSetup method to handle client-side setup tasks using FMLClientSetupEvent.
    • Registered cutout render layers for all torch block variants (Normal, Medium, Small, Mini, and their compressed forms).
  • Modular Content Registration:

    • EntityReg:

      • Registers block entities for all torch types and their wall-mounted variants, including compressed versions.
    • BlockReg:

      • Efficient management of torch blocks and their wall-mounted variants via DeferredRegister.
    • ItemReg:

      • Handles item registration for all torch types and sizes.
    • Torch Configurations:
      • Introduced NormalTorchScreen for managing base torch entity settings when activated in the configuration.
      • Features:
        • Adjustable X & Z range slider directly within the screen.

          • Y range adjustments remain disabled unless explicitly enabled in the configuration.
        • Torch speed is determined by the configuration and cannot be changed via the screen.

        • Sliders and settings are only accessible if the feature is activated in the configuration.

        • Utilizes a grid-based layout for scalable and modular UI design.

  • Rework: Modular Utility Classes:

    • CallConstants: Utility class for consistent ResourceLocation creation using MODID.
    • ConfigSlider: A custom slider widget with adjustable ranges and dynamic text for configuration control.

Improved

  • Code Maintainability:

    • Modularized and consolidated content registration into separate Reg classes (e.g., BlockReg, EntityReg, ItemReg) for improved readability and scalability.
    • Refactored Messages for modular communication and simplified packet handling.
  • Customizability:

    • Enhanced configuration system via NormalTorchScreen and ConfigSlider.
    • Support for fine-tuning entity settings, ranges, and speeds directly within the UI.
  • Scalability:

    • Simplified the addition of new variants for torches (sizes, types) with the modularized registration and configuration system.