AlexanderC 1a97bff6ef 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.

* .
2024-07-30 19:18:21 +07:00
2024-06-26 20:58:36 +02:00
2021-12-11 22:18:50 +01:00
2024-02-04 20:02:33 +00:00
2022-01-17 22:48:14 -08:00
2024-06-26 20:58:36 +02:00
2024-06-26 20:58:36 +02:00
2024-02-04 20:02:33 +00:00
2021-11-19 19:50:42 +01:00
2022-02-04 17:26:08 +01:00
2024-06-26 20:58:36 +02:00

Tinkers' Construct - GTNH

Forked version of Tinker's Construct being maintained for 1.7.10 for use in the GTNH modpack.

Modify all the things, then do it again!
Melt down any metals you find. Power the world with spinning wind!

Development

See the general GTNH Developement page.

License

GTNH Modifications Copyright (c) 2021-2024 The GTNH Team

This code is licensed LGPL v3.0 or later. Feel free to use our changes, just give back any changes you make to the community as well!

The original code is copyright (c) 2015 SlimeKnights and was retroactively released under the MIT License.

Any and all issues with this fork should be brought to the GTNH GitHub - do not bother the original maintainers!

Compile from Source

Note: Git MUST be installed and in the system path to use our scripts.

  • Before importing the project to your IDE, build it by running gradlew[.bat] build in its root directory.
  • If obscure Gradle issues are found try running 'gradlew clean' and 'gradlew cleanCache'
S
Description
No description provided
Readme
30 MiB
0 Stars 1 Watchers 0 Forks
Languages
Java 100%