Brought up to date with the neoforge verstion Fixed Scrolling Issue: Added a scroll bar on the side to address cases where the mouse wheel didn't work for some users Torch Improvement: Updated the flame sprite on torches to better match their designs. New Torch Entities: Added two new torch types: Hostile Mob Torches and Passive Mob Torches. These new torches also include the existing tier system: Small: Covers a 5x5 area. Medium: Covers a 7x7 area. Normal: Covers a 9x9 area.
- Fixed Scrolling Issue: Added a scroll bar on the side to address cases where the mouse wheel didn't work for some users
- Torch Improvement: Updated the flame sprite on torches to better match their designs.
- New Torch Entities: Added two new torch types: Hostile Mob Torches and Passive Mob Torches.
- These new torches also include the existing tier system:
- Small: Covers a 5x5 area.
- Medium: Covers a 7x7 area.
- Normal: Covers a 9x9 area.
- These new torches also include the existing tier system:
Changelog
Added
-
Message Registration:
-
Registered
Messages
class for managing server and client communication usingPayloadRegistrar
andPacketDistributor
. -
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 usingFMLClientSetupEvent
. - Registered cutout render layers for all torch block variants (
Normal
,Medium
,Small
,Mini
, and their compressed forms).
- Added
-
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
.
- Efficient management of torch blocks and their wall-mounted variants via
-
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.
-
- Introduced
- Torch Configurations:
-
Rework: Modular Utility Classes:
CallConstants
: Utility class for consistentResourceLocation
creation usingMODID
.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.
- Modularized and consolidated content registration into separate
-
Customizability:
- Enhanced configuration system via
NormalTorchScreen
andConfigSlider
. - Support for fine-tuning entity settings, ranges, and speeds directly within the UI.
- Enhanced configuration system via
-
Scalability:
- Simplified the addition of new variants for torches (sizes, types) with the modularized registration and configuration system.