Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This pull request introduces several improvements and refactorings to the handling of anti-radiation armor, status effects, particle types, and some multiblock and biome logic. The most significant changes are the improved detection of full anti-radiation armor sets, more robust cooldown management for vicinity effects, and the introduction of a custom particle type registry. Additionally, the code now changes the biome around reactor casings when placed.
Armor and Status Effect Improvements:
isFullSetmethods to check if an entity is wearing a complete anti-radiation armor set, andisAnyPieceto check for any piece. This replaces the previousisArmoredmethod and improves detection reliability.RadiationEffectand related logic to useisFullSetfor determining immunity, ensuring radiation effects are only applied if the entity is not fully protected. [1] [2]Particle System Enhancements:
CNParticleTypesenum to register and manage custom particle types, such asIRRADIATED_PARTICLES, and integrated it into the mod's initialization and client event bus. [1] [2] [3]Multiblock and Biome Logic:
ReactorCasingblock is placed, the biome in a 12-block radius is updated to the custom irradiated biome, enhancing world interaction and atmosphere. [1] [2]General Refactoring and Cleanup:
AntiRadiationArmorItem. [1] [2]These changes collectively improve code maintainability, gameplay mechanics, and mod extensibility.