Commit Graph
36 Commits
Author SHA1 Message Date
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
Martin Robertz 47a5b9391a sa+wci 2023-09-24 22:57:55 +02:00
Jason Mitchell 84c2239244 [ci skip] spotlessApply with the new settings 2023-01-28 18:04:28 -08:00
Alexdoru cdc7dcf5d0 quick fix : optimize imports 2023-01-28 18:02:41 -08:00
Raven Szewczyk 39be06c23b Fix JABBA-related issues with crafting station slots (#54)
* Fix shift-merging tools voiding items

fixes <https://github.com/GTNewHorizons/GT-New-Horizons-Modpack/issues/11392>

* Change 0-sized ItemStacks into null stacks in crafting station attached slots

Fixes <https://github.com/GTNewHorizons/GT-New-Horizons-Modpack/issues/10425>

* Update buildscript

* spotlessApply
2022-09-22 20:51:23 +02:00
Bernhard Bonigl a7d3f47f14 Followup to fix all the remaining parameters not set by 075b769db2 2015-02-22 12:08:25 +01:00
Bernhard Bonigl 619bfdb1f1 Adjust tools to new blockbreak code stuff. Yay for proper calls. 2014-09-17 15:32:51 +02:00
Arthur Uzulin 80efde613a The return of achievements
- Re-added achievements
- Organised all imports (seemed all over the place)
- Formatted all code (seemed very combined, used the TinkerStyle)
2014-09-09 18:30:15 +10:00
Bernhard Bonigl f6e6798f8d Fire blockbreak event 2014-09-02 17:02:03 +02:00
mDiyo 5b56d5e392 Buff redstone mod, refactor broad tools to match
Cherry-picked from 34a4c8c80f969cafd696b41d963c2a041347d4cd

Conflicts:
	src/main/java/tconstruct/common/TProxyCommon.java
	src/main/java/tconstruct/items/tools/Excavator.java
	src/main/java/tconstruct/items/tools/Hammer.java
	src/main/java/tconstruct/items/tools/LumberAxe.java
	src/main/java/tconstruct/library/tools/HarvestTool.java
	src/main/java/tconstruct/modifiers/tools/ModLapis.java
	src/main/java/tconstruct/modifiers/tools/ModRedstone.java
	src/main/java/tconstruct/tools/gui/ToolStationGui.java
2014-08-28 01:27:39 -07:00
61352151511 223098bd0c Remove Unused Imports 2014-08-04 19:29:38 -03:00
jodamm e70dcda57e * fix for #527 Lumber Axe destroys indestructible blocks
* fix for Excavator and Hammer behaving wrong under water
2014-08-02 21:17:49 +02:00
unknown e9822db594 unified use of block / localBlock like it is in Hammer.
block harvesting is in own method in HarvestTool except the scythe.
fix for some blocks drop nothing or not breaking at all.
fix for dropping exp with silktouch.
2014-07-31 21:32:12 +02:00
Glassmaker d76117d559 Adds dropping experiance when breaking blocks, example Coal and Lappis 2014-07-28 00:39:37 +03:00
Alexander Behrhof ea634c139f Reverting "Fix some block breaking problems". 2014-07-21 15:07:16 -04:00
mDiyo 145f7b9724 Fix merge conflicts 2014-06-30 09:22:30 -08:00
blue42u b16b79a823 Fix some block breaking problems.
- Bibliocraft locks are respected.
- Fixes Thaumcraft node drops.
- Fixes strange auto-smelt drops sometimes.
- Probably fixes sync issues somewhere.
2014-06-14 09:31:39 -05:00
mDiyo e2f0558b6f Reorganize folders for modules 2014-06-04 21:44:48 -08:00
Progwml6 cc2aeb82e0 remove battle gear 2 compat as its impossible to support mods w/ constantly changing API's 2014-03-06 02:08:35 -05:00
Alexander 3d866316a7 Doing some code cleanup. 2014-02-17 00:31:43 -05:00
Alexander 2a2f84ee88 Format code again + organize imports 2014-02-05 10:28:54 -05:00
Progwml6 b8cf7cdc5e run through remap script 2014-02-05 08:28:53 -05:00
Alexander fffe2800bd Fix the errors that were left, I commeneted our some code in SmelteryLogic for right now, Also changed the way ArrowEntity Sends the ChangeGameState 2014-02-03 10:02:49 -05:00
Progwml6 f936434c71 getting super close 2014-02-02 11:35:00 -05:00
Progwml6 8ae89ba70e some moar fixes 2014-02-01 15:17:30 -05:00
Progwml6 ee7bc7d7eb around 300 combined errors 2014-02-01 14:55:52 -05:00
Progwml6 7d462321b5 moar fixes 2014-01-28 22:43:08 -05:00
Progwml6 d914004bde fixed several tools 2014-01-16 03:57:21 -05:00
Progwml6 fa7a77a179 fixed most of the clientside rendering code 2014-01-16 01:36:18 -05:00
Progwml6 f88464fdd6 more fixing 2014-01-11 02:59:17 -05:00
Progwml6 d911af378f more 1.7 work, attempts at figuring out log4j2 2014-01-10 17:03:06 -05:00
Progwml6 fb04e8eb08 more fixes 2014-01-09 04:08:38 -05:00
Progwml6 9814eadaea bunch more random stuff fixed 2014-01-07 15:07:07 -05:00
Progwml6 3c23d27cf7 more 1.7 work 2013-12-31 16:37:46 -05:00
Progwml6 1a74c0768f TContent refactor Part 1 2013-11-29 23:16:32 -05:00
Sunstrike cb87c836c8 Initial test of Gradle (not working yet) 2013-11-21 16:13:51 +00:00