/
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:
onClientSetup method to handle client-side setup tasks using FMLClientSetupEvent.Normal, Medium, Small, Mini, and their compressed forms).Modular Content Registration:
EntityReg:
BlockReg:
DeferredRegister.ItemReg:
NormalTorchScreen for managing base torch entity settings when activated in the configuration.Adjustable X & Z range slider directly within the screen.
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.Code Maintainability:
Reg classes (e.g., BlockReg, EntityReg, ItemReg) for improved readability and scalability.Messages for modular communication and simplified packet handling.Customizability:
NormalTorchScreen and ConfigSlider.Scalability:
