Implementation of AoE Blacklist for Tinker's Construct Tools (#121)

* Implement AoE exclusion list for Tinkers' Construct tools

- Created AoEExclusionList class in tconstruct.library.util package
- Added config file loading for tool-specific block exclusions
- Modified AOEHarvestTool class to check exclusions before breaking blocks
- Updated Hammer class to use new exclusion system
- Added debug logging for troubleshooting

This change allows users to specify blocks that should not be broken by the AoE effect of tools like the Hammer, while still allowing the targeted block to be broken.

* Implement AoE exclusion list for Tinkers' Construct tools

- Created AoEExclusionList class in tconstruct.library.util package
- Added config file loading for tool-specific block exclusions
- Modified AOEHarvestTool class to check exclusions before breaking blocks
- Updated Hammer class to use new exclusion system
- Added debug logging for troubleshooting

This change allows users to specify blocks that should not be broken by the AoE effect of tools like the Hammer, while still allowing the targeted block to be broken.

* Update README.md

* Removed/Commented debug.

* Gradle Clean

* Removed missed debug message
Added example formatting for config file.
Inlined Variable

* Added the license back, oops

* Removed redundant variable

* Brought back toolName, used proper getAOEToolName variable, intended for caching the name instead of calling the method later on.

Changed function call to simply toolName in relation to this.

* Removed now redundant if statements.

* Spotless Apply

* Changed to use Set<String> instead of Map<String>, and other appropriate changes made so other parts still work properly
& SpotlesApply

* Reinstated original README

* Changed to include metadata (optionally) in the blacklist.

* Changed to include metadata (optionally) in the blacklist.

* Removed bad import.

* .
This commit is contained in:
AlexanderC authored and GitHub committed 2024-07-30 19:18:21 +07:00
1 parent c2c2f14596
commit 1a97bff6ef
6 files changed
+89 -3

No files matched your search

@@ -13,6 +13,11 @@ public class Excavator extends AOEHarvestTool {
this.setUnlocalizedName("InfiTool.Excavator");
}
@Override
protected String getAOEToolName() {
return "excavator";
}
@Override
protected Material[] getEffectiveMaterials() {
return materials;