Compare commits

..
1362 Commits
Author SHA1 Message Date
bombcar 1d50c84c55 update for CCC/L 1.2.0 2024-01-03 16:25:53 -06:00
bombcar ebe1040015 udpate dependencies 2024-01-03 15:59:41 -06:00
Martin Robertz 2e62cb2a32 update deps 2024-01-02 11:29:29 +01:00
chochem 2db573f5c3 also fix mining level for obsidian snakestone 2024-01-02 01:32:50 +01:00
chochem ff494012ed update dep 2024-01-01 21:45:12 +01:00
chochem d5dbfe5f6d fix mining levels with iguana 2024-01-01 21:45:12 +01:00
Martin Robertz a2b32f4d73 update bs+deps 2024-01-01 20:13:10 +01:00
Caedis 2a93fbd33d spotless 2024-01-01 19:28:34 +01:00
Caedis 52496b770a add vanilla mining levels 2024-01-01 19:28:34 +01:00
Martin Robertz c964972006 backdate deps 2023-12-28 19:12:30 +01:00
Martin Robertz cd20d23b1b update gradle + deps + bs 2023-12-28 18:42:39 +01:00
makamys 631c562f34 Make Forge Multipart dependency optional
Fixes regression in 2150548
2023-12-28 08:59:15 -08:00
makamys 3e6930d1f1 Don't relocate CTMLib
Fixes Techguns compat
2023-12-28 08:58:54 -08:00
Martin Robertz 82955ad34d update waila dep 2023-11-16 13:57:16 +01:00
Pelotrio d726351abc Add method to clear static textures on world unload 2023-11-16 13:52:58 +01:00
Pelotrio ea103bcc80 Remove static keyword from render block variables
The static keyword was removed from several instances of RenderBlocksCTM and RenderBlocksCTMFullbright variables in various SubmapManager classes and ChiselController class. This was done to fix a potential memory leak issue where these static objects could persist in memory even when they're no longer needed. Also, related to this change, the onWorldUnload method that used to clear static reference of RenderBlocksCTMFullbright has been removed from ChiselController.
2023-11-16 13:52:58 +01:00
Martin Robertz f4291635b2 fix dependencies 2023-11-12 11:11:48 +01:00
Martin Robertz 739e5fc9c3 fix 2023-11-12 11:09:00 +01:00
Martin Robertz 0aab92fe6c sa 2023-11-11 22:23:15 +01:00
Martin Robertz 52b110a0da Merge branch 'master' into emissive_microblocks 2023-11-11 22:20:41 +01:00
Martin Robertz afb21dcf8c fix wci 2023-11-11 12:07:34 +01:00
Martin Robertz c0dd868ca6 update bs+deps+gradle 2023-11-11 11:49:26 +01:00
Pelotrio 966fad56ca Clear render block instances on world unload to not leak the world 2023-11-10 18:11:53 -08:00
bombcar 9beab25b7a Update for spotlessApply 2023-11-07 15:32:25 -06:00
iamblackornot f471a0c094 - updated dependencies (promoted ForgeMultipart from CompileOnly to implementation)
- updated BuildScript
2023-11-07 14:00:27 +03:00
iamblackornot 2150548111 - forge microblocks of neonite, antiblock and glotek are now emissive when using shaders 2023-11-06 16:12:00 +03:00
Martin Robertz df216f68b4 Merge pull request #32 from GTNewHorizons/sb-fix-chisel-ui-priority
Fix Chisel opening its UI instead of looked at TE
2023-08-18 10:31:30 +02:00
serenibyss 834beb5ac8 humongous spotless apply to make CI happy 2023-08-18 03:10:44 -05:00
serenibyss a0f11f404a Fix chisel opening its UI instead of looked at TE 2023-08-18 02:55:49 -05:00
serenibyss 9899ca1177 bs + deps 2023-08-18 02:39:29 -05:00
Martin Robertz 1d94ff613d Merge pull request #31 from Darkmaxsas/disable-default-hempcrete-recipe
disable default hempcrete smelting
2023-06-17 08:51:15 +02:00
Darkmaxsas 494addb994 disable default hempcrete smelting 2023-06-16 22:03:34 +02:00
Martin Robertz e17147a14c Merge pull request #30 from chochem/fix-hempcrete-(yes,-again!)
Fix broken recipe for hempcrete powder (yes, again!)
2023-06-15 19:25:39 +02:00
chochem 605d47eeed move to coremod 2023-06-14 20:28:15 +01:00
chochem 0147be4afb revert broken change 2023-06-14 20:17:43 +01:00
Martin Robertz f5d9bee22e Merge pull request #29 from GTNewHorizons/hempcrete_recipe
Change hempcrete recipe from fern to wheat to actually be automatable
2023-06-10 21:31:01 +02:00
Sampsa aa90eb92a4 Change hempcrete recipe from fern to wheat to actually be automatable 2023-06-10 22:23:01 +03:00
Martin Robertz 0f7113c3dc Merge pull request #28 from chochem/master
Fix broken recipes for hempcrete and hempcrete powder
2023-04-28 15:58:52 +02:00
chochem fe46a1208f sa 2023-04-28 14:10:21 +01:00
chochem 529bb240a2 actual fix 2023-04-28 14:10:01 +01:00
chochem 7d0672aa09 all caps 2023-04-28 12:51:57 +01:00
Connor-Colenso 65d2a18875 Merge pull request #27 from Jimbno/master
Added 7 new sets of blocks
2023-04-25 20:04:25 +01:00
Jimbno 3c419d6524 Delete src/main/resources/assets/chisel/textures/blocks/Glotek directory
folder name change,
changed glotek and neonite to lower case
2023-04-25 19:26:25 +02:00
Jimbno dd8f34a6ec Delete src/main/resources/assets/chisel/textures/blocks/Neonite directory
folder name change
2023-04-25 19:25:41 +02:00
Jimbno aaaf548ff4 Add files via upload
folder name change
2023-04-25 19:24:16 +02:00
Jimbno 03c60ef024 Update SubmapManagerSpecialMaterial.java
hopefully this does it
2023-04-24 21:44:22 +02:00
Jimbno 41d38fc263 merge carvable classes
merged glowtek and neonite carvable into one calss
2023-04-24 20:45:10 +02:00
Jimbno bfbdcb07cf final fixes
Added the rest of suggestions,
made one class for glotek and neonite, made variable names more descriptive and removed SideOnly
2023-04-24 19:16:33 +02:00
Jimbno 1be95d427a Merge branch 'master' of https://github.com/Jimbno/Chisel 2023-04-23 22:18:56 +02:00
Jimbno 5759cddae3 Fixes
implemented some of glowredmans suggestions
2023-04-23 22:18:16 +02:00
Jimbno 3bfa3b4dc6 Update BlockCarvableGlotek.java 2023-04-23 22:13:56 +02:00
Jimbno 35b56b65b6 Merge pull request #1 from GTNewHorizons/dev
update bs+sa
2023-04-23 17:54:09 +02:00
Martin Robertz b64693d439 update bs+sa 2023-04-23 17:22:15 +02:00
Jimbno 305cc21c46 New Blocks
Added 7 new sets of chisel blocks
2023-04-23 14:01:31 +02:00
Martin Robertz e97ca89b15 bs+sa 2023-01-31 19:26:10 +01:00
Martin Robertz 1578bba172 Merge pull request #26 from Zereff06/disableMobSpawn
Disable mob spawn on the chisel blocks
2023-01-31 19:24:15 +01:00
Zereff06 85c0301dba spotlessAplly 2023-01-31 20:14:32 +02:00
Zereff06 68a00eea9d Merge remote-tracking branch 'Zereff06/disableMobSpawn' into disableMobSpawn 2023-01-31 20:11:02 +02:00
Zereff06 ad20e3f2ad Remove redundant variables 2023-01-31 20:09:20 +02:00
Raven Szewczyk dc80d5dd81 [ci skip] upgraded build system 2023-01-31 09:51:48 +00:00
Zereff06 c86b27646e Merge branch 'master' into disableMobSpawn 2023-01-29 23:46:31 +02:00
Zereff06 79e853ad0b spotlessApply 2023-01-29 23:41:53 +02:00
Zereff06 82de7905b1 add setting in config
by default mobs cannot Spawn
2023-01-29 23:02:26 +02:00
Jason Mitchell 33c845e2bf [ci skip] Add git-blame-ignore-revs for spotlessApply 2023-01-29 10:09:36 -08:00
Jason Mitchell 8f026dad8f [ci skip] spotlessApply with the new settings 2023-01-29 10:09:28 -08:00
Jason Mitchell a314fccd1b [ci skip] Update buildscript to RetroFuturaGradle 2023-01-29 10:03:56 -08:00
Zereff06 c2f1c134bd add info to tooltip
"Mobs cannot Spawn on this Block"
2023-01-29 00:44:14 +02:00
Zereff06 9b92e3aee9 Disable mob spawn on the chisel blocks 2023-01-28 23:08:44 +02:00
Martin Robertz 958f306252 Merge pull request #25 from Kiwi233/1.7/release
Update zh_CN.lang
2022-09-24 12:40:25 +02:00
[Kiwi233] 150cf1e42d Update zh_CN.lang 2022-09-24 11:31:40 +08:00
Martin Robertz 2e2d7e2879 Merge pull request #24 from GTNewHorizons/update-ctmlib
Update CTMLib
2022-08-17 11:17:59 +02:00
Vladislav Laetansky f13c2c0ddc Update CTMLib 2022-08-17 12:03:21 +03:00
boubou19 37b8bf7eca Merge pull request #23 from repo-alt/feature/overflow
Chisel GUI allows shift click when inventory is full, resulting in the voiding of the stack
2022-07-30 16:55:15 +02:00
repo_alt 1407b34861 Chisel GUI allows shift click when inventory is full, resulting in the voiding of the stack
https://github.com/GTNewHorizons/GT-New-Horizons-Modpack/issues/10867
2022-07-30 18:48:38 +04:00
Jason Mitchell 90077cdea5 [ci skip] Migrate github actions to GTNH-Actions-Workflows 2022-07-16 10:47:23 -07:00
Connor-Colenso 32d5e538fd Merge pull request #22 from repo-alt/feature/present
Validate present GUI
2022-06-26 19:16:49 +01:00
repo_alt 3a6d40b550 Validate present GUI 2022-06-26 19:39:19 +04:00
boubou19 dfe8f5e56d Merge pull request #21 from GTNewHorizons/shade-ctmlib
Shade CTMLib
2022-06-19 21:33:19 +02:00
glowredman e8d9d77299 Shade CTMLib 2022-06-11 16:08:12 +02:00
Martin Robertz 91a5d63a24 Merge pull request #20 from GTNewHorizons/chisel-name-fix
Name "Nether Star Chisel" only "Bedrockium Chisel" if in GTNH
2022-06-09 17:00:24 +02:00
glowredman ddd7f5ec2e Move GTNH check before Features#preInit 2022-06-09 11:41:03 +02:00
glowredman 423f72ab21 name "Nether Star Chisel" only "Bedrockium Chisel" if in GTNH 2022-06-07 22:52:12 +02:00
Martin Robertz 3c0729591f Merge pull request #19 from GTNewHorizons/fixrelease
fix release
2022-02-27 22:51:55 +01:00
bombcar b809eb9d0b fix release 2022-02-27 15:44:43 -06:00
Martin Robertz 9db6baf768 Update build.gradle 2022-02-27 22:37:24 +01:00
Martin Robertz 52915ac97f Merge pull request #18 from Kiwi233/1.7/release
Update zh_CN.lang
2022-02-06 19:29:26 +01:00
[Kiwi233] 00cf0d5229 Update zh_CN.lang 2022-02-06 22:18:36 +08:00
Martin Robertz 1ce8c85dce Merge pull request #17 from MrAkells/master
fix small lang typo
2022-01-24 07:08:28 +01:00
MrAkells e903c37913 fix small lang typo
It was the Cyrillic letter "C". I noticed due to the fact that in 1.7.10 the Cyrillic alphabet is displayed small. Altogether a miracle.
2022-01-24 01:29:57 +02:00
Martin Robertz 1a9e366204 Merge pull request #16 from GTNewHorizons/fixrunclient
fix runclient for now
2022-01-22 23:34:51 +01:00
bombcar 0dfa701ae3 fix runclient for now 2022-01-22 11:25:52 -06:00
Jason Mitchell 802295bb6a update to explicit dependencies 2022-01-17 23:34:45 -08:00
Jason Mitchell 5d6b5c945d maven publish buildscript update 2022-01-17 23:33:27 -08:00
Martin Robertz 764885d239 Merge pull request #15 from Eldrinn-Elantey/master
Update en_US.lang, ru_RU.lang
2022-01-10 14:51:28 +01:00
Eldrinn_Elantey baf3c712bd Update ru_RU.lang
tile.beacon.lightblue.desc=Маяк со голубым лучом
2022-01-10 17:07:42 +04:00
Eldrinn_Elantey bd2fe1d272 Update ru_RU.lang
Synchronization of the file structure with English, fine translation, elimination of incorrectly displayed characters
2022-01-09 05:46:27 +04:00
Eldrinn_Elantey f2447d415b Update en_US.lang
Adjustment of the name of the tool, taking into account the recipe for its manufacture
2022-01-09 05:45:01 +04:00
Martin Robertz 51734f9338 Merge pull request #14 from GTNewHorizons/texture-size-fix
Fixed textures that could reduce the maximum mipmap level
2021-12-20 12:05:01 +01:00
jss2a98aj 07fb8bbe4c Fixed textures that could reduce the maximum mipmap level 2021-12-20 02:57:24 -05:00
Martin Robertz 3b59ef25ab Merge pull request #13 from GTNewHorizons/integrate-ctmlib
Integrate ctmlib
2021-12-18 17:40:30 +01:00
Johann Bernhardt feef5a4e3a Resolved lombok issue 2021-12-18 11:40:56 +01:00
Johann Bernhardt d05e019479 Add CTMLib files 2021-12-12 11:06:12 +01:00
Martin Robertz b4165072a7 Merge pull request #12 from GTNewHorizons/fix-dependency
CTMLib is not shaded any more
2021-12-11 13:41:54 +01:00
Johann Bernhardt b47b9c796b CTMLib is not shaded any more 2021-12-11 13:12:16 +01:00
Martin Robertz 87fdd6a89b ignore bat files 2021-12-11 00:15:30 +01:00
Martin Robertz ddc1e1e1f2 Merge pull request #11 from boubou19/master
fixed constant feature config lookups
2021-12-09 11:50:49 +01:00
boubou_19 2c6f726adf fix mistake 2021-12-07 02:44:41 +01:00
boubou_19 3b436ac6fe fixed constant feature config lookups 2021-12-07 02:11:49 +01:00
Johann Bernhardt 57730ee5e7 Migrated to unified build script 2021-12-02 10:14:36 +01:00
Johann Bernhardt 1cca6cceb1 Remove copied thaumcraft api 2021-12-02 10:08:45 +01:00
Martin Robertz a33dfd1ad9 Merge pull request #10 from GTNewHorizons/fix-build
Fix build
2021-12-01 21:41:44 +01:00
bombcar 6bb9808bc7 Fix build 2021-12-01 14:38:12 -06:00
jss2a98aj c6f9373308 Prevents a crash when a chisel is activated from a Battlegear slot 2021-07-17 21:15:59 -04:00
DreamMasterXXL 37d8e908b4 add(Chisel)Changelog 2021-06-27 23:13:27 +02:00
jss2a98aj 5f8734093c Present GUI should only open if its block is still present server side 2021-05-07 10:27:04 -04:00
DreamMasterXXL d4de411389 update gradle 2021-04-29 22:02:26 +02:00
Martin Robertz 39c135203e Merge pull request #9 from GTNewHorizons/update-gradle
fix(gradle): fix gradle wrapper script and plugins
2021-04-29 21:25:47 +02:00
Léa Gris ab83665d9a fix(gradle): fix gradle wrapper script and plugins
- Update the wrapper to 5.6.4
- Switch to overminddl1 for Forge
- Upgrade version and repository of Grgit

TODO:
  Host an ivy for EquivalentExchange3-1.7.10-0.3.505-dev.jar
  at http://downloads.gtnewhorizons.com/Mods_for_Jenkins/
2021-04-29 17:05:24 +02:00
glowredman d3b68032cd Revert "Merge branch '1.7/release' into 1.7/release"
This reverts commit e02c02d35c, reversing
changes made to c5e8645d1a.
2021-03-23 14:14:46 +01:00
glowredman e02c02d35c Merge branch '1.7/release' into 1.7/release 2021-03-23 12:22:39 +01:00
Martin Robertz c5e8645d1a Merge pull request #8 from Skiftcha/chisel-gui-scroll-fix
fix serverside issue with nei blacklist gui
2020-12-16 20:31:30 +01:00
Skiftcha 52c184b7ab fix serverside issue with nei blacklist gui 2020-12-16 22:28:41 +03:00
DreamMasterXXL d4330b1512 bump version 2020-12-16 00:14:01 +01:00
Martin Robertz 53c72a9397 Merge pull request #7 from Skiftcha/chisel-gui-scroll
Chisel gui scroll
2020-12-16 00:06:22 +01:00
Skiftcha f728eb1a15 fix scrolling issues due to container updates from server 2020-11-24 17:29:26 +03:00
Skiftcha 48f5e6fec2 disable chiseling by scrolling over itemstack 2020-11-24 17:28:56 +03:00
Skiftcha 346a818a5a small cleanup 2020-11-24 09:26:33 +03:00
Skiftcha 587afa8e1d adjust scrolling 2020-11-24 09:10:48 +03:00
Skiftcha 3ae2128564 sync with server 2020-11-24 08:21:52 +03:00
Skiftcha 8c82d0fa41 local scrolling 2020-11-24 08:06:51 +03:00
glowredman 07dce1355a Adjust versioning system 2020-11-20 20:34:43 +01:00
Prometheus0000 acdd403636 fix name 2020-10-31 14:43:22 -04:00
Martin Robertz 6916e91591 Merge pull request #6 from Prometheus0000/add-chisel
Add more durable chisel
2020-10-31 08:29:28 +01:00
Prometheus0000000 06dadab7de Add more durable chisel 2020-10-31 00:50:22 -04:00
Martin Robertz aed35c359e Merge pull request #4 from glowredman/1.7/release
Add some localizations
2020-10-11 15:59:03 +02:00
Martin Robertz 0b6a55c16c Merge pull request #5 from Prometheus0000/1.7/release
Remove chiseling to 2nd type of arcane stone
2020-10-11 12:13:58 +02:00
Prometheus0000 1ff93570da Remove chiseling to 2nd type 2020-10-10 21:26:34 -04:00
glowredman ce290e5e24 Add missing localizations (en_US) 2020-10-11 02:06:27 +02:00
glowredman 706a6cae90 Add missing localizations (en_PT) 2020-10-11 02:02:11 +02:00
glowredman 88118d11a3 Add missing localizations (en_GB) 2020-10-11 01:59:58 +02:00
glowredman c3f77411b0 Add missing localizations (de_DE) 2020-10-11 01:57:56 +02:00
DreamMasterXXL f5aaf31a8d bump version 2020-05-24 16:18:50 +02:00
Martin Robertz a239e7b44f Merge pull request #3 from Kiwi233/1.7/release
Update zh_CN.lang
2020-05-24 13:25:56 +02:00
[Kiwi233] 2f7c6e9e39 Update zh_CN.lang 2020-05-24 19:21:16 +08:00
Dream-Master dee61e51cd update gradle 2020-04-10 15:01:23 +02:00
Martin Robertz 6721248256 Merge pull request #2 from GTNewHorizons/gui_scroller
Bugfixes release
2020-02-28 20:09:32 +01:00
Léa Gris 7d74f1f564 edit changelog 2020-02-28 12:04:09 +01:00
Léa Gris f790fe3286 fix(texture): framed endstone
Fixed resource assets of framed endstone that caused error loading texture
2020-02-26 19:38:40 +01:00
Léa Gris 8fbcef9f7e fix(slabs): hide top slab items
Registering the top slab block to the ItemBlock.class
rather than the ItemCarvableSlab.class, prevents the top slab items
to show-up in NEI while maintaining compatibility with existing worlds.
2020-02-25 20:46:04 +01:00
Léa Gris 194361f92f fix(blocks): remove extraneous aluminum stairs
Removed extra broken aluminum stairs with no name, no texture, no recipe

Removed Items:
chisel:aluminum_stairs.3
chisel:aluminum_stairs.4
chisel:aluminum_stairs.5
chisel:aluminum_stairs.6
chisel:aluminum_stairs.7

Removed Blocks:
chisel:aluminum_stairs.3
chisel:aluminum_stairs.4
chisel:aluminum_stairs.5
chisel:aluminum_stairs.6
chisel:aluminum_stairs.7
2020-02-25 10:23:42 +01:00
Léa Gris d6405240b8 fix(i18n): aluminum stairs
add missing aluminum stairs translations keys
2020-02-24 22:09:57 +01:00
Léa Gris 883cdbccae fix(i18n): autochisel upgrades names
Fix code handling slots and upgrade localized names
Sync locale files
2020-02-24 21:39:09 +01:00
Léa Gris 71d6c20312 feat(input slot): add item validation
Add Item validation to input slot, so that only chisellable items can be inserted.
  Prevents insertion of random items and abuse of Chisels as a single-slot backpack.
2020-02-23 19:48:37 +01:00
Léa Gris 65a73227d9 refactor(carving): efficiency and modernize 2020-02-23 19:46:21 +01:00
Dream-Master 1d20f2e711 Revert "update gradle to get right version on build jar"
This reverts commit 7c809827bd.
2020-02-20 20:02:10 +01:00
Dream-Master d336b1bf97 update gitignore 2020-02-20 19:20:35 +01:00
Dream-Master 7c809827bd update gradle to get right version on build jar 2020-02-20 19:20:10 +01:00
Léa Gris eda6a1be08 Merge pull request #1 from GTNewHorizons/gui_chisel_mode
Chisel GUI: Improve mode selection button
2020-02-20 16:57:40 +01:00
Léa Gris 3549a4b71c version(patch): up from 2.9.6 to 2.9.7 2020-02-20 16:24:44 +01:00
Léa Gris dea49bb4d4 feature(gui): improve mode selection button
- Replace mode selection button's text, with layout pictures.
- Refactor some GUI implementations.
- Prepare GUI layout for a future TODO scrollbar.
2020-02-20 16:09:17 +01:00
Jason Mitchell b39df733c5 Update README 2020-02-02 09:32:27 -08:00
Jason Mitchell 72d234fcb6 Don't allow chiseling of TileEntity 2020-02-01 13:51:50 -08:00
Jason Mitchell d8fe69a22e Bump versions 2020-02-01 13:40:32 -08:00
tterrag1098 686b8a2209 Version 2.9.5 and update CTMLib shade version 2016-03-16 20:50:29 -04:00
tterrag1098 6a3111a7a5 Fix chisel shift-click corner case 2016-03-16 20:34:00 -04:00
tterrag f92d49b97b #83 Fix maintainer links in readme 2015-12-30 15:39:45 -05:00
tterrag 9270881d12 Merge pull request #65 from ErrorCraftLP/1.7/dev
Updated de_DE.lang
2015-12-23 11:55:17 -05:00
tterrag cab967290c 2.9.4 2015-12-04 21:34:15 -05:00
tterrag 034d18f495 #60 Fix crash when AE2 decorative quartz is disabled 2015-12-04 21:22:43 -05:00
tterrag 67f1341ed4 #433 Fix andesite/granite recipes not checking for disabled features 2015-12-04 21:13:41 -05:00
tterrag f181ff19f5 #69 Allow autochisel to function properly when upgrades are disabled
Conflicts:
	src/main/java/team/chisel/block/tileentity/TileEntityAutoChisel.java
2015-12-01 00:33:09 -05:00
ErrorCraftLP 1ce31f9fb0 Updated de_DE.lang 2015-11-28 14:49:55 +01:00
tterrag 40a54a7e6c Merge pull request #57 from TheCricket/1.7/dev
Make flammable stuff actually flammable
2015-11-17 16:36:57 -05:00
Cricket 4e88109167 Make flammable stuff actually flammable 2015-11-06 14:28:39 -08:00
tterrag1098 a9a82dff4c Add some text to crash logs about "Unable to lookup" errors
Not like anyone will read it but at least we can make them feel dumb
2015-11-02 02:10:38 -05:00
tterrag1098 e3d33c3612 Actually fix endstone issue without changing block name 2015-10-30 20:01:31 -04:00
tterrag1098 9b22b2a91c #52 End stone not chiselable 2015-10-30 19:48:53 -04:00
tterrag1098 0ebb15598b Add Chisel 2's 2.5.0 changelog for posterity's sake 2015-10-20 15:05:19 -04:00
tterrag1098 5c84ee2ade Update changelog and bump to 2.9.3 2015-10-20 15:03:07 -04:00
tterrag1098 5e17a34713 Pointless white beacon is now RAINBOW BEACON 2015-10-20 15:00:07 -04:00
tterrag1098 0da2d13496 Fix beacon pick block, sub blocks, and drop, and improve rendering
Conflicts:
	src/main/java/team/chisel/block/BlockCarvableBeacon.java
2015-10-20 14:59:57 -04:00
tterrag1098 db9d300a2d Fix some crashes from disabling certain features
Conflicts:
	src/main/java/team/chisel/proxy/ClientProxy.java
2015-10-20 14:57:38 -04:00
tterrag1098 3bbbeb8f62 Fix chisel not rendering correctly in caches etc. 2015-10-20 14:56:44 -04:00
tterrag1098 9a1f1bcc3b Queue the chisel GUI so that we can check if the chisel is still there
Conflicts:
	src/main/java/team/chisel/item/chisel/ChiselController.java
2015-10-20 14:56:26 -04:00
tterrag1098 76f9a09a7c #43 Top slabs are unnamed 2015-10-20 14:55:24 -04:00
tterrag1098 8d8691e545 Move to using FMLAT 2015-10-20 14:55:16 -04:00
tterrag 2150c1e28a Merge pull request #39 from mezz/1.7/dev
Add Forestry Stained Glass texture
2015-10-12 03:22:35 -04:00
mezz 911c3b63b4 Add Forestry Stained Glass texture 2015-10-12 00:12:05 -07:00
tterrag1098 08d8ce3fdd Better format on version in changelog 2015-10-04 05:01:04 -04:00
tterrag1098 acf92fa0f2 Version 2.9.2 2015-10-04 04:43:40 -04:00
tterrag1098 2b6f3346b6 Fix CurseGradle AGAIN 2015-10-04 04:28:37 -04:00
tterrag1098 5c6d3f90c7 Update CurseGradle version 2015-10-04 04:19:30 -04:00
tterrag1098 6405fd0d82 Update to CurseGradle and improve changelog HTML. Also do #25
Conflicts:
	build.gradle
2015-10-04 03:30:55 -04:00
tterrag1098 424e031e8d Add texture from #27, need some more to justify a new block... 2015-10-04 02:34:36 -04:00
tterrag1098 fb15125436 #13 Text rendering weird in chisel GUI without NEI present 2015-10-03 23:21:15 -04:00
tterrag1098 ca62dd0de3 Fix #22 with in-world chiseling, also add #3 creative in-world chiseling 2015-10-03 22:34:28 -04:00
tterrag1098 3fb1fc3972 Add safeguard for PlayerTickEvent being called with other player classes 2015-09-22 22:17:58 -04:00
tterrag1098 071a9e31a0 Switch position of SHA and build number 2015-09-22 14:58:31 -04:00
tterrag1098 43253801ac Get rid of _DEV on the file name 2015-09-22 14:50:09 -04:00
tterrag1098 68aea70990 Trying a better way to get the git branch for file names 2015-09-22 14:46:09 -04:00
tterrag1098 e28636d571 Improve glass side rendering logic
Conflicts:
	src/main/java/team/chisel/block/BlockCarvableGlass.java
2015-09-22 14:27:44 -04:00
tterrag1098 4649395ce5 Merge branch '1.7/dev' into 1.7/release 2015-09-16 01:52:30 -04:00
tterrag1098 ce44355dcf Add missing SideOnly annotation 2015-09-16 01:51:19 -04:00
tterrag1098 d3b45c097f Fix build.gradle typo 2015-09-15 20:27:11 -04:00
tterrag1098 d779ae75a1 Use HTML tags instead of newlines in changelog text 2015-09-15 20:25:57 -04:00
tterrag1098 061cdf92b2 This is 2.9.1... 2015-09-15 20:19:02 -04:00
tterrag1098 d0113f745d Update changelog 2015-09-15 20:14:26 -04:00
tterrag1098 45b1cfdb9e Chisel-2/Chisel-2#412 Improve how concrete works, no more "sinking" 2015-09-15 19:54:09 -04:00
minecreatr 8644dc7db6 Fix #8 2015-09-04 14:13:24 -07:00
tterrag1098 641055546d Merge pull request #6 from TheCricket/1.7/dev
if you are shifting you go backwards in left click now
2015-09-03 22:13:07 -04:00
Cricket 7d6a12e54f remove redundency 2015-09-03 18:55:20 -07:00
Cricket 493ac8f593 if you are shifting you go backwards in left click now 2015-09-03 18:09:21 -07:00
tterrag1098 91716cc506 Update README 2015-08-29 10:38:27 -04:00
tterrag1098 baf2d726b6 Clean up ChiselTabs imports 2015-08-28 00:30:57 -04:00
tterrag1098 53fde23f5b Fix TOPBOTSIDE not being possible...
Conflicts:
	src/main/java/com/cricketcraft/chisel/api/rendering/TextureType.java
2015-08-27 23:34:55 -04:00
tterrag1098 6a2c629441 #1 Remove MC version from mod version 2015-08-27 11:39:42 -04:00
tterrag1098 ab73b03883 Append branch name to version 2015-08-27 11:39:10 -04:00
tterrag1098 fbf838c23d Update changelog 2015-08-27 02:32:04 -04:00
tterrag1098 97da50cf99 Update CTMLib 2015-08-27 02:30:36 -04:00
tterrag1098 ab6fab4e64 Chisel-2/Chisel-2#403 Fix stair registration
Also fix packed ice stairs leaving water when broken
2015-08-26 23:36:18 -04:00
tterrag1098 2de05abcbc Bump API version 2015-08-26 18:38:03 -04:00
Drullkus c7ab22ec91 Add new concrete blocks and fix localization problem 2015-08-26 13:39:01 -07:00
tterrag1098 444ea65b14 Move to 2.9.0 and update to CTMLib's repackaging 2015-08-25 22:06:38 -04:00
tterrag1098 7fc372e335 Merge branch '1.7/dev' of https://github.com/Chisel-Team/Chisel into 1.7/dev 2015-08-24 00:48:49 -04:00
tterrag1098 c65e15e8d9 Fix buildscript for merged jenkins job 2015-08-24 00:46:43 -04:00
minecreatr d4cc2cb081 Merge branch '1.7/dev' of https://github.com/Chisel-Team/Chisel into 1.7/dev 2015-08-23 20:55:56 -07:00
minecreatr 5a3e9e385a Move CreativeTabs to api 2015-08-23 20:55:13 -07:00
tterrag1098 6a03f20e27 Fix changelog formatting (too late now, but meh) 2015-08-23 23:53:55 -04:00
tterrag1098 c8273814ab Fix property name for curseforge key 2015-08-23 03:19:59 -04:00
tterrag1098 f694b007ea Merge branch '1.7/dev' into 1.7/release
Conflicts:
	gradle.properties
2015-08-23 03:11:06 -04:00
tterrag1098 b02dbf1c05 Fix mistake in last commit, rename variations back to their old names 2015-08-22 23:19:07 -04:00
tterrag1098 379ccfd223 Port new voidstone textures over to animated 2015-08-22 23:12:14 -04:00
tterrag1098 578c83d3ed Merge branch '1.7/dev' of https://github.com/Chisel-Team/Chisel.git into 1.7/dev 2015-08-22 23:03:30 -04:00
tterrag1098 7caf83513a Update changelog 2015-08-22 23:03:09 -04:00
minecreatr f6c72b86da Update Version/Update Project ID 2015-08-22 19:42:53 -07:00
tterrag1098 f8e614eb3a Fix maven path/name 2015-08-22 21:56:48 -04:00
tterrag1098 70b4f557b4 endstone -> endStone (bad @Drullkus) 2015-08-22 16:49:03 -04:00
tterrag1098 042775efb3 Chisel2 -> Chisel in buildscript 2015-08-20 00:06:04 -04:00
tterrag1098 a478231145 Fix antiblocks not working without smooth lighting on 2015-08-19 20:41:15 -04:00
Drullkus 6cc469c683 Retextured two void variants 2015-08-19 20:03:01 -04:00
tterrag1098 09fb29a32c Yeah that's not working. Disable antiblock item rendering for now. 2015-08-19 01:40:13 -04:00
tterrag1098 8b7ad485ac Fix antiblocks not being fullbright in inventory 2015-08-19 01:30:49 -04:00
tterrag1098 c44dd6de81 VariationInfoBase should be passed the TextureType on the client 2015-08-18 23:02:35 -04:00
tterrag1098 470900b639 Fix remaining references to old package and clean up mcmod.info 2015-08-18 21:27:00 -04:00
tterrag1098 9574e05c29 Repackage to team.chisel (excepting API) 2015-08-18 20:40:55 -04:00
tterrag1098 7555e21144 Fix crash when trying to revert an unchiselable block 2015-08-16 15:45:22 -04:00
tterrag1098 25a1e7970d Fix beveled voidstone (animated) small texture 2015-08-15 16:03:13 -04:00
tterrag1098 c6e4f3592e Update CTMLib dep for fixed voidstone 2015-08-15 16:01:37 -04:00
tterrag1098 22613471e3 Fix item icon for CombinedCTM 2015-08-15 01:05:06 -04:00
minecreatr abd1629e70 Remove bad TCON Code 2015-08-11 10:24:31 -07:00
minecreatr 8245623261 Made EMC System more dynamic 2015-08-11 10:17:23 -07:00
tterrag1098 0d348cc769 Fix the Turkey bug (thanks immibis) 2015-08-10 01:19:58 -04:00
tterrag1098 05442f2d32 Fix enum formatting, remove some unused classes 2015-08-06 00:10:46 -04:00
MrBurd 2c9bbc233c Added a limestone retexture
birdstone. looks nicer
2015-08-06 00:02:39 -04:00
tterrag1098 444fdbfe19 Full cleanup and format. Remove all warnings. 2015-08-06 00:00:22 -04:00
tterrag1098 9ff61fe0c0 Merge branch 'dev' of https://github.com/Chisel-Team/Chisel-2.git into dev 2015-08-05 23:56:44 -04:00
tterrag1098 411d4f7dbe Delete PlayerSpecials and annoying logging 2015-08-05 23:55:42 -04:00
Drullkus 95214d5d67 Added more entries to lang 2015-08-05 12:22:22 -07:00
Drullkus 9e6fbce974 Forgot these. 2015-08-05 12:16:19 -07:00
Drullkus 04aae7f5f5 This should be it for the new blocks in the next chisel version. 2015-08-05 12:05:29 -07:00
tterrag1098 68f5fcaccb Merge branch 'dev' of https://github.com/Chisel-Team/Chisel-2.git into dev 2015-08-04 17:22:16 -04:00
tterrag1098 31c2662069 Add some missing SideOnly annotations to CombinedCTM 2015-08-04 17:21:55 -04:00
Drullkus 65ed6ae0ee Updated lib mods 2015-08-03 21:41:28 -07:00
Drullkus c1389d9de0 The End? 2015-08-03 21:32:39 -07:00
tterrag1098 ab3bd2ad9a Undo removal of compat blocks 2015-08-04 00:08:26 -04:00
tterrag1098 acdf5290f9 Support for v* in RCTM, change name of class to match 2015-08-03 18:46:46 -04:00
tterrag1098 7777d30aea #375 Fix bookshelf pick block 2015-08-01 14:16:03 -04:00
Drullkus e5d2c0ab71 Add Piping 2015-07-31 13:34:32 -07:00
tterrag1098 e9cf492eac Update CTMLib version 2015-07-31 16:19:18 -04:00
tterrag1098 296e4206e0 Fix RCTM 2015-07-31 16:13:53 -04:00
Drullkus 30df221ed6 Pushing debug textures for @tterrag1098 to use 2015-07-30 09:25:58 -07:00
Drullkus a410785b25 Fix derp with lang 2015-07-29 17:53:14 -07:00
Drullkus 3e5f6c89f8 Redid some textures. 2015-07-29 17:39:44 -07:00
Drullkus 93f2e7b95d TEXTUUUUURRRRES (Added more Endstone+Purpur variants) 2015-07-29 17:15:10 -07:00
Drullkus 98a2614b7c Added crafting/chiseling for 1.9 content; Will work on new variations for these 2015-07-29 12:45:29 -07:00
Drullkus 72ac69d3dd wait drull wat r u doin
drull pls
2015-07-29 10:31:34 -07:00
Drullkus 17af2b92e7 More Stuff 2015-07-28 21:45:21 -07:00
Drullkus e3774f752e Commit a pile of textures 2015-07-28 16:00:50 -07:00
Cricket bcc678665f Merge pull request #381 from ReneMuetti/patch-4
Adjust Translations
2015-07-27 14:49:26 -04:00
ReneMuetti a768b8e37a Update de_DE.lang 2015-07-26 11:38:03 +02:00
tterrag1098 05f3fd6056 Merge pull request #380 from ReneMuetti/patch-2
Update de_DE.lang
2015-07-26 01:52:08 -04:00
ReneMuetti c59e082cab Update de_DE.lang
adjusted translations
2015-07-26 07:38:47 +02:00
tterrag1098 34f8a5e65c Fix botania compat #379 2015-07-25 22:31:55 -04:00
Cricket 24b49ea3d5 Merge pull request #377 from ReneMuetti/patch-1
Create de_DE.lang
2015-07-25 14:53:05 -04:00
ReneMuetti bc4a987226 Create de_DE.lang
Added German Translation
2015-07-25 19:49:22 +02:00
Cricket 70c8fd1131 y u hate me so much 2015-07-17 10:44:44 -04:00
tterrag1098 8c79bd31b7 Bump CTMLib version 2015-07-15 00:47:29 -04:00
tterrag1098 e4f5733777 Add IConnectable for determining if other blocks can connect.
Version 2.5
2015-07-15 00:46:29 -04:00
tterrag1098 7517c25efe Remove copied code from ItemCarvablePumpkin 2015-07-15 00:37:16 -04:00
tterrag1098 9d9172fc75 Update to conform to new CTMLib layout. Bit hacky, unsure if final 2015-07-15 00:35:00 -04:00
tterrag1098 8ab3c7159b Merge branch 'dev' of https://github.com/TheCricket/Chisel-2.git into dev 2015-07-10 18:19:55 -04:00
tterrag1098 73d32b9fba Add back in RendererCTM 2015-07-10 18:19:32 -04:00
Cricket 46a15db2e7 Merge pull request #364 from minecreatr/dev
Removed Other mod support (moved to ChiselCompat)
2015-07-08 14:26:09 -04:00
minecreatr 082884dc7c Readded preinit call 2015-07-07 10:03:56 -07:00
minecreatr 4c2cc898f2 Readded preinit 2015-07-07 10:02:44 -07:00
minecreatr 8c74bcee70 Removed Other mod support (moved to ChiselCompat) 2015-07-07 09:39:27 -07:00
tterrag1098 7aed1f925a Merge branch 'dev' of https://github.com/TheCricket/Chisel-2 into dev 2015-07-03 17:15:40 -04:00
tterrag1098 cfc43dad71 Some more voidstone fixes 2015-07-03 17:14:58 -04:00
Cricket 36eabcb682 I blame @Drullkus 2015-07-03 12:53:30 -04:00
tterrag1098 2b3fc49cc6 We need ctmlib 1.0.1 2015-07-02 19:11:59 -04:00
tterrag1098 27287a7887 One more thing for the changelog 2015-07-02 18:56:17 -04:00
tterrag1098 7e7b527044 Update ctmlib version, mod version, and changelog 2015-07-02 18:55:29 -04:00
tterrag1098 742cb07783 Merge branch 'dev' of https://github.com/TheCricket/Chisel-2.git into dev 2015-07-02 18:05:51 -04:00
tterrag1098 a1647800fb Remove unneeded code 2015-07-02 18:05:19 -04:00
tterrag1098 1decde4a83 Working now! Proper ctm on all applicable voidstone variants.
@Drullkus you might want to take a look at the metalborder-ctm file, I
tried my best but it's not perfect
2015-07-02 18:04:59 -04:00
Drullkus 8650812df8 Upgraded Forge version, just to stay on top of things. 2015-07-02 14:14:19 -07:00
tterrag1098 b4e5f2cf76 Not working, looking for help 2015-07-02 15:07:22 -04:00
tterrag1098 be2a44e938 Trying the still textures for lavastone/waterstone 2015-07-02 00:08:29 -04:00
tterrag1098 fdc0171abe Fix chisel using its own render pass variable 2015-07-02 00:01:26 -04:00
tterrag1098 2bdb6ef9c0 Merge branch 'dev' of https://github.com/TheCricket/Chisel-2.git into dev 2015-07-01 23:42:08 -04:00
tterrag1098 77ee13d15c Fix bad GL in layered item render, fix water/lavastone textures 2015-07-01 23:41:52 -04:00
Cricket 5dc28005e9 How to controller was meant to be textured 2015-06-30 10:27:38 -04:00
Drullkus 2f42fe0839 Tweaked the Fake Controller submap manager to be a bit more friendly if other blocks use it. 2015-06-30 02:14:36 -07:00
Drullkus 7397c87ea7 Remove controller hack textures; added new UberWavy block and improved AE Controller textures 2015-06-30 01:53:28 -07:00
Cricket 10a7804324 proof of concept 2015-06-27 21:31:39 -04:00
Cricket 0b32e670c4 fixed the textures to please drullkus 2015-06-25 19:36:31 -04:00
Cricket 4e3ec7dd8b update gitignore 2015-06-25 19:13:13 -04:00
tterrag1098 62f5873a3a Merge branch 'dev' of https://github.com/TheCricket/Chisel-2.git into dev 2015-06-25 15:06:27 -04:00
tterrag1098 ef2b440d92 Fix beacon rendering. Not sure why this works but it does. 2015-06-25 15:06:12 -04:00
Cricket 1275723db0 im tired ok... 2015-06-25 14:38:40 -04:00
Cricket 7b26ac24e6 no spam 2015-06-25 14:37:37 -04:00
Cricket feb458a674 added console stuffz 2015-06-25 14:25:06 -04:00
Cricket c2851b53fe added some console stuffz 2015-06-25 14:23:17 -04:00
Cricket f3154d839d Can everyone check this for me? 2015-06-25 13:38:04 -04:00
Cricket 9989a5e76d spell fix 2015-06-23 15:34:06 -04:00
Cricket 15c4780af3 Merge remote-tracking branch 'origin/dev' into dev 2015-06-23 14:42:46 -04:00
Cricket 68e7042bd8 Done with #339 2015-06-23 14:42:37 -04:00
Cricket 009eebca01 Merge pull request #342 from Adaptivity/dev
Update en_GB.lang
2015-06-23 14:05:52 -04:00
Anton 40f9465443 Update en_GB.lang 2015-06-23 19:41:39 +03:00
Cricket 1b328f1348 Fixes #341 2015-06-23 10:54:15 -04:00
Cricket 60efdfe29a Merge pull request #340 from Adaptivity/dev
Update ru_RU.lang
2015-06-23 10:20:38 -04:00
Anton ce95feaed2 Update ru_RU.lang 2015-06-23 11:38:12 +03:00
Cricket 202f697185 Merge remote-tracking branch 'origin/dev' into dev 2015-06-22 17:47:12 -04:00
Cricket c21a105bbc Still better than 1.8 (You can localize all the things! #103) 2015-06-22 17:47:01 -04:00
tterrag1098 24c15c870e Update ctmlib to 1.0.0.3, this should fix the cirular reference issues 2015-06-22 16:28:12 -04:00
tterrag1098 8ad16f1a20 Fix maven publishing
test
2015-06-22 16:20:24 -04:00
tterrag1098 5cc3f2a3e0 Merge branch 'dev' of https://github.com/TheCricket/Chisel-2.git into dev 2015-06-22 16:07:00 -04:00
tterrag1098 114327445b Add ctmlib version 2015-06-22 16:06:22 -04:00
Cricket e0fea80ac9 Merge branch 'dev' of https://github.com/TheCricket/Chisel-2 into dev 2015-06-22 16:03:19 -04:00
Cricket d9447cbfba Beacons are done but they render oddly 2015-06-22 16:00:35 -04:00
tterrag1098 f724d6ff7b Fix import 2015-06-22 15:42:46 -04:00
tterrag1098 7e2157ebad Merge branch 'dev' into ctmlib 2015-06-22 15:42:01 -04:00
tterrag1098 12381c3a76 Fix this AE2 mess. This code is tested with stable9 and works fine. 2015-06-22 15:39:56 -04:00
Cricket 0d434ff9b3 fixed controllers and removed AE2 support 2015-06-22 14:21:22 -04:00
tterrag1098 444e5cfd8e Update buildscript to shade CTMLib (once it is on maven) 2015-06-22 13:58:38 -04:00
Cricket 69c5f5d07e Spelling error 2015-06-22 13:13:47 -04:00
Cricket 119afb8d7e Merge pull request #338 from nark31/KR_Translate
Update ko_KR.lang
2015-06-22 13:12:09 -04:00
Nark bda36c3e28 Update ko_KR.lang 2015-06-23 01:25:30 +09:00
Cricket c513924af7 👯 2015-06-21 22:34:17 -04:00
Cricket 09f12d5194 Controllers are done 2015-06-21 22:28:46 -04:00
Cricket 9b6e1495d4 Allows the changing the config in game 2015-06-20 22:18:13 -04:00
Cricket afce955cd1 Fixes #334 #333 and #330 2015-06-20 22:16:00 -04:00
Cricket a92b236ae8 Cleanup smbarbour's code 2015-06-20 21:54:17 -04:00
Cricket 3d03f41985 Merge branch 'Repair' of https://github.com/smbarbour/Chisel-2 into dev 2015-06-20 21:49:34 -04:00
Scott Barbour a3f7f217ac Implement repairs 2015-06-19 18:10:44 -05:00
tterrag1098 c014e93d8d This should work, not tested 2015-06-13 01:27:10 -04:00
tterrag1098 f5101a279b Unfinished don't touch 2015-06-13 00:20:18 -04:00
Cricket 37ad501b2a added minecreatr and a missing texture 2015-06-06 20:32:25 -04:00
Cricket 4951fd31ad That should fix ee3 2015-06-04 13:49:58 -04:00
Cricket 7bdc0487f0 Update PlayerSpecials.java 2015-06-03 19:49:53 -04:00
tterrag1098 fcec71a52d Move over rendering stuff to ctmlib 2015-06-03 17:43:03 -04:00
Cricket af59d14bc5 Merge remote-tracking branch 'origin/dev' into dev 2015-06-02 11:33:54 -04:00
Cricket 4a2eced4aa its was missing a SideOnly 2015-06-02 11:33:44 -04:00
tterrag1098 ed5162104e Fix reversion upgrade implementation 2015-06-02 00:46:23 -04:00
Cricket d64a379b41 I have no idea why this gets NPE's all the time 2015-06-01 18:24:52 -04:00
Cricket 55aac1030b Revert "pushing broken code, its fun to look at though"
This reverts commit 49c9a7a1a5.
2015-06-01 17:06:53 -04:00
Cricket 4ba78dd9b7 pushing broken code, its fun to look at though 2015-06-01 14:15:05 -04:00
Cricket 86ef50c2fc fix the boo boo 2015-05-30 17:54:51 -04:00
Cricket 4d7c3424d4 Merge branch 'dev' of https://github.com/TheCricket/Chisel-2 into dev 2015-05-30 17:36:29 -04:00
Cricket 46bea5a0a3 Those are the textures for it, I can't figure out the CTM logic. Plus I made it so carvable glow can be colored by the dye or regular 2015-05-30 17:34:02 -04:00
Drullkus c688c0fe37 Merge pull request #325 from Kodos-Atoz/patch-1
Made Hex Plating Blastproof
2015-05-29 19:45:36 -07:00
Kodos Atoz a48de38fdb Made Hex Plating Blastproof
Assuming I did this correctly.
2015-05-29 21:39:03 -05:00
tterrag1098 cb1c69d850 Merge branch 'dev' of https://github.com/TheCricket/Chisel-2.git into dev 2015-05-29 15:52:27 -04:00
tterrag1098 841ad0b9aa Fix stat additions 2015-05-29 15:52:03 -04:00
Cricket 11e9b23c50 Merge remote-tracking branch 'origin/dev' into dev 2015-05-29 15:27:52 -04:00
Cricket 39e7715f37 it was oreDicted wrong but #317 is fixed from it I guess 2015-05-29 15:27:43 -04:00
tterrag1098 354ad4fe76 Do not register oredict before registering the block 2015-05-29 15:13:44 -04:00
tterrag1098 5e25640338 @Drullkus this texture is not unused 2015-05-29 15:08:03 -04:00
Cricket ee10932174 Ever wondered how many blocks you have chiseled? 2015-05-29 14:17:50 -04:00
Cricket 7aed838c66 Fix the gitignore 2015-05-29 13:40:02 -04:00
Cricket a49c139db7 Actually registers the 1.8 oreDicts properly 2015-05-29 13:35:22 -04:00
Cricket 7590127641 Merge remote-tracking branch 'origin/dev' into dev
commit 1a47c78556.

Conflicts:
	src/main/java/com/cricketcraft/chisel/Features.java
2015-05-29 13:29:54 -04:00
warlordjones 7046590e33 Register 1.8 oredicts properly. 2015-05-28 20:57:22 +01:00
warlordjones 743004abcf Register 1.8 stones in oredict. (Closes #305) 2015-05-28 20:46:26 +01:00
tterrag1098 da1faaac90 Fix item rendering textures being incorrect 2015-05-28 15:08:49 -04:00
tterrag1098 e5efdb7d02 Fix column rendering crashing 2015-05-28 14:19:43 -04:00
tterrag1098 74bb2b700d Better fix for #312, null checking for the chisel item in the GUI 2015-05-28 13:42:07 -04:00
warlordjones daf95276af Dirty workaround to fix #312
Don't open chisel GUI if the block clicked on has a tile entity. Most TE's have GUIs anyway, so this shouldn't be noticable.

Also ignore /world and /config from workspace
2015-05-28 18:04:36 +01:00
tterrag1098 c92b1f567c Improve README file, move some stuff to the new CONTRIBUTING file 2015-05-27 22:51:56 -04:00
tterrag1098 5b20e0728a Implement new voidstone animation, expose some more API methods 2015-05-27 04:25:56 -04:00
Drullkus da64d4a803 Hades animations seem a tad bit fast 2015-05-27 01:15:47 -07:00
Drullkus 926283fe62 Added Downsized Hades animation 2015-05-27 01:14:15 -07:00
Drullkus b4024c33b1 Voidstone animation! \o/ 2015-05-27 01:10:05 -07:00
Drullkus f4ce9a1cfe These appear not to be on remote Repo. Committing. 2015-05-27 01:09:02 -07:00
Cricket 95e554952b Merge pull request #322 from EXTER7/dev
Fix EE3 compatibility.
2015-05-24 08:32:22 -07:00
EXTER 6c204c891b Fix EE3 compatibility. 2015-05-23 23:34:24 -04:00
tterrag1098 994e336c04 Fix ice/packed ice rendering and slipperiness 2015-05-23 22:39:33 -04:00
tterrag1098 8a4f926eac Imperial blocks should be registered to nation to keep backwards compat 2015-05-23 22:21:07 -04:00
tterrag1098 a452279a38 Remove all special pillar blocks, they were unneeded 2015-05-23 22:20:09 -04:00
tterrag1098 09065b25d6 Fix CTMV crash 2015-05-23 21:16:23 -04:00
tterrag1098 20e217a5d0 Whoops, that wasn't meant to be deleted... 2015-05-23 20:52:06 -04:00
tterrag1098 9683773dd0 Fix backwards CTMH logic. Closes #320 2015-05-21 01:52:40 -04:00
tterrag1098 7985cbb61b Improve r* algorithm, and fix r16 2015-05-21 01:38:05 -04:00
tterrag1098 db21d14d26 Clean up v* and r*, fix v4 rendering 2015-05-21 01:19:45 -04:00
tterrag1098 cea216e5b9 Remove unused fancy config 2015-05-20 22:15:43 -04:00
tterrag1098 738bf785fa Fix rebel/imperial/whatever blocks, fix leaves fix registerVariations 2015-05-20 22:15:19 -04:00
tterrag1098 4c4bb91dc7 Fix rebel/imperial/whatever blocks 2015-05-20 22:03:51 -04:00
tterrag1098 1adc91c852 Delete unused autoutils classes 2015-05-20 21:41:48 -04:00
Cricket b9e5b946c5 Added EE3 EMC values
Conflicts:
	src/main/java/com/cricketcraft/chisel/Features.java
2015-05-15 18:02:52 -04:00
Drullkus c41b45ebea Curating the Chisel P5: Added some unused textures; added variation order to some blocks.
For reasons.
2015-05-15 18:00:49 -04:00
Drullkus 304dac277b Curating the Chisel P4.1: Removed overloading 2015-05-15 18:00:26 -04:00
Drullkus 3c934327de Hopefully this bandaid helps 2015-05-15 14:35:33 -07:00
Drullkus f15b883dfd I reject your changes to the nation blocks and substitute my own! 2015-05-15 10:20:22 -07:00
Drullkus 7e2f6ebb4c Curating the Chisel P5: Added some unused textures; added variation order to some blocks.
For reasons.
2015-05-15 09:46:50 -07:00
Drullkus 303ea3ff8b Curating the Chisel P4.1: Removed overloading 2015-05-15 09:44:49 -07:00
Cricket 31f5451a60 Added EE3 EMC values 2015-05-14 20:50:46 -04:00
Drullkus 135fd68c4b Curating the Chisel P3: Added variation ordering 2015-05-14 14:10:02 -07:00
Drullkus d2f49b70e6 Curating the Chisel P2.3.1: Removed commented-out code. 2015-05-14 13:17:45 -07:00
Drullkus 3d08b320c1 Curating the Chisel P2.3: Merged sandstone_scribbles into sandstone 2015-05-14 13:15:22 -07:00
Drullkus 1f27230d59 Curating the Chisel P2.2: Picked and moved 3 sandstone variants into use. 2015-05-14 13:02:03 -07:00
Drullkus 0158956106 Curating the Chisel P2.1: Oops, forgot a part for the sandstone 2015-05-14 12:09:40 -07:00
Drullkus 670d29853b Curating the Chisel P2: Reorganizing the sandstone folder. May implement these someday ;) 2015-05-14 10:48:31 -07:00
Drullkus 8789421b5e Curating the Chisel P1: Spicing up both Hexplating blocks 2015-05-14 10:44:30 -07:00
Drullkus ef49cf2232 Remove purple texture animation thing. :( 2015-05-13 21:42:29 -07:00
Drullkus df0963e138 Fix stupid mistake on commenting out AE Snakestone 2015-05-13 18:26:08 -07:00
Drullkus db0991753f Fix anim reference 2015-05-13 18:24:33 -07:00
Drullkus 0ef42c2327 Add new texture, update mods 2015-05-13 15:31:39 -07:00
Drullkus f2e086712a Killing the fake AE Snakestone for favor of new one. 2015-05-13 13:02:58 -07:00
tterrag1098 31328b0ac1 Remove generics from ISubmapManager to prevent serverside errors 2015-05-13 13:19:24 -04:00
tterrag1098 62a38e9816 Fix same error in CTMV... 2015-05-12 13:30:23 -04:00
tterrag1098 f1a1b27971 Fix CTMH crash 2015-05-12 13:08:27 -04:00
tterrag1098 f6b67163b0 Make CTM extendable and make ctm field of RenderBlocksCTM nonstatic 2015-05-09 21:07:33 -04:00
tterrag1098 8a5645760b Add block param to createRenderContext. Set render bounds from blocks.
Closes #311
2015-05-09 20:07:28 -04:00
tterrag1098 b2a394741f Move RenderBlocksColumn to API (for now), bump API version. Closes #314 2015-05-01 19:44:51 -04:00
tterrag1098 17f2a16bd3 Merge branch 'dev' of https://github.com/TheCricket/Chisel-2.git into dev 2015-05-01 17:37:31 -04:00
tterrag1098 49e4329646 Chiseled netherrack will now sustain fire on top of it 2015-05-01 17:37:10 -04:00
Drullkus 7e66627cd4 These were sitting in my local content, I should commit them 2015-04-28 19:30:40 -07:00
tterrag1098 40b0ea7ac0 Merge branch 'dev' of https://github.com/TheCricket/Chisel-2.git into dev 2015-04-26 22:04:14 -04:00
tterrag1098 37e77f00f8 Hopefully last try at #309... 2015-04-26 22:04:05 -04:00
Cricket 014a8d4455 Merge pull request #310 from autopsychorhythmia/patch-1
Update zh_CN.lang
2015-04-26 19:03:10 -07:00
Erlkönig 7e618de338 Update zh_CN.lang 2015-04-27 10:00:40 +08:00
tterrag1098 f0cb6555a8 More SideOnly safety, should fix #309 again 2015-04-26 21:46:18 -04:00
tterrag1098 fbab0eb9d8 Fix #308 #309 Crashes on startup 2015-04-26 20:33:39 -04:00
tterrag1098 ad13b2a39e Merge branch 'remove_carvablevariation' into dev
Conflicts:
	src/main/java/com/cricketcraft/chisel/api/IMC.java
2015-04-26 02:43:43 -04:00
tterrag1098 b3555e52f9 Move RenderBlocksCTM to API, add ClientUtils 2015-04-26 02:35:16 -04:00
tterrag1098 87072102f8 Get rid of the ugly RenderBlocksCTMFullbright, some other refactors 2015-04-26 02:30:39 -04:00
tterrag1098 5ad6f5c98e Fix some typos and unused code 2015-04-24 17:07:00 -04:00
tterrag1098 47abdbbc10 Move CarvableHelper to API 2015-04-24 17:05:12 -04:00
tterrag1098 3013e263a2 RenderBlocksCTM will now respect the render bounds (read below)
This behavior allows for certain renderers to no longer be needed
(carpet floor) and for some rendering to be possible (CTM slabs).

A single version of marble slab has been implemented with CTM as an
example, we will move over the rest of the textures once this is
finalized.
2015-04-24 16:43:30 -04:00
tterrag1098 be4158e9a6 Fix IMC referencing Chisel.class for the mod ID 2015-04-24 13:23:58 -04:00
tterrag1098 3999d31342 The nuke has landed! (Remove CarvableVariation) 2015-04-24 03:51:38 -04:00
tterrag1098 41877f3543 Completely modularize submap and RenderBlocks managing
- Fix RenderBlocksCTM ignoring the renderMin/Max values
- Add custom handler for carpet to avoid hardcoding
- TODO blocks that use existing blocks as icons, e.g. ice stairs
2015-04-24 03:38:37 -04:00
tterrag1098 80149390b6 Begin CarvableVariation nuke, have hit some roadblocks in CTM rendering 2015-04-23 20:33:29 -04:00
tterrag1098 56d90a8321 Some class renaming, move TextureSubmap to API and improve its methods 2015-04-23 17:31:25 -04:00
tterrag1098 59d5a9d259 Move ISubmapManager to its own API file 2015-04-23 16:45:28 -04:00
tterrag1098 0b0ef5846f #301 crash invalid with marble pillar metadatas 2015-04-23 16:40:44 -04:00
tterrag1098 59dcf10846 Merge branch 'ctm_refactor2' into dev 2015-04-23 00:35:02 -04:00
tterrag1098 dffb73c5b4 CTM refactor is complete, officially dubbing next version 2.4 2015-04-23 00:34:37 -04:00
tterrag1098 c0f342f094 Fix accidental reversion of CarvableHelper code during merge 2015-04-23 00:27:42 -04:00
tterrag1098 31ea512b48 Javadoc typo 2015-04-22 22:04:27 -04:00
tterrag1098 87ce7b34c3 Add missing Dir file 2015-04-22 21:57:39 -04:00
tterrag1098 9b0b5fc592 Merge branch 'dev' into ctm_refactor2
Conflicts:
	src/main/java/com/cricketcraft/chisel/Features.java
	src/main/java/com/cricketcraft/chisel/carving/CarvableHelper.java
	src/main/java/com/cricketcraft/chisel/config/Configurations.java
2015-04-22 21:56:10 -04:00
tterrag1098 bf79e8ff97 Merge branch 'master' into ctm_refactor2 2015-04-22 21:47:55 -04:00
tterrag1098 be707a89fe Clean up CTM documentation and move to API 2015-04-22 21:47:44 -04:00
tterrag1098 3b62791a0f Implement Fake AE Controller with the new ISubmapManager system 2015-04-22 21:04:40 -04:00
tterrag1098 c647044006 Implement ISubmapManager for custom IIcon handling 2015-04-22 18:00:56 -04:00
tterrag1098 2c8d88a639 Massively clean up CTM code, much more readable now 2015-04-22 17:52:03 -04:00
warlordjones 12efb9ff76 Fix #289 2015-04-12 17:41:35 +01:00
warlordjones bb7d6b9693 Fix #288 2015-04-10 01:01:36 +01:00
CptSpaceToaster 18e96bbf8e Merge pull request #275 from nark31/KR_Translate
Update ko_KR.lang
2015-04-09 08:22:07 -04:00
Nark 7b195124da Update ko_KR.lang
add Fake Controller
2015-04-09 18:57:39 +09:00
Drullkus a58e8bee86 Rename some things... 2015-04-08 13:38:41 -07:00
Drullkus eb3f8f6d1d Change the cracked stone anim 2015-04-08 13:31:44 -07:00
Drullkus b85bebd972 Finalize hacky AE Falsetto Controller 2015-04-08 10:45:00 -07:00
Drullkus 90a700b73b Thanks, outdated code. @tterrag 2015-04-08 10:36:15 -07:00
Drullkus c402af9430 AE Falsetto Controller hack 2015-04-08 10:26:50 -07:00
Nark dff25bb536 Update ko_KR.lang
Update mistranslate
2015-04-08 22:25:57 +09:00
Nark 39c3861f50 Update ko_KR.lang 2015-04-08 22:23:02 +09:00
Drullkus 22e86710e3 Circuit variations for all of your Futurama needs! 2015-04-07 22:35:59 -07:00
Drullkus cf6313960d Fix strobe animation 2015-04-07 21:31:46 -07:00
Drullkus c1ccba9f70 Add generic animations folder... Just organization. 2015-04-07 21:22:51 -07:00
CptSpaceToaster 8998a151eb Merge branch 'dev' of https://github.com/TheCricket/Chisel-2 into dev 2015-04-06 21:51:18 -04:00
CptSpaceToaster 64f507d136 final edits to changelog 2015-04-06 21:50:32 -04:00
tterrag1098 4bcfeb1889 Fix issues with present clientside desync 2015-04-06 21:44:37 -04:00
tterrag1098 7c9f8eca2d Merge branch 'dev' of https://github.com/TheCricket/Chisel-2.git into dev 2015-04-06 21:39:35 -04:00
tterrag1098 a71ec55104 Fix issues with presents and chunk boundaries / orphan chunks 2015-04-06 21:39:20 -04:00
CptSpaceToaster cab23954ef Updated changelog to reflect our pirate roots 2015-04-06 19:56:09 -04:00
Drullkus fa3dad02a6 Add last ARcane stone variant 2015-04-06 16:52:21 -07:00
CptSpaceToaster fc87567681 updated changelog and version number for release 2015-04-06 19:48:55 -04:00
Drullkus e8b4ae928a New arcane stone types 2015-04-06 14:29:40 -07:00
tterrag1098 97fdd64f93 Add entries for new blocks in ChiselBlocks 2015-04-06 15:21:08 -04:00
warlordjones 0e9af0a72b Implement some more of the unused textures as factory variants
Only two textures I can't find a home for
2015-04-06 19:24:21 +01:00
warlordjones e73d4df314 Implement the 'chrono' texture as a glass variant 2015-04-06 17:52:15 +01:00
warlordjones a18b938429 Delete some useless textures from the unused folder 2015-04-06 17:31:50 +01:00
tterrag1098 ac59109af3 Merge branch 'dev' of https://github.com/TheCricket/Chisel-2.git into dev 2015-04-06 01:16:25 -04:00
tterrag1098 6699005c14 Allow chisel torches to be FMP microparts 2015-04-06 01:16:14 -04:00
warlordjones d483727a09 Prevent mobspawns on antiblocks as Cpt mentioned he wanted to do in #169 2015-04-05 17:00:03 +01:00
warlordjones a5e71b4c71 Workaround to prevent crashes with invalid pillar meta. Fixes #277 2015-04-05 16:45:10 +01:00
warlordjones be7ba84d09 16-colour runic voidstone - closes #218 2015-04-05 16:34:08 +01:00
tterrag1098 9b6e30937c Fix mossy config 2015-04-02 14:52:26 -04:00
tterrag1098 2e5d57cb4e #286 Fix dedicated server crash 2015-04-01 18:34:03 -04:00
tterrag1098 608c7d787f Add code to prevent GUI staying open if chisel item is not in hand 2015-03-31 17:16:07 -04:00
Nark 2940607690 Update ko_KR.lang
Add Iron/Gold blocks and to Oredict
2015-04-01 00:52:56 +09:00
warlordjones 9d8429be2e Fix #283 2015-03-30 22:55:28 +01:00
tterrag1098 784e5b8994 Merge branch 'dev' of https://github.com/TheCricket/Chisel-2.git into dev 2015-03-28 14:28:04 -04:00
tterrag1098 9518eeedf7 Vastly improve block loading speed by removing getResource calls 2015-03-28 14:27:54 -04:00
CptSpaceToaster 7b4cae9267 Pushing out the fix for IMC 2015-03-28 00:42:24 -04:00
tterrag1098 3f61447481 Fix broken IMC handling 2015-03-27 15:49:28 -04:00
Nark 7dbfe2f14a Update ko_KR.lang 2015-03-25 14:48:55 +09:00
CptSpaceToaster e7e405116a re-organized changelog to be a bit more clear 2015-03-24 23:08:53 -04:00
CptSpaceToaster 1742a56272 changelog for 1.3.8 2015-03-24 22:58:36 -04:00
CptSpaceToaster 64ff02b03f updated version number 2015-03-24 21:59:52 -04:00
CptSpaceToaster bba11be15c Merge branch 'master' into dev 2015-03-24 21:45:14 -04:00
CptSpaceToaster 9c0f20180d Merge pull request #267 from emustee15/ReverseTextureFix
Backwards Connected Texture Fix (Issue #190)

Sorry for the delay... Thank you so much for being patient
2015-03-23 00:41:39 -04:00
tterrag1098 e974dd7fbe Fix Tcon/Botania compat crashing on load 2015-03-19 20:37:20 -04:00
Cricket b81db2197d Dont touch tterrag :P 2015-03-19 16:16:21 -04:00
emustee15 b4d2aa7c07 Backwards Connected Texture Fix (Issue #190)
The wrong directions are used for reversing textures. As a result, some
textures for the laboratory blocks appeared incorrect. This will fix
issue 190. A single digit change fixes both directions, as direction 4
did not need to be reversed, but was, and direction 5 needed to be
reversed, but wasn't.
2015-03-18 21:04:00 -04:00
warlordjones 3af00b1668 Packed ice pillar recipe. Fixes #261. Muh bad. 2015-03-13 15:13:41 +00:00
warlordjones fbe8cc7e87 Fix #262. Test yo commits, Drullkus! 2015-03-13 15:11:34 +00:00
Cricket 1a4b855862 Update README.md 2015-03-13 05:34:01 -07:00
Drullkus fb2fb5fecf Merge remote-tracking branch 'origin/dev' into dev 2015-03-11 13:44:17 -07:00
Drullkus 30e722075e Add Iron/Gold blocks and to Oredict, Recolored Antiblocks a little 2015-03-11 13:44:02 -07:00
Cricket dc3cb7e091 Added a banner 2015-03-09 20:55:51 -04:00
Drullkus f956d44569 Forgot to comment this out. 2015-03-09 15:52:52 -07:00
Drullkus 856ac20d1c Untested - Added TCon Chisel blocks 2015-03-09 15:46:16 -07:00
Drullkus 0b0b993267 Implement new 1.8 textures 2015-03-08 18:12:17 -07:00
Drullkus c5be9810a2 Commit new textures for the 1.8 stones 2015-03-08 17:56:44 -07:00
Drullkus ad923c1b8b This didn't get committed? 2015-03-08 14:07:02 -07:00
Drullkus 23c193a962 Merge remote-tracking branch 'origin/dev' into dev 2015-03-08 14:06:01 -07:00
Drullkus 1a3ef0c2fc Added Large Hex Plating 2015-03-08 14:05:34 -07:00
Cricket 7eff82962a You make special snow golems now 2015-03-08 16:48:05 -04:00
Cricket 7cc8e76119 You can wear pumpkins now 2015-03-08 15:23:35 -04:00
Drullkus ee250b9040 Fix up Masonry textures 2015-03-08 09:59:38 -07:00
Cricket 89019aa6c2 Addons can now use CTM 2015-03-08 12:32:45 -04:00
Cricket ea09ed332f RoyCurtis: Fixed chiselled bookshelves dropping invalid books 2015-03-08 12:17:55 -04:00
Mango 500773f51d More Shinglesssss!!!
More more more!
2015-03-07 20:02:35 +01:00
Mango 042b165155 1 more Shingle Texture added
Added another Shingle Textures, Whoop Whoop!
2015-03-07 20:02:34 +01:00
Drullkus 2be703ec98 Add .psd files to git ignore 2015-03-07 10:32:51 -08:00
Drullkus f338509b1b Fix derp in lang file 2015-03-07 09:22:03 -08:00
Drullkus cd502623bf Quick fix to Nation 2015-03-07 08:46:29 -08:00
Drullkus 823619aac0 Er, idk if this is the actual lib folder...? :S 2015-03-07 08:27:16 -08:00
Drullkus 941ada9cf4 Nobody's getting my Thaumcraft Deobf jar! >:P 2015-03-07 08:21:43 -08:00
Drullkus 04c7575d88 Add Imperial+Rebel Blocks... :P 2015-03-07 08:03:26 -08:00
Mango 18f43eba1c Description started #Shingles
Made a small description for the Shingle Textures, more are comming
soon!
2015-03-07 12:47:13 +01:00
Mango 1b1130ce3b Shingle Textures
Here are the Shingle Textures.
2015-03-06 23:15:16 +01:00
Cricket 50ba17f264 They just need descriptions 2015-03-04 16:40:02 -05:00
tterrag1098 09c445cf5c Improve chisel container/slot code to prevent crashes/dupes
Fixes #257 #236
2015-03-04 13:25:33 -05:00
CptSpaceToaster 03b48c0e94 This should be all of the changes I made AFTER I ran the bogus merge, clearying out tterag's work 2015-03-04 00:27:19 -05:00
CptSpaceToaster 4c6e799acd prepared CTM-Renderer for upcoming changes' 2015-03-01 12:52:10 -05:00
CptSpaceToaster 8a329cd3f0 And there it goes 2015-03-01 12:44:09 -05:00
tterrag1098 e88b6a4bd8 Fix crash without TC installed 2015-03-01 11:45:01 -05:00
CptSpaceToaster 5e2d9cef06 More sudoku... hopefully this is good enough documentation to move forward 2015-03-01 11:42:42 -05:00
CptSpaceToaster 6f74646869 SUDOKU 2015-03-01 01:33:43 -05:00
tterrag1098 4d8df118f8 Force chisel durabilities to be short values, reduce obsidian default 2015-02-28 14:12:08 -05:00
tterrag1098 f19f5be0fa Move TC API into correct folder and switch to using the entire API 2015-02-28 10:33:55 -05:00
warlordjones f265703a3d Example Thaumcraft Aspect support, for cobblestone & cobblestone wall
There is probably a clean way to implement support for all chisel blocks, I'm just not sure how yet.
2015-02-28 14:43:26 +00:00
warlordjones becbb6bcad Add the thaumcraft API (Slimmed down) 2015-02-28 14:32:52 +00:00
Cricket fb2915c91c Fixed leaf naming 2015-02-27 17:18:25 -05:00
warlordjones 7a7433c31e Project Red Marble Bricks compat (Fixes #214) 2015-02-27 18:57:31 +00:00
warlordjones 61a70c7468 Custom particles respect the particles setting in the vanilla options menu (Fixes #240) 2015-02-27 15:22:14 +00:00
tterrag1098 be539034fc Fix imports 2015-02-25 04:24:11 -05:00
Cricket 2fb1ba020a Merge pull request #245 from yesimwearingpants/dev
Added Search to CreativeTabs
2015-02-24 20:58:13 -05:00
yesimwearingpants f42359f9db Fixed Derp 2015-02-24 20:20:31 -05:00
yesimwearingpants 6fca6cf501 Added Search To CreativeTabs 2015-02-24 20:03:04 -05:00
tterrag1098 4a3fcdb711 Fix stair placement and tooltip bugs. Closes #235 2015-02-23 13:05:24 -05:00
tterrag1098 d9a6a42d09 Improve dev special rendering system 2015-02-23 02:29:10 -05:00
tterrag1098 353b6b6fa7 Builds will now always use the BUILD_NUMBER sysenv var if it is present 2015-02-23 01:08:34 -05:00
tterrag1098 172bbacaa0 Merge branch 'dev' of https://github.com/TheCricket/Chisel-2.git into dev 2015-02-23 00:27:23 -05:00
tterrag1098 699f419592 Remove extra PlayerSpecials registration that crashes servers 2015-02-23 00:26:42 -05:00
Drullkus 036c10c9c8 Dehackify things 2015-02-22 18:34:42 -08:00
Drullkus 60981e3ee8 Add Hex Armor Plating 2015-02-22 17:25:20 -08:00
Drullkus c87b48f3a1 Massive Fan finished and finished unification of all technical blocks 2015-02-22 10:21:45 -08:00
Drullkus 52ff5db188 Added Massive Fan; hacky implementation of Techical2 & Tech3 into Tech chisel group 2015-02-22 08:25:53 -08:00
warlordjones 0ff785943f Fix #237
Fortunatly the check isn't hardcoded :D
2015-02-22 02:42:24 +00:00
warlordjones 777a140931 Fix #231 (The minorest of bugs :P) 2015-02-22 02:29:43 +00:00
warlordjones 3d0d2b2fe2 Prevent RC Invisiblock related crashes (Closes #238) 2015-02-22 01:50:45 +00:00
warlordjones f0d3c5a7c1 Fix #232 2015-02-22 01:46:08 +00:00
warlordjones 65f18502b1 Fix #222 2015-02-22 01:37:51 +00:00
tterrag1098 95996bd203 Add in 1.8 recipes for the 1.8 blocks 2015-02-21 18:36:26 -05:00
tterrag1098 16c7bd7bc2 Merge branch 'dev' of https://github.com/TheCricket/Chisel-2.git into dev 2015-02-21 02:55:16 -05:00
tterrag1098 3e84c6498c Make sure to call canChisel from autochisel 2015-02-21 02:54:59 -05:00
CptSpaceToaster 99dc2ffc6d all of the CTM faces at least render with proper lighting... bue some of the top faces don't notice that they should connect to neighboors 2015-02-21 01:20:53 -05:00
CptSpaceToaster 46fe099fbf working on the CTM refactor 2015-02-20 00:32:05 -05:00
CptSpaceToaster bfcac6cf68 Merge branch 'dev' of https://github.com/TheCricket/Chisel-2 into dev 2015-02-19 23:27:38 -05:00
CptSpaceToaster 379472423e fix for gradle outright dying on IDEA... we'll see what this stomps on later 2015-02-19 23:27:24 -05:00
tterrag1098 6a3f2dbe5e Undo formatting changes 2015-02-19 19:15:11 -05:00
tterrag1098 4a8963a80b Merge remote-tracking branch 'origin/Cricket' into dev
Conflicts:
	src/main/java/com/cricketcraft/chisel/Chisel.java
	src/main/java/com/cricketcraft/chisel/Features.java
	src/main/java/com/cricketcraft/chisel/config/Configurations.java
	src/main/resources/assets/chisel/textures/items/chisel_obsidian.png
2015-02-19 19:11:16 -05:00
Cricket dd53798785 Forgot the texture... 2015-02-19 17:14:38 -05:00
Cricket 530239fd72 Dev stuff is complete 2015-02-19 17:13:16 -05:00
tterrag1098 3f2e39ceb8 Begin CTM refactor. Submaps working, lighting not so much 2015-02-18 15:27:57 -05:00
tterrag1098 ba3f7eb57a Update version to 2.3.7 2015-02-16 12:45:30 -05:00
tterrag1098 5bf5ce0169 Merge branch 'dev' of https://github.com/TheCricket/Chisel-2.git into dev 2015-02-16 12:40:26 -05:00
tterrag1098 94dd9fc149 Fix left clicking a metal block incorrectly changing the type 2015-02-16 12:40:08 -05:00
tterrag1098 2181631c79 Merge pull request #229 from Adaptivity/patch-1
Update ru_RU.lang
2015-02-15 01:55:25 -05:00
Anton fa4181ede5 Update ru_RU.lang 2015-02-15 09:49:40 +03:00
tterrag1098 65b10dd0e3 Fix present shift clicking 2015-02-14 22:15:45 -05:00
tterrag1098 bc1be0b4fa Update changelog 2015-02-14 21:27:46 -05:00
tterrag1098 510a6fe0a7 Fix present localizations 2015-02-14 21:22:11 -05:00
Cricket 23fb1d0d7a Version Bump 2015-02-14 21:07:20 -05:00
Cricket f2ef3a740d Heh 2015-02-14 21:01:53 -05:00
Drullkus 828abb3ec8 Merge remote-tracking branch 'origin/dev' into dev 2015-02-13 18:44:36 -08:00
Drullkus 50bd7b5a02 Add Metal block names to Lang file.
THIS IS GUESSWORK AND NOT TESTED
2015-02-13 18:44:07 -08:00
Cricket e1d2afccd5 I have 2 done, I am not that creative 2015-02-12 21:33:58 -05:00
tterrag1098 6a4619ddae Whoops left a sysout 2015-02-11 22:53:05 -05:00
tterrag1098 364c1a4b44 Merge branch 'dev' of https://github.com/TheCricket/Chisel-2.git into dev 2015-02-11 22:04:11 -05:00
tterrag1098 ffc4ca9308 Fix reamining present issues:
- Fix dupes
- Fix bounding boxes
- Fix inventory order being swapped in the GUI
- Fix in-world chiseling not working
- Fix losing items when metadata changes
2015-02-11 22:03:53 -05:00
Cricket f46b42e924 Merge pull request #215 from AtomicBlom/brickTexturing
change V4 and V9 textures to tiling instead of staircasing
2015-02-11 05:44:51 -08:00
CptSpaceToaster 63ea14f44e Added 16 configuration options to control the color overlay of HexBlocks 2015-02-08 23:37:56 -05:00
Steven Blom 0425ac5b4d Favour for Drullkus, change V4 and V9 textures to tiling instead of stair-casing 2015-02-09 10:10:04 +10:30
tterrag1098 385c692e1b Merge branch 'dev' of https://github.com/TheCricket/Chisel-2.git into dev 2015-02-08 16:18:11 -05:00
tterrag1098 64128a241f Fix antiblocks not being chiselable even with config set to true
Closes #213
2015-02-08 16:18:01 -05:00
Drullkus 6d689a486b Thing 2015-02-07 14:44:05 -08:00
Drullkus 09c94fff14 Merge branch 'dev' of https://github.com/TheCricket/Chisel-2 into dev 2015-02-07 14:43:08 -08:00
Drullkus 5c99de382e Fix the patterning on variation. It will now properly please your eyes! 2015-02-07 14:36:53 -08:00
warlordjones 355119b424 Fix packed ice pillars being transparent (#189) 2015-02-07 16:19:43 +00:00
warlordjones 6533df5d82 Add fallback icons for all tabs. Fixes #202 2015-02-07 16:13:19 +00:00
Drullkus 213f588d70 ffs @TheCricket 2015-02-06 22:27:15 -08:00
Drullkus 5ecb45f357 Merge remote-tracking branch 'origin/dev' into dev 2015-02-06 22:25:29 -08:00
Drullkus 97ee6bfd74 Commit working Malfunction fan stuff, and do other stuffs
Also patched the build.gradle to play nicely with IntelliJ 14.
2015-02-06 22:25:09 -08:00
tterrag1098 ac41278bfe Add compat for Railcraft 9.5.X. Fixes #203 2015-02-06 23:11:51 -05:00
tterrag1098 723425a471 Add IMC for adding/removing variations and registering oredict 2015-02-06 21:47:17 -05:00
Cricket 19658240ba Fixes #187 Everything else is harvestable by fists 2015-02-06 21:20:23 -05:00
Cricket 02e10cf00a Fixes #200 2015-02-06 21:13:36 -05:00
Cricket a96df6a782 Fixes #199 2015-02-06 21:03:17 -05:00
Cricket e11287859d Fixes the drullkus derp 2015-02-06 20:50:26 -05:00
Drullkus a504475ed1 Commit new Masonry Textures, will implement them later 2015-02-04 22:02:59 -08:00
Drullkus d49c48f7eb Merge remote-tracking branch 'origin/dev' into dev 2015-02-04 21:02:49 -08:00
Drullkus 89cb42ca39 Commit new malfunctioning fan tex 2015-02-04 21:02:18 -08:00
Cricket 43347a0461 Merge remote-tracking branch 'origin/dev' into dev 2015-02-04 20:20:10 -05:00
Cricket 21dffb0b3f Added config option to chisel across colors 2015-02-04 20:20:01 -05:00
Cricket 8ff62f185c Merge pull request #198 from BigXplosion/recolor
Allow some blocks to be colored via the forge recolourBlock method
2015-02-02 16:14:14 -08:00
big_Xplosion fd301b569c Allow some blocks to be colored via the forge recolourBlock method 2015-02-02 22:23:38 +01:00
tterrag1098 c39277bef6 Fix crash with null facade next to columns 2015-01-31 14:38:50 -05:00
tterrag1098 b35a08bd06 Clean up @Drullkus' mess 2015-01-31 01:23:27 -05:00
Drullkus 4b6c85f565 Commit more textures for metals. Untested;stuffs may get broken 2015-01-30 22:06:41 -08:00
tterrag1098 662a9e7326 Fix some issues with ice/icestairs/icepillars/packedice (#189) 2015-01-29 16:58:45 -05:00
tterrag1098 70bc5071a8 Fix auto chisel unloc name 2015-01-27 19:59:41 -05:00
Cricket 496ac181da WIP 2015-01-27 09:56:28 -05:00
tterrag1098 d27492a555 Implement metal blocks and clean up some unloc names 2015-01-27 01:45:37 -05:00
Drullkus 17ebcf525c Merge remote-tracking branch 'origin/dev' into dev 2015-01-26 21:43:39 -08:00
Drullkus f62c4ff62b Add textures for metals :p 2015-01-26 21:43:19 -08:00
tterrag1098 f12c2e5dcf Add missing file 2015-01-27 00:03:21 -05:00
Drullkus 418996a716 Merge branch 'dev' of https://github.com/TheCricket/Chisel-2 into dev 2015-01-26 21:01:19 -08:00
Drullkus c6a96fd21c Stuff 2015-01-26 20:12:10 -08:00
tterrag1098 e1b28f7336 Merge branch 'dev' of https://github.com/TheCricket/Chisel-2.git into
dev

Conflicts:
	src/main/java/com/cricketcraft/chisel/Features.java
2015-01-26 22:42:59 -05:00
tterrag1098 8faa70ba46 Rewrite presents. Still a bit WIP, needs sounds and lid animation 2015-01-26 22:41:48 -05:00
Cricket be06c852e8 Yeah that's a typo 2015-01-26 17:23:34 -05:00
Cricket 049b0fb3bb Recipe fix for #180 2015-01-26 16:58:51 -05:00
tterrag1098 a7eec93e56 Fix reversed logic for picking maven folder 2015-01-25 20:21:35 -05:00
tterrag1098 a36e0df65b Update version to 2.3.5 and update changelog 2015-01-25 20:13:29 -05:00
tterrag1098 415cf2213a Fix copper feature 2015-01-25 20:11:43 -05:00
tterrag1098 59e950c9d7 Not sure what happened here, fix build.gradle again 2015-01-25 19:10:24 -05:00
tterrag1098 9a4e8b1bdf Fix maven project name 2015-01-25 18:47:15 -05:00
tterrag1098 45aa110095 Fix build.gradle for maven 2015-01-25 18:29:37 -05:00
tterrag1098 1574ed2c95 Update changelog 2015-01-25 16:24:19 -05:00
warlordjones 70ec42f12c Allow chiseling between oredictionaried copper blocks.
In prep for adding blocktypes for copper.
2015-01-25 20:40:46 +00:00
warlordjones 3bd4a62e72 Implement new Yellow bricktype 2015-01-25 20:40:46 +00:00
tterrag1098 f1b5779acb Improve changelog formatting and fix wrong maven dir property name 2015-01-25 15:25:19 -05:00
tterrag1098 c4c7185452 Update version to 2.3.4 and update changelog 2015-01-25 15:18:53 -05:00
tterrag1098 06f2aff70c Fix typo causing some oredict blocks to not be chiseleable in world
Closes #177
2015-01-25 15:08:29 -05:00
tterrag1098 a4f779ef0f Add config to prevent chiseling between vanilla leaf types.
Closes #171
2015-01-24 23:32:51 -05:00
tterrag1098 b031b25ab4 Fix chiseling stained glass always showing white variations.
Closes #174
2015-01-24 23:22:55 -05:00
tterrag1098 7139d40807 Fix #176 bad aged brick texture
@Drullkus please feel free to fix my bad art :D
2015-01-24 22:35:03 -05:00
tterrag1098 ef86c3f4ae Fix typo in granite descriptions 2015-01-24 22:04:47 -05:00
tterrag1098 fa2dee3d77 Fix all worldgen issues. Use 1.8 textures. Implement 1.8 block pillars.
Closes #168
Closes #159
Closes #130
2015-01-24 22:03:30 -05:00
tterrag1098 eb83ecf7ec Fix #175 problem with vertical CTM on x-axis bottom end textures 2015-01-24 16:25:24 -05:00
tterrag1098 e4b1a79017 Add javadocs to ICarvingRegistry 2015-01-24 16:10:49 -05:00
tterrag1098 8f435bb3ee Fix crash on left click chisel when custom variations have been added 2015-01-24 14:09:00 -05:00
tterrag1098 03bf8e0724 Merge branch 'dev' of https://github.com/TheCricket/Chisel-2.git into dev 2015-01-24 00:56:58 -05:00
tterrag1098 76c0afc815 Fix up issues with removing variations 2015-01-24 00:56:52 -05:00
CptSpaceToaster 04024a354c You didn't see anything 2015-01-23 22:49:35 -05:00
CptSpaceToaster cb6e8ae6a8 I think this is what we needed... no idea 2015-01-23 22:43:02 -05:00
tterrag1098 8bf33959e2 Change up how removing groups is done, should fix most issues 2015-01-23 22:35:21 -05:00
tterrag1098 89b384bdf6 Add breaking animation support to auto chisel renderer 2015-01-23 18:46:31 -05:00
tterrag1098 a5b19d564a Fix breaking animation on advanced CTM renderers 2015-01-23 18:19:11 -05:00
tterrag1098 909b86894b Switch back to a standard hashmap to prevent crashes 2015-01-23 16:36:22 -05:00
tterrag1098 c0f683ca3a Fix javadoc typo 2015-01-23 16:23:36 -05:00
tterrag1098 8467b1cbb8 Add group removal support. Add player argument to canChiselBlock 2015-01-23 16:09:40 -05:00
tterrag1098 2321c2e636 Add ICarvingRegistry, still need to document properly 2015-01-22 21:47:30 -05:00
tterrag1098 bfabad129f Add variation removal support to API, add ICarvingRegistry 2015-01-22 21:33:43 -05:00
tterrag1098 760c0c8864 Merge branch 'master' into dev 2015-01-21 16:44:47 -05:00
tterrag1098 edf632763c displayName should work now
Thanks @AbrarSyed :D
2015-01-21 16:44:14 -05:00
tterrag1098 9b064c59ef Move IAdvancedChisel to base api package 2015-01-21 15:15:23 -05:00
tterrag1098 bef19466cf Add ability for chisels to define their own chisel modes 2015-01-21 14:02:47 -05:00
tterrag1098 14288766e4 Fix build crash 2015-01-21 11:43:35 -05:00
tterrag1098 aeebccf83e Fix crash when left clicking blocks that are not in a carving group 2015-01-21 11:40:00 -05:00
tterrag1098 3ac7bd79e7 Add display name for curseforge uploads 2015-01-21 10:33:36 -05:00
tterrag1098 e7cb954667 Fix extra newlines in changelog 2015-01-21 09:58:24 -05:00
tterrag1098 4ef5c9c4bc Fix bad curseforge project ID 2015-01-21 08:44:32 -05:00
tterrag1098 8ca74532d3 Update changelog 2015-01-21 02:30:00 -05:00
tterrag1098 f71fddf01e Left click chiseling will now go through oredict group members as well 2015-01-21 01:44:20 -05:00
tterrag1098 a38b7c4f23 Fix antiblock recipes, and all dye-using recipes now support oredict 2015-01-20 20:39:14 -05:00
tterrag1098 8a539dfeaa Merge branch 'master' into dev
Conflicts:
	changelog
2015-01-20 20:05:29 -05:00
tterrag1098 3f9f2955da Update preparing for 2.3.2, fix antiblocks being chiselable 2015-01-20 20:04:46 -05:00
Cricket 61fc228dd3 oopsy 2015-01-20 19:20:07 -05:00
Cricket 952e98402b Update changelog 2015-01-20 18:44:37 -05:00
Cricket 3c057ee8ff Merge remote-tracking branch 'origin/master' 2015-01-20 18:44:03 -05:00
Cricket 378453692b Recipes added 2015-01-20 18:43:51 -05:00
tterrag1098 76a378d12c More IChiselItem cleanup and organize imports 2015-01-20 18:26:14 -05:00
Cricket 9d91c64485 Removed Inventory and Slot parameters 2015-01-20 18:13:59 -05:00
Cricket df7eb813c0 Merge pull request #163 from Adaptivity/updaterurulang
Update ru_RU.lang
2015-01-20 11:08:23 -08:00
Adaptivity 281343c019 Update ru_RU.lang 2015-01-20 18:03:16 +03:00
tterrag1098 09d72a44b8 Fix jackolanterns not emitting light 2015-01-19 21:18:48 -05:00
tterrag1098 f6213c9f37 Chisels once again have extra attack damage 2015-01-19 21:12:11 -05:00
tterrag1098 d4bd181ef1 Add some lifecycle logging to Features 2015-01-19 18:59:25 -05:00
Cricket e2586546cc I just removed my bit 2015-01-19 17:07:53 -05:00
tterrag1098 e910d06c02 Remove debug spam 2015-01-19 11:27:52 -05:00
tterrag1098 5b4af2ee49 Allow only the diamond chisel to have modes. Fix breaking sounds up more 2015-01-19 11:23:11 -05:00
tterrag1098 5188e39b57 Fix up issues with breaking chisels (Fixes #162) 2015-01-19 10:01:08 -05:00
tterrag1098 4de7ef8190 IChiselItem items no longer need to worry about playing the sound fx.
Remove ChiselMode from API packages
2015-01-18 16:17:04 -05:00
tterrag1098 a3f8c357e3 Finish chisel modes 2015-01-18 15:58:13 -05:00
tterrag1098 89299f6e27 Begin chisel mode implementation 2015-01-18 14:40:39 -05:00
tterrag1098 86713ab449 Remove IChiselMode 2015-01-18 13:05:25 -05:00
tterrag1098 469ae5828b Fix #150 Chisel breaking after single use 2015-01-18 12:22:53 -05:00
tterrag1098 db00a49d6f Merge pull request #154 from Adaptivity/patch-1
Update ru_RU.lang
2015-01-17 19:58:46 -05:00
warlordjones 2db7249358 Workaround to prevent crashing with rendering ice pillars that no longer have a variation. 2015-01-17 19:25:11 +00:00
warlordjones 65bbfafce9 Oops 2015-01-17 14:53:24 +00:00
warlordjones c5578680fe Add requested O2 warning sign 2015-01-17 14:51:29 +00:00
warlordjones eb325e6c9e Full Block Paperwall Recipe 2015-01-17 14:21:47 +00:00
warlordjones 3596538387 Update Ice pillar descs 2015-01-17 14:20:42 +00:00
warlordjones 2778bbbbd2 Full Block Version of Paperwall, as requested 2015-01-17 14:07:18 +00:00
Anton 90279aea27 Update ru_RU.lang 2015-01-17 10:39:05 +03:00
tterrag1098 63af23ebff Fix formatting issues in last commit 2015-01-16 22:45:57 -05:00
tterrag1098 ab2b3e8421 Fix crash with Twilight Forest and add helpful exceptions to Carving 2015-01-16 22:43:19 -05:00
warlordjones 0b9142f3ea Solution for #141. Smashing Rock had the same entity ID as Ball O' Moss 2015-01-16 13:48:12 +00:00
Drullkus 96d103ceb3 Merge pull request #149 from primetoxinz/patch-1
Added forgotten abyssal stone for Railcraft
2015-01-15 15:17:06 -08:00
Tyler 7d0a63aba0 Added forgotten abyssal stone for railcraft 2015-01-15 18:10:02 -05:00
tterrag1098 edfc431305 Remove colored sand. Cleanup CarvableHelper to add merged group support 2015-01-15 15:21:34 -05:00
tterrag1098 761ae74f87 Fix #148 AutoChisel not dropping inventory correctly 2015-01-15 14:55:08 -05:00
tterrag1098 1e1e9f75c3 Fix material and harvest level of bookshelves 2015-01-15 13:50:37 -05:00
tterrag1098 a4eb685360 Fix #144 Chisel in autochisel rendering wrong in fast graphics 2015-01-15 13:43:40 -05:00
tterrag1098 14da0862d4 Fix some blocks being unchiselable (ex. stone) 2015-01-15 13:36:53 -05:00
tterrag1098 1ecc11ea0e Merge branch 'dev' of https://github.com/TheCricket/Chisel-2.git into dev 2015-01-15 13:09:41 -05:00
tterrag1098 2b867c86f6 Refactor ICarvable to receive world and pos references. Closes #147. 2015-01-15 13:09:34 -05:00
Drullkus 2dbf6a770e Add jenkins to readme 2015-01-15 09:27:12 -08:00
tterrag1098 db91b04387 Add NEI "recipes" button to chisel GUI 2015-01-15 09:20:31 -05:00
tterrag1098 4bcaa62ca7 More API cleanup. ICarvableVariation no longer extends Comparable. 2015-01-15 06:20:22 -05:00
tterrag1098 a110c4e8ef Clean up in Carving API, add support for new API classes in Carving 2015-01-15 06:06:07 -05:00
tterrag1098 f0e11d8eee Clean up stair place code 2015-01-15 04:58:17 -05:00
tterrag1098 27a15d6792 Fix WAILA compat. Update to WAILA 1.5.8a. Fix stair block descriptions. 2015-01-15 04:40:31 -05:00
tterrag1098 685b6fd2d1 Merge branch 'dev' of https://github.com/TheCricket/Chisel-2.git into dev 2015-01-15 03:33:17 -05:00
tterrag1098 f56075a72b Add missing package-info file, add API jar task 2015-01-15 03:32:58 -05:00
tterrag1098 12816c2364 Merge remote-tracking branch 'origin/registry_refactor' into dev 2015-01-15 03:18:44 -05:00
tterrag1098 1ea5d821d7 Rewrite how Carving stores variants and groups 2015-01-15 03:16:02 -05:00
Drullkus ed7cd3d39c Add another two thaumium block variants 2015-01-14 21:22:59 -08:00
tterrag1098 36b03d15fc Begin refactor, make CarvingVariation and CarvingGroup interfaces 2015-01-15 00:03:43 -05:00
Drullkus be58acd783 Add two new Thaumium blocks 2015-01-14 20:59:20 -08:00
tterrag1098 3f4ab6fef1 Remove debug code in chisel 2015-01-14 21:34:37 -05:00
tterrag1098 531bb186b1 Add IChiselItem#canChisel for stacks in the GUI 2015-01-14 21:33:43 -05:00
tterrag1098 b426c847ef Add canOpenGui to IChiselItem 2015-01-14 21:11:33 -05:00
tterrag1098 b634f654e0 Fix dupe in chisel shift clicking 2015-01-14 21:03:22 -05:00
tterrag1098 7de1d514be Fix IChiselItem javadoc 2015-01-14 19:55:05 -05:00
tterrag1098 6540317cae Fix up how stairs are registered 2015-01-14 19:15:26 -05:00
tterrag1098 83c3d1c85c Fix some corner cases in slab placement 2015-01-14 06:23:52 -05:00
tterrag1098 bdfc938e52 Merge the two IConfigureNEI classes into one 2015-01-14 05:45:12 -05:00
tterrag1098 623fa9fddb Merge remote-tracking branch 'origin/nei' into dev 2015-01-14 05:43:18 -05:00
tterrag1098 8a4bd436ec Merge pull request #142 from Tonius/nei
Fixed up NEI handler
2015-01-14 05:42:09 -05:00
tterrag1098 416a779fee Fix warning sign recipe and bad naming on top slabs 2015-01-14 05:38:17 -05:00
Tonius 70b29cd506 Merge remote-tracking branch 'github/dev' into nei 2015-01-14 11:36:22 +01:00
Tonius bd9ee17813 Fixed up NEI handler 2015-01-14 11:32:59 +01:00
Tonius 93465884ab Un-hardcoded smooth stone chiseling and made it configurable 2015-01-14 11:10:29 +01:00
tterrag1098 80f6bbf156 Make all background slot images overlays, only render if slot is empty 2015-01-13 21:37:04 -05:00
tterrag1098 c8621250f9 Hide top slabs from NEI 2015-01-13 21:01:10 -05:00
tterrag1098 938b79ae46 Fix #140 sand has incorrect sound 2015-01-13 20:51:54 -05:00
tterrag1098 f5ceedce4d Merge branch 'dev' of https://github.com/TheCricket/Chisel-2.git into dev 2015-01-13 20:50:44 -05:00
tterrag1098 c251f31885 Fix all issues with ghost items on the autochisel render 2015-01-13 20:50:39 -05:00
Drullkus e34561700c Merge remote-tracking branch 'origin/dev' into dev 2015-01-13 17:40:54 -08:00
Drullkus ae713adcd8 Update horribly outdated mods in Gradle.properties 2015-01-13 17:34:59 -08:00
tterrag1098 64144bf08d Merge branch 'dev' of https://github.com/TheCricket/Chisel-2.git into dev 2015-01-13 20:17:26 -05:00
tterrag1098 6d1530b23e Fix top slabs (Closes #127) and rewrite slab placement code 2015-01-13 20:17:20 -05:00
warlordjones 01cd474a3f Autochisel Upgrade Recipes, (mostly) as suggested by Neodark7
The Stacks upgrade probably needs to be made more expensive than the speed upgrade, otherwise the speed upgrade is redundant
2015-01-13 21:02:54 +00:00
tterrag1098 ccee6533f4 Fix chisel being able to be moved when the GUI is open. Closes #128 2015-01-13 05:59:51 -05:00
tterrag1098 54514b6b72 Add NEI handler class 2015-01-13 03:07:32 -05:00
tterrag1098 0e47131155 Start NEI handling. Unfinished. 2015-01-13 03:06:06 -05:00
tterrag1098 6ea5b7c453 Add new class 2015-01-13 01:46:29 -05:00
tterrag1098 6156da7e35 Clean up warnings and packages 2015-01-13 01:45:52 -05:00
tterrag1098 d83704c87c Clean up description localization (Fixes #104). Fix cloud rendering. 2015-01-13 00:50:10 -05:00
tterrag1098 5046b1081b Fix FMP integration. All normal blocks are now auto registered.
Fixes #89
Fixes #93
2015-01-12 23:52:53 -05:00
tterrag1098 f2efba365b Implement even more extended GUI and fix shift clicking 2015-01-12 20:42:32 -05:00
Drullkus 5545117666 Updated GUI files 2015-01-12 17:26:03 -08:00
tterrag1098 53c13c48c4 Implement new chisel GUI 2015-01-12 19:24:29 -05:00
tterrag1098 0420b1655c Fix chisel in autochisel GUI texture not lining up with the actual item 2015-01-12 18:01:56 -05:00
tterrag1098 2250f3ba5b Fix items hanging around on auto chisel render. Closes #136 2015-01-12 17:54:32 -05:00
warlordjones 120832e49a I don't code gud. 2015-01-12 22:35:40 +00:00
warlordjones 347eaebb8d Convert Ice pillars to CTM method
Also make Packed Ice use textures from the ice folder, no sense in duping the folder and adding packed to the front

TODO: Convert the old pillars to new on world load?
2015-01-12 22:25:54 +00:00
warlordjones 450ded186e Fix blood rune descs 2015-01-12 20:50:40 +00:00
warlordjones 78cea0d219 Foundation for Chiselable Blood Brick 2015-01-12 20:29:46 +00:00
warlordjones 9534c4e696 Some tallow varieties 2015-01-12 19:07:56 +00:00
warlordjones 65763f53c8 Turn down the brightness on Arcane Tiles a bit, they stood out too much IMO 2015-01-12 19:03:02 +00:00
warlordjones e16fb3ecf6 Nicer Voidstone Quarters Texture 2015-01-12 19:01:17 +00:00
warlordjones 12f53e97aa Convert Voidstone Pillar to the CTM Pillar type 2015-01-12 19:01:06 +00:00
warlordjones ade3f770ce Refactor some remaining things that oddly contained "Marble" 2015-01-12 18:36:42 +00:00
tterrag1098 8f28a2e6ee Fix out of order road line descriptions 2015-01-12 03:46:51 -05:00
tterrag1098 8d52b6b498 Fix road line typo 2015-01-12 03:38:59 -05:00
tterrag1098 aaba479164 Fix #118 Cannot open auto chisel GUI with upgrade in hand 2015-01-12 02:06:31 -05:00
tterrag1098 e30538a853 Fix #121 can't place torches and doors on hex plating.
Fixed as it's going to get
2015-01-12 02:04:23 -05:00
tterrag1098 57c80c052e Fix antiblocks not being glowy when smooth lighting is off 2015-01-12 01:33:30 -05:00
tterrag1098 e2ea56da1d Fix warning sign rendering 2015-01-12 00:26:08 -05:00
tterrag1098 648f57ed6a Finalize auto chisel animation. Closes #135 2015-01-12 00:19:05 -05:00
tterrag1098 1f253247f5 Fix dev buildscript 2015-01-11 23:49:55 -05:00
tterrag1098 e5b72a2805 Fix buildscript for dev builds and unify version variable 2015-01-11 23:30:10 -05:00
CptSpaceToaster 64fb6be33a an orange texture was blue... oops 2015-01-11 22:59:18 -05:00
CptSpaceToaster 2432174093 Finalizing AntiBlock prototype 2015-01-11 22:37:51 -05:00
CptSpaceToaster 36fc0ed5f2 Merge branch 'dev' into antiblocks 2015-01-11 22:30:31 -05:00
CptSpaceToaster f659a8ca23 Included Resources for AntiBlock Prototypes 2015-01-11 20:55:21 -05:00
CptSpaceToaster 9005839065 Prototyped Antiblocks 2015-01-11 20:53:24 -05:00
tterrag1098 c2ae74755b Fix blocks without subtypes not working in auto chisel 2015-01-11 19:32:56 -05:00
tterrag1098 7ec151f16a Fix road line textures. 2015-01-11 19:32:46 -05:00
tterrag1098 54b9272732 Once again forgot the new files 2015-01-11 18:23:30 -05:00
tterrag1098 f0affb7243 Finish autochisel animation 2015-01-11 18:23:07 -05:00
tterrag1098 48380bee4a Add new files 2015-01-11 17:23:04 -05:00
tterrag1098 28f8a41d0e Merge branch 'dev' of https://github.com/TheCricket/Chisel-2.git into dev 2015-01-11 17:21:59 -05:00
tterrag1098 c6d86a69f6 Fix autochisel inventory syncing and change autochisel block bounds 2015-01-11 17:21:53 -05:00
warlordjones 28547c55b8 Update the Autochisel recipe 2015-01-11 21:56:20 +00:00
warlordjones d0e133ea63 Switch Road Lines to meta 2015-01-11 21:54:36 +00:00
warlordjones 7357f49138 #Warderp returns 2015-01-11 21:23:09 +00:00
Drullkus 811251ae34 Merge remote-tracking branch 'origin/dev' into dev 2015-01-11 13:21:40 -08:00
Drullkus 9a35b1af4d ??? 2015-01-11 13:21:05 -08:00
warlordjones 8cce402420 Implement more road lines - Double White, Yellow and Double Yellow 2015-01-11 21:19:33 +00:00
Drullkus d86177347c Merge remote-tracking branch 'origin/dev' into dev 2015-01-11 13:19:30 -08:00
Drullkus b26ddfd019 Add Poptart Rainbow, push files around 2015-01-11 13:18:53 -08:00
warlordjones 75f14fc543 Import Organisation 2015-01-11 20:59:16 +00:00
warlordjones f24811a40b Fix what the Road Line pr broke 2015-01-11 20:58:14 +00:00
warlordjones 54e59e6490 Redo changes to 'Chisel.java' from my branch 2015-01-11 20:56:07 +00:00
Arona Jones 8bf352ee82 Merge branch 'revert' into dev 2015-01-11 20:54:24 +00:00
Cricket 73648bae93 Merge pull request #134 from Mitchellbrine/patch-1
Added the tool required to break road lines (Fixes #78)
2015-01-11 12:51:10 -08:00
warlordjones 6589c1b881 Lang for Blood Rune Blocks 2015-01-11 20:29:41 +00:00
warlordjones 1fbd41aaba Fix the Blood Magic Blank Rune compat blocks 2015-01-11 20:25:34 +00:00
warlordjones 4243c40d0a Fix more derping... 2015-01-11 19:48:43 +00:00
Mitchellbrine 4c9a2d4bd7 Implemented the config options into the RoadLines
Using a tool is disabled by default and the tool and tool harvest level can be changed in the config
2015-01-11 11:45:00 -08:00
Mitchellbrine 500d2f6c01 Added the config options for the road lines in Configurations 2015-01-11 11:42:50 -08:00
warlordjones e87b996e4f I r a stupid. #Blame Derpjones 2015-01-11 19:41:41 +00:00
warlordjones b0ddda617e Fix #133
Also refactor BlockLightstoneCarvable to BlockCarvableGlowstone (Consistency)
2015-01-11 19:40:35 +00:00
Mitchellbrine 0ce5e507dc Added the tool required to break road lines
Set it as a wood pickaxe. Still breaks instantly, but it cannot be broken in Adventure Mode. Can be configured to any tool you desire (except shears, in which case, just make it implement IShearable).
2015-01-11 11:28:24 -08:00
warlordjones 8f64cd7d61 Some Thaumium Block concepts 2015-01-11 19:26:21 +00:00
warlordjones f603757af2 Add the thaumcraft textures to the folders, for easy location when making textures 2015-01-11 19:07:56 +00:00
warlordjones 03fd354ac1 Setup basic infrastructure for Chiselable Thaumium, Tallow and Amber 2015-01-11 19:03:34 +00:00
warlordjones 89d408a840 Make BlockCarvableGlow emit light at the same level as a redstone torch 2015-01-11 18:34:08 +00:00
warlordjones 1a4682d07a More work at underping the warning sign lighting 2015-01-11 14:17:35 +00:00
warlordjones f9e18f3f95 Rework the warning sign background texture.
Also prevent lightbulbs smoking (it was bad for their health)
2015-01-11 13:36:13 +00:00
warlordjones bb2492aa21 Reimplementing Warning Signs & Torches 2015-01-11 12:03:19 +00:00
Arona Jones 01178142b4 Merge pull request #131 from TheCricket/dev
Update Revert Branch
2015-01-11 11:53:49 +00:00
Drullkus 473d25b475 #Blame Derpkus 2015-01-10 17:18:23 -08:00
tterrag1098 ed4fbf3d30 Forgot to register diamond chisel renderer 2015-01-10 18:53:42 -05:00
tterrag1098 a94d2ce0e5 Add Drullkus changes 2015-01-10 17:28:25 -05:00
tterrag1098 de0b478160 Move all block registration to preinit to prevent creative tab issues 2015-01-10 17:21:16 -05:00
warlordjones 8dfe1df73d Stop the mod tab crashing 2015-01-10 21:09:20 +00:00
warlordjones b83f3080ed Fix the broken tab icon for the Wood Tab 2015-01-10 20:37:38 +00:00
tterrag1098 643c5a87f7 Merge branch 'master' of https://github.com/TheCricket/Chisel-2.git 2015-01-10 15:29:44 -05:00
tterrag1098 173365402a Fix no modded blocks loading 2015-01-10 15:29:37 -05:00
Cricket ab037b6800 Merge pull request #126 from warlordjones/master
Quite a number of Language Fixes/Improvements
2015-01-10 11:29:52 -08:00
Arona Jones 36068fac77 Desc improvements for Tyrian 2015-01-10 18:24:39 +00:00
Arona Jones 58203550d0 Fix the errant space in Voidstone pillar names 2015-01-10 18:19:09 +00:00
Arona Jones d6732cf067 Fix two of the limestone blocks having the same description 2015-01-10 18:02:55 +00:00
Arona Jones aafcf60329 Add "planks" to the wood plank names 2015-01-10 17:51:00 +00:00
Arona Jones ea83933bc5 Bookshelf desc improvements 2015-01-10 17:46:42 +00:00
Arona Jones bed90adc77 Consistency edit 2015-01-10 17:36:10 +00:00
Arona Jones e005dfccc0 Some factory block description improvements 2015-01-10 17:35:49 +00:00
Arona Jones e9e4f2f542 Some Grim/Holystone language fixes 2015-01-10 17:34:13 +00:00
Arona Jones 44e772a059 Fix some fantasy block descriptions 2015-01-10 17:32:23 +00:00
Arona Jones 18969cb55d Replace all instances of 'weared' with 'worn' 2015-01-10 17:31:15 +00:00
tterrag1098 c39d5ca203 Reverse render order of glow block textures 2015-01-10 05:26:35 -05:00
tterrag1098 e6fa56eb23 Add null check for block 2015-01-10 04:51:48 -05:00
tterrag1098 b0889fc2aa Add new variation compat. Mostly untested. 2015-01-10 04:39:10 -05:00
tterrag1098 d5402082ab Merge branch 'master' of https://github.com/TheCricket/Chisel-2.git 2015-01-10 04:22:09 -05:00
tterrag1098 144f71d67a Remove hardcoded chisel item check in autochisel, change to IChiselItem 2015-01-10 04:22:03 -05:00
Drullkus 22e9fe6af9 HEx Anim 2015-01-09 23:43:02 -08:00
tterrag1098 776d0396fc Auto chisel upgrades should be dependant on the auto chisel feature 2015-01-09 22:14:35 -05:00
tterrag1098 d1ad71108b Fix autochisel being broken when time is stopped 2015-01-09 10:58:01 -05:00
tterrag1098 026f03205f Merge branch 'master' of https://github.com/TheCricket/Chisel-2.git 2015-01-09 09:18:17 -05:00
tterrag1098 37a70f5674 Improve diamond chisel texture 2015-01-09 09:18:11 -05:00
Cricket 846a04f95a It bothered me(2/2) 2015-01-09 05:25:44 -08:00
Cricket b4b2fb970f It bothered me(1/2) 2015-01-09 05:24:26 -08:00
tterrag1098 0074be0a63 Fix not being able to shift click into main inventory from autochisel 2015-01-09 08:08:21 -05:00
tterrag1098 b98c44034b Add a partial fix for #119 2015-01-09 07:11:41 -05:00
tterrag1098 23a8326d35 Remove debug spam 2015-01-09 05:50:29 -05:00
tterrag1098 ad0b94384d Fixes #109 Shift clicking not working in auto chisel 2015-01-09 05:40:30 -05:00
tterrag1098 452b471c8d Change ironChiselCanLeftClick default to true 2015-01-09 03:04:39 -05:00
tterrag1098 544abae077 Add config option for left click chiseling. Fix chisel recipes. 2015-01-09 03:03:37 -05:00
tterrag1098 712dc5bd95 Add some TODOs for others 2015-01-09 02:38:24 -05:00
tterrag1098 615b1ed395 Further simplify IChiselItem and improve chisel tooltips 2015-01-09 02:33:03 -05:00
tterrag1098 7cfb88979e Revert Futura change for now 2015-01-09 02:09:22 -05:00
tterrag1098 fe241bf726 Add missing files from last commit 2015-01-09 01:51:52 -05:00
tterrag1098 58a17dbe5a Merge branch 'master' of https://github.com/TheCricket/Chisel-2.git 2015-01-09 01:50:41 -05:00
tterrag1098 fc36d03f5b Chisel item refactor.
Add chisel slot to autochisel. 
Refactor slot tooltip and valid items.
2015-01-09 01:50:32 -05:00
CptSpaceToaster a05157226e Was anyone using this? I'm using this now. Beginning steps for Antiblocks 2015-01-09 01:33:03 -05:00
CptSpaceToaster 405e1c1d82 brightned hex-plating 2015-01-09 00:44:33 -05:00
tterrag1098 46057b69e3 Merge pull request #115 from matthewprenger/master
Update gradle wrapper
2015-01-09 00:25:25 -05:00
matthewprenger 93005c0c29 Update gradle wrapper 2015-01-08 23:22:32 -06:00
Drullkus f2ed211b77 Merge remote-tracking branch 'origin/master' 2015-01-08 20:09:34 -08:00
Drullkus 2435947365 Pushing garbage texture for break particles, at Terag's request 2015-01-08 20:08:56 -08:00
tterrag1098 176530122a Fix up buildscript, add additional artifacts to upload 2015-01-08 22:24:38 -05:00
CptSpaceToaster 638d6e45c5 didn't need this 2015-01-08 21:55:56 -05:00
CptSpaceToaster 04fb236e95 need this? 2015-01-08 21:51:13 -05:00
CptSpaceToaster 8bbb05b4e7 missing plugin:'curseforge' in the build.gradle 2015-01-08 21:43:16 -05:00
tterrag1098 82098fbb9f Add curse upload task 2015-01-08 21:16:48 -05:00
tterrag1098 30040cae99 Fix NPE when a CTM block is placed against an IFacade returning null 2015-01-08 20:31:07 -05:00
tterrag1098 eda7592b81 Add back in floaty items to autochisel render 2015-01-08 20:17:57 -05:00
tterrag1098 f2cdd40c78 Merge branch 'master' of https://github.com/TheCricket/Chisel-2.git 2015-01-08 19:44:09 -05:00
tterrag1098 45673eb832 Fix light gray hex block localization 2015-01-08 19:44:00 -05:00
Cricket fcbc050640 Fixed formatting... 2015-01-08 19:42:57 -05:00
Cricket 42745c0575 sarcasm and added something for a friend 2015-01-08 19:32:20 -05:00
Drullkus e3e21258c4 Update Autochisel tex 2015-01-08 16:26:55 -08:00
tterrag1098 25677d63ec Remove obsolete hex block textures 2015-01-08 19:05:37 -05:00
tterrag1098 d394a9a6e7 Add missing files 2015-01-08 18:36:23 -05:00
tterrag1098 89ed8e94ac Finish Hex Blocks (Fixes #98). Change block class names (warlordjones).
Fix items not loading
2015-01-08 18:34:47 -05:00
tterrag1098 fbbe24152c Move all recipes to features. Clean up recipes. Fix worldgen registering 2015-01-08 16:31:13 -05:00
tterrag1098 0429a40d6a Fix creative tabs to work with new system 2015-01-08 15:27:15 -05:00
tterrag1098 6f3ba938e1 Add the new file...oops 2015-01-08 06:23:21 -05:00
tterrag1098 4c84cc3a04 Fix some mistakes so the game loads 2015-01-08 06:22:19 -05:00
tterrag1098 85e58f4f57 Begin major feature structor overhaul. Just recipes left to do. 2015-01-08 05:46:10 -05:00
tterrag1098 71016458bd Allow all sides to be used for autochisel automation 2015-01-08 02:22:51 -05:00
tterrag1098 b87d80dbf1 Fix autochisel item rendering 2015-01-08 02:20:23 -05:00
tterrag1098 4e949d1a3b Fix autochisel shift clicking never going to first slot 2015-01-08 02:09:56 -05:00
tterrag1098 151f2bfb85 This one actually fixes #107 strange item lighting in autochisel GUI 2015-01-08 02:06:12 -05:00
tterrag1098 7511fa4c8d Temp fix for #107 2015-01-08 02:01:20 -05:00
tterrag1098 2853040cb2 Merge branch 'master' of https://github.com/TheCricket/Chisel-2.git 2015-01-08 02:00:03 -05:00
tterrag1098 a4e72bfa12 Add basic auto chisel model. Still needs texture and animated stuff. 2015-01-08 01:59:50 -05:00
Drullkus fc09e8f894 Merge remote-tracking branch 'origin/master' 2015-01-07 22:33:52 -08:00
Drullkus 7750d836ae Add fix for 106. Fixes #106 2015-01-07 22:33:27 -08:00
tterrag1098 51a5c4817f Fix AutoChisel shift clicking and add tooltips 2015-01-07 23:36:27 -05:00
tterrag1098 7d801f69b5 Fix auto chisel functionality. Massively clean up and comment TE code. 2015-01-07 22:45:20 -05:00
tterrag1098 ca46d3c653 Actually fix #9. Some other cleanup in CTM. 2015-01-07 21:47:45 -05:00
tterrag1098 29683fb763 Add shift clicking to chisel GUI 2015-01-07 21:39:51 -05:00
tterrag1098 a878c9d77e Clean up CarvableHelper to use defined constants 2015-01-07 20:54:50 -05:00
tterrag1098 82792ed22e The great format and clean up. IMPORTANT: Read below.
All devs and contributors should use the provided formatter settings. 
If your IDE does not support the format, the rules are simple, it is the
default java formatting rules, with 200char line lengths and 1 extra
line after class definitions.
2015-01-07 19:50:18 -05:00
tterrag1098 06c5f5930f Add formatting rules 2015-01-07 19:47:07 -05:00
tterrag1098 9afc889345 No more diamond chisel class 2015-01-07 19:45:41 -05:00
tterrag1098 364eecdb12 Fix left-click chiseling.
Remove chisel harvest levels. 
Both chisels in 1 ID
2015-01-07 19:43:45 -05:00
Cricket 7a869bd522 Removed un-needed blocks 2015-01-07 19:00:12 -05:00
Cricket 026d46f6ce Merge pull request #105 from Adaptivity/UpdateruRUlang
Update ru_RU.lang
2015-01-07 04:15:10 -08:00
Adaptivity c6e49dcece Update ru_RU.lang 2015-01-07 15:07:55 +03:00
CptSpaceToaster 1f86ad1801 partial CTM lighting fix 2015-01-07 00:46:35 -05:00
Cricket 77f3e7b4dd renamed 2015-01-06 21:11:57 -05:00
Cricket 9112eafb41 Crafing and removed debug block 2015-01-06 20:47:11 -05:00
Cricket 29ff810e88 Projected changelog and version bump 2015-01-06 20:38:54 -05:00
Cricket 335dd553de Fixed durability, and removed my stuff 2015-01-06 20:34:41 -05:00
Cricket 0d364386cb Chisel left click redone, Thanks tterrag 2015-01-06 20:29:22 -05:00
Drullkus dc4e3601f0 No, BRAAAINZ.
Keep it >:(
2015-01-06 10:36:04 -08:00
Arona Jones 0727233853 Even more lang changes 2015-01-06 18:11:13 +00:00
Arona Jones a09e53ffe7 Another mispelling 2015-01-06 18:08:33 +00:00
Arona Jones 35057d1de0 Someone can't spell 2015-01-06 18:06:45 +00:00
Arona Jones a5f54ca5f3 Merge pull request #102 from Adaptivity/Localization
Update ru_RU.lang
2015-01-06 18:01:34 +00:00
Adaptivity e32cc4392e Update ru_RU.lang 2015-01-06 20:18:27 +03:00
Drullkus a3a58fd3f0 Adding three fixed CTM files.
They're close enough I guess. I'll tweak them later.
2015-01-05 21:00:37 -08:00
Cricket c25209da79 Fixed it and my horrible derp 👯 2015-01-05 20:57:32 -05:00
Cricket c587f259f1 Merge remote-tracking branch 'origin/master' 2015-01-05 20:25:30 -05:00
Cricket e6a973f545 add textures, I can't get this to work for the life of me 2015-01-05 20:25:16 -05:00
Drullkus f36277e2f5 Fix it up a little 2015-01-05 17:07:36 -08:00
Drullkus b27c1cb160 Commit stuff for MCBugtracker. 2015-01-05 16:44:55 -08:00
Cricket 74d2071e3d and... imports 2015-01-05 19:15:35 -05:00
Cricket 6e082bcae2 Create GeneratorChisel.java 2015-01-05 19:14:54 -05:00
Cricket f4f1cf32fb textures 2015-01-05 19:14:13 -05:00
Cricket 19b88a34c6 Merge remote-tracking branch 'origin/master' 2015-01-05 18:18:07 -05:00
Cricket 0786bf0025 1.8 generation added, fixed #91 and #84 2015-01-05 18:17:57 -05:00
Drullkus 28dfe26270 Setup Textures for AntiBlocks and retextured Hex Plating 2015-01-04 18:39:27 -08:00
Arona Jones dd178d0169 Coloured Sand, as requested. Closes #83 2015-01-04 18:19:38 +00:00
Arona Jones b07ecc3ab7 .gitignore server stuff and update forge version 2015-01-04 18:14:38 +00:00
Cricket ef3f91c24e I think this will fix it? 2015-01-04 10:03:44 -05:00
Cricket 74b3e4a150 Merge remote-tracking branch 'origin/master' 2015-01-03 21:26:04 -05:00
Cricket a44b11cc16 Cryogenic sign, eh its ok 2015-01-03 21:25:52 -05:00
Cricket 35b6db49ed Merge pull request #87 from Voidi/master
support Chisel Input with registered ores and oreDictonary
2015-01-03 17:51:34 -08:00
CptSpaceToaster d4ea601140 merged in changes from OCD blocks 2015-01-03 17:32:33 -05:00
Cricket 67c3731e28 Forgot crafting recipes 2015-01-03 16:50:54 -05:00
Cricket 462931de59 Pumpkin is brighter now, found it a little dim 2015-01-03 16:44:37 -05:00
Meadowcottage f6048ec8db Added OCD Blocks 2015-01-03 14:24:51 +00:00
Cricket ac4f7fdc29 Added AlchemicalWizardry support 2015-01-02 21:22:46 -05:00
Cricket 7830150aba oops 2015-01-02 18:53:43 -05:00
Cricket 5d72539204 Tab organization 2015-01-02 18:52:53 -05:00
Cricket 19669b587b EnderIO compat hopefully fixes #9 2015-01-02 17:26:12 -05:00
Cricket 6b0005df79 Merge remote-tracking branch 'origin/master' 2015-01-02 16:47:08 -05:00
Cricket 33c9521a78 Diamond chisel is working 2015-01-02 16:46:57 -05:00
Arona Jones 425121edb6 Fix Hex plating only giving 1 block, instead of 8 2015-01-02 19:18:15 +00:00
Cricket d73732b838 Merge branch 'Meadowcottage-master' 2015-01-02 11:45:25 -05:00
Cricket 10b0a18b28 Initial diamond chisel update 2015-01-02 11:45:04 -05:00
Tobias Wohlfarth 5bd18ca2f8 support Chisel Input with registered ores and oreDictonary
modified:   src/main/java/com/cricketcraft/chisel/carving/Carving.java
2015-01-02 15:28:40 +01:00
Arona Jones 31c266c9a5 *facepalm* 2015-01-01 11:44:46 +00:00
Arona Jones 034fd78d4d Subsplit the creative tab into 4, by material.
May sort it a different way, this is still under consideration.
2015-01-01 11:44:25 +00:00
Drullkus 56e393f2e5 Second commit for chisel 2015! 2015-01-01 03:02:47 -08:00
Drullkus 936f18b24f Oops, almost forgot a bundle of stuff to toss out there 2015-01-01 03:00:02 -08:00
Drullkus c5d327ab13 Fix all mod blocks, AE2 and Railcraft blocks are all confirmed working 2014-12-31 20:15:49 -08:00
Arona Jones 048ebd6367 As requested quite a few times, Chiselable Packed Ice (Basically unmelting normal ice :P) is a thing 2015-01-01 00:58:55 +00:00
Arona Jones 14becf987a Move all mod compatabitlity chiseling into ModBlocks.postLoad for complete/neatness 2015-01-01 00:26:27 +00:00
Arona Jones 6d5bda60b4 Move RC compat into postInit, make sure it happens after RC is loaded... 2015-01-01 00:24:37 +00:00
Drullkus 19fe273827 Comment out WIP stuff, fix a few things 2014-12-30 22:34:07 -08:00
Drullkus 7be3bb49ef Merge branch 'master' of https://github.com/TheCricket/Chisel-2 2014-12-30 20:14:38 -08:00
Drullkus c1432ed4d2 Add Mod Blocks and other things maybe 2014-12-30 20:12:25 -08:00
CptSpaceToaster c3170ffa83 I think these are the big changes... might be missing a couple 2014-12-30 17:53:49 -05:00
CptSpaceToaster 2de4a9ff39 modified gradlew permissions to allow execution 2014-12-30 17:29:31 -05:00
Cricket 9df5bd4603 Merge pull request #79 from CptSpaceToaster/master
Fixed wonky Chests/Presents.
2014-12-30 13:36:33 -08:00
CptSpaceToaster 6d57d8bab5 Fixed wonky Chests/Presents. We still need textures for later, when it won't be christmas 2014-12-30 16:34:07 -05:00
Drullkus 3908e1c8c8 Commit unspecific stuff 2014-12-30 09:15:28 -08:00
Drullkus 3eadff13dc More Arcane Blocks (Braaainz!) 2014-12-28 12:54:29 -08:00
Drullkus 9242051bb3 Experimental TFBlock Enchiselment 2014-12-28 11:32:58 -08:00
Cricket 0476b39d3d No more "swastika" and a little surprise for those who commented 2014-12-27 13:31:08 -05:00
Arona Jones c32ef83fab Two more torch textures, for more modern builds 2014-12-27 17:49:56 +00:00
Arona Jones 8e8e0cb245 Randomisation on the Aged Bricks 2014-12-27 17:49:56 +00:00
Arona Jones c47067632b Two new torch/lantern textures 2014-12-27 17:49:56 +00:00
Arona Jones 18f13f48e3 More warning signs. Closes Issue Number #ICan'tRememberTheIssueNumberAndDon'tHaveInternetAccessRightNow 2014-12-27 17:49:55 +00:00
Cricket 1011a4736f Update changelog, forgot to push 2014-12-27 12:19:27 -05:00
Cricket b9faed4139 Merge pull request #76 from Mazdallier/patch-1
Create fr_FR.lang
2014-12-27 08:43:47 -08:00
Yves 89a0753ffe Create fr_FR.lang 2014-12-27 17:41:40 +01:00
Arona Jones 95df30b61e Reorder Smashing Rock's smashing order. Closes #64
Can't work out why it looks like a Ball of Moss when thrown though, Chisel is doing something wierdly.
2014-12-27 15:06:36 +01:00
Arona Jones ac923c2885 Bump version to 2.2.1 2014-12-27 14:58:08 +01:00
Arona Jones 1da5ae008b Scorching Block Recipe. Closes #63 2014-12-27 14:56:30 +01:00
Cricket b78c2660a6 Merge pull request #68 from CptSpaceToaster/master
Fixed a couple of the rendering issues
2014-12-24 17:03:02 -08:00
CptSpaceToaster 8f111c0a35 fixed a couple of the rendering issues, now to find out why each chest still has it's unique inventory, and why they rotate whichever way they want to. 2014-12-24 15:44:02 -05:00
Drullkus 0f7c399be7 Add Runes. v16 does not work :( 2014-12-24 12:25:02 -08:00
Drullkus eb4b0a429a Fix stuff 2014-12-24 11:56:24 -08:00
Drullkus c3aaba6629 Merge remote-tracking branch 'origin/master'
Conflicts:
	src/main/java/com/cricketcraft/chisel/init/ModBlocks.java
2014-12-24 11:54:32 -08:00
Drullkus 11d130d93d Replace placeholder stuff 2014-12-24 11:54:00 -08:00
Drullkus 5da726e9e5 Merge pull request #66 from CptSpaceToaster/master
CptSpaceToaster's fix for issues #62 #63 #65
2014-12-24 11:51:34 -08:00
CptSpaceToaster dabaeb879a chiseled torches were missing their light values 2014-12-24 14:09:19 -05:00
CptSpaceToaster ebc4f7cb6d Merge remote-tracking branch 'upstream/master' 2014-12-24 13:48:50 -05:00
CptSpaceToaster ff69bbd23c Pumpkins have a hardness value now 2014-12-24 13:48:45 -05:00
Cricket 474fd7b966 Fixed Hardness and recipe bugs 2014-12-24 12:31:21 -05:00
Cricket 679095a711 Forgot a crafting recipe 2014-12-24 12:27:16 -05:00
Cricket 35bc74811e 200th Commit and made it better for loading 2014-12-24 12:16:19 -05:00
Drullkus 07f2aecb48 Merge branch 'master' of https://github.com/TheCricket/Chisel-2 2014-12-24 09:08:33 -08:00
Drullkus 291043567b Add other Arcane Stone block 2014-12-24 09:03:14 -08:00
Cricket 4fa1139afa Fixed the auto chisel name 2014-12-24 12:02:07 -05:00
Cricket 8431ef1e50 Done for this update 2014-12-24 11:53:11 -05:00
Cricket c4c2abfe3b Merge remote-tracking branch 'origin/master' 2014-12-24 11:12:45 -05:00
Cricket 29293b01e6 Just needs the transaction redone 2014-12-24 11:12:30 -05:00
Drullkus 6ff12a0f72 Commit a whack of textures 2014-12-24 07:01:39 -08:00
Arona Jones 8bbb91e32d Begin work on Chiselable Thaumcraft Arcane Stone :D 2014-12-24 15:50:31 +01:00
Cricket 3eb7d90c89 Just pushing my work so far 2014-12-23 20:16:31 -05:00
Cricket 8620d975ee API Note addded 2014-12-23 08:12:47 -08:00
Cricket f91db4a149 Cleaned up harvest level 2014-12-23 08:08:07 -08:00
Cricket 428e1ca4c1 Delete ChiselLeftClick.java 2014-12-23 08:06:41 -08:00
Cricket ee5428a585 Cleaned up config 2014-12-23 08:05:53 -08:00
Cricket d666dd71b2 Removed Chisel left click 2014-12-23 08:04:31 -08:00
Cricket 9c7c5c6d67 Adds the upgrade slots to the container 2014-12-23 08:02:18 -08:00
Cricket 6cbae14573 Updated package naming, I guess we forgot 2014-12-23 07:57:32 -08:00
Drullkus 02937068fe Move more files ;Fix Todo Typo (Really, Drullkus?) 2014-12-22 16:17:48 -08:00
Drullkus 6a841e5f26 Pushing some files around for Diamond series 2014-12-22 16:07:48 -08:00
Drullkus ebe08fc822 Condensed eight x64 dirt CTM files into four smaller files 2014-12-22 15:39:35 -08:00
Drullkus cb3efbd25b Did some texture work 2014-12-22 15:02:13 -08:00
Cricket 6c7fcd9384 More stream work 2014-12-22 17:52:31 -05:00
Cricket 4370b7634c Merge remote-tracking branch 'origin/master' 2014-12-22 16:46:12 -05:00
Cricket 0a9f604231 Auto Chisel work 2014-12-22 16:45:46 -05:00
TheCricket a908950351 added more christmas presents 2014-12-22 06:25:30 -08:00
Drullkus 89fd684b60 Technical blocks now ready for release! 2014-12-21 12:51:32 -08:00
Cricket 31c2e526de Updated the changelog 2014-12-20 15:42:42 -05:00
Cricket f243922d55 Forgot a test thing 2014-12-20 15:36:26 -05:00
Cricket 55d258eadb Merge remote-tracking branch 'origin/master' 2014-12-20 15:36:04 -05:00
Cricket 9ea871a568 Fixes scaffold 2014-12-20 15:35:53 -05:00
Drullkus d240bdb951 Stupid IntelliJ didn't commit the ModBlocks.java 2014-12-20 12:31:39 -08:00
Drullkus a4761cf608 Dulling the colors on insulation 2014-12-20 12:28:49 -08:00
Drullkus 48c936bee2 Added 3 new blocks 2014-12-20 12:03:20 -08:00
Arona Jones ea5e62f021 Some voidstone ctm 2014-12-19 16:30:42 +00:00
Arona Jones 57537f5ef5 Turn down the brightness a bit on the signs 2014-12-19 15:38:25 +00:00
Arona Jones 728343045e Bump version. We did agree on 2.2.0, right? 2014-12-19 14:30:25 +00:00
Arona Jones 772eadbcdb Implement the warning sign blocks 2014-12-19 10:37:03 +00:00
Arona Jones 33be12cded Chiselable Torches :D 2014-12-19 10:21:52 +00:00
Arona Jones cc842dee1e Merge pull request #58 from CptSpaceToaster/master
fixed the CTM renderer to properly average values if the colored light core is installed
2014-12-19 09:17:22 +00:00
CptSpaceToaster c8ebc63fef fixed the CTM renderer to properly average values if the colored light core is installed 2014-12-19 00:44:15 -05:00
Drullkus fb1d74944a Adding Cables; Slowing the animations down a little on Gears 2014-12-17 23:23:02 -08:00
Drullkus 15e8f4a5ad Making it a little more formal 2014-12-17 21:47:59 -08:00
Drullkus 53ab9a9e4d Oops. 2014-12-17 21:46:15 -08:00
Drullkus c4d60f3dc1 Spinny Stuff Added. 2014-12-17 21:44:51 -08:00
Drullkus aeaa364613 Polish stuff up, rename Wall Padding to Insulation 2014-12-17 13:28:57 -08:00
Arona Jones 753cfd6260 Minor large bricks texture edit. Fixes #57 ? 2014-12-17 16:30:48 +00:00
Arona Jones 75b52ac95a Some warning sign textures, as requested long ago 2014-12-17 08:15:27 +00:00
Drullkus ecce4eee2c Another block for Technical Series... And languaging for upcoming Technical Blocks! 2014-12-16 21:24:16 -08:00
TheCricket 714c4a5f81 Pumpkins are done 2014-12-16 20:28:53 -05:00
Arona Jones dfc63b617f Import Opts 2014-12-16 22:27:44 +00:00
Arona Jones 8b0292c30a Add informative tooltips to the Items 2014-12-16 22:25:27 +00:00
Arona Jones ed11b8947f Rename bricks to brickCustom, for lang reasons. Also candle textures, but I need to think how to implement the block 2014-12-16 21:51:30 +00:00
Arona Jones 8dd1077f9c Scorching textures + a few vanilla brick ones 2014-12-16 14:17:43 +00:00
Arona Jones 61a510e524 Scorching stuff. Very WIP 2014-12-16 14:03:15 +00:00
Arona Jones a53aa1bfd2 Rename mechanical blocks to technical blocks as per the lang file 2014-12-16 13:02:24 +00:00
Arona Jones 0d313c8880 The CTM isn't broken anymore, so don't say it is :P 2014-12-16 11:48:01 +00:00
Arona Jones f0c9c49a23 Whoops, .gitignore the screenshots folder 2014-12-16 09:28:52 +00:00
Arona Jones 1bd28e50a1 Technical Block vents are no longer multisided
This was breaking CTM (Current handler doesn't seem to be able to handle that). Fixes #56
2014-12-16 09:27:16 +00:00
Drullkus 67984db5c2 More blocks for the technical series! 2014-12-15 22:27:02 -08:00
Drullkus 2d98d05508 I'm a Derpkus! 2014-12-15 17:43:37 -08:00
Drullkus e6fd49b76f Merge remote-tracking branch 'origin/master' 2014-12-15 17:36:39 -08:00
Drullkus c7beb0d964 Adding new blocks 2014-12-15 17:35:50 -08:00
TheCricket 0e2fff1cfb Fixed, it please dont touch 2014-12-15 20:13:58 -05:00
Arona Jones ac9c208d3c Pumpkin Work 2014-12-15 19:53:19 +00:00
TheCricket 3ffbb59944 Merge remote-tracking branch 'origin/master' 2014-12-15 14:25:47 -05:00
Arona Jones 82c2767263 Some textures for yet another new block 2014-12-15 19:25:13 +00:00
Arona Jones 7745b880d5 'Flaky' Grimstone 2014-12-15 19:25:13 +00:00
TheCricket 311d403e9a Merge remote-tracking branch 'origin/master' 2014-12-15 14:24:48 -05:00
TheCricket 3267607055 Pumpkin work 2014-12-15 14:24:31 -05:00
Cricket 899ba0a12a just makin a botania reference 2014-12-15 14:17:42 -05:00
Arona Jones b160cbb110 No need for carpet-old 2014-12-15 18:41:42 +00:00
Arona Jones 64844aeea2 'lamp' textures are unused 2014-12-15 18:41:21 +00:00
Arona Jones 32e08f4afc Animate the extra lavastone texture 2014-12-15 18:25:50 +00:00
Arona Jones ba56c7be6b Whoops 2014-12-15 18:24:07 +00:00
Arona Jones cd3be4ba47 Textures for double roadlines. Not implemented yet 2014-12-15 18:17:06 +00:00
Arona Jones a974a4b0b6 Vent2, Gear and Hex will form the basis of a new series 2014-12-15 17:17:17 +00:00
Arona Jones a7cb158e1a More mechanism/technical blocks. Pending split into two blocks 2014-12-15 17:05:41 +00:00
Arona Jones 074de30043 Turn Cloudbrick into a subtype of Cloud block. Also made cloud drop 2014-12-15 13:39:52 +00:00
Arona Jones f275ca3235 Crafting and language and things 2014-12-15 13:21:43 +00:00
Arona Jones 6e67581e3c Nicer (imo) voidstone animation, the white was quite jarring. I also made it a little less HD 2014-12-15 13:14:40 +00:00
Arona Jones e48e362a0a Remove the BlockSpikes related stuff, it's unused (?) 2014-12-15 13:07:57 +00:00
Arona Jones f04aeb3d89 Rename animated voidstone to energised voidstone 2014-12-15 13:04:23 +00:00
Arona Jones 3da928f4b0 Beginning of textures for carvable fences 2014-12-15 12:59:49 +00:00
Arona Jones 17570d6b8f Bone Blocks! 2014-12-15 12:56:58 +00:00
Arona Jones 1e7e7dc8ec Add new block type: cloudbricks 2014-12-15 08:30:56 +00:00
Arona Jones a8f6f4c94e Clustered Wires Mechanism Block 2014-12-15 08:19:53 +00:00
Arona Jones db0f3c30bc en_GB only contains those localizations which need changing from en_US 2014-12-15 08:10:02 +00:00
Arona Jones 531c90b107 Allow pirate to fallback to en_US in parts
TODO: Allow both en_GB and en_PT to completly fall back to en_US on parts that don't need translating
2014-12-15 07:59:22 +00:00
Arona Jones 555981968d Animated Prefix to the voidstone 2014-12-15 07:59:22 +00:00
Drullkus 739c602012 Adding new Block type
I’m getting lots of highly positive reactions, adding immediately!
2014-12-14 22:18:05 -08:00
Arona Jones 32bf0bb060 Add the voidstone skulls variant back, shift the meta around, and make raw the first variant you craft 2014-12-15 01:25:05 +00:00
Arona Jones 59669cd74c Voidstone Pillar Recipes 2014-12-15 01:19:02 +00:00
Arona Jones c22fc2e504 Animated Voidstone pillar variant 2014-12-15 00:58:49 +00:00
Arona Jones 5a6ab88b61 Crafting Recipes for Fantasy2, Voidstone2 and Grimstone. 2014-12-15 00:58:49 +00:00
Arona Jones 0f27ed9fa1 Added Voidstone2, the animated voidstone textures and made Voidstone non-animated. 2014-12-15 00:58:49 +00:00
TheCricket 098f782df3 Tools should be correct now 2014-12-14 19:28:28 -05:00
Arona Jones dae454dc17 Change package name for realsies now :P 2014-12-15 00:11:48 +00:00
TheCricket 4d8df815cc Merge remote-tracking branch 'origin/master' 2014-12-14 19:08:24 -05:00
TheCricket f6f3915b1e Voidstone fixed, and now configurable because some people like the animated texture 2014-12-14 19:08:11 -05:00
Arona Jones c5edcf2f0c Revert "Update the package name"
This reverts commit 0871831c46.
2014-12-14 23:49:01 +00:00
Arona Jones 27c532a4fc Update the package name 2014-12-14 23:47:14 +00:00
Arona Jones 2fbed929c5 I couldn't resist - most useful feature ever: Chisel is now localized in Pirate! 2014-12-14 23:13:08 +00:00
Arona Jones 2002f8deee Grimstone dig SFX 2014-12-14 22:12:17 +00:00
Arona Jones eca6102a59 Fix what I broke and new grimstone particle texture 2014-12-14 21:56:19 +00:00
Arona Jones e253c68c82 Item texture organisation and new smashing rock texture 2014-12-14 21:35:24 +00:00
Arona Jones 4eb11ea35d Fix some non-critical errors/warnings, probably didn't break anything 2014-12-14 21:31:55 +00:00
Arona Jones 6fb3cdf2e1 Texture naming consistency and stuff 2014-12-14 21:21:28 +00:00
Arona Jones e78364be04 Import Optimization again 2014-12-14 20:05:39 +00:00
Arona Jones 290c2770f3 Capitlisation consistency is nice 2014-12-14 20:05:23 +00:00
Arona Jones 67ad574924 Create British English localisation 2014-12-14 20:00:05 +00:00
Arona Jones 8ee5b21e01 Tidy up en_US lang 2014-12-14 19:59:45 +00:00
Arona Jones f9216a0c12 Ignore workspace files 2014-12-14 19:59:36 +00:00
TheCricket e6bb0e6e87 Added Grimstone and Fantasy Block 2 2014-12-14 14:22:17 -05:00
TheCricket 45fe575eb2 Fixed #53 2014-12-14 12:46:16 -05:00
Cricket d6e790ef1f Merge pull request #52 from warlordjones/patch-1
Fix Voidstone recipe conflict with CC wireless modems
2014-12-14 05:48:13 -08:00
Cricket e3fef1f18b Merge pull request #54 from warlordjones/patch-2
Fix spelling of a fantasy block.
2014-12-14 05:47:28 -08:00
Arona Jones 1809441433 Fix spelling! 2014-12-14 12:23:21 +00:00
Arona Jones 9bbbb0a1a4 Fix Voidstone recipe conflict with CC wireless modems 2014-12-14 10:48:30 +00:00
TheCricket 5d0fe396ca Optimize imports 2014-12-11 20:09:54 -05:00
TheCricket fc44eb6d1f Merge branch 'master' of https://github.com/TheCricket/Chisel-2 2014-12-11 07:54:10 -08:00
TheCricket f73c06e2d7 Textures are back 2014-12-11 07:53:41 -08:00
Cricket fab001658b Changed it so it doesn't crash 2014-12-11 07:42:55 -08:00
Cricket a787d21d2d Added back a voidstone 2014-12-11 07:41:02 -08:00
TheCricket 77c543a68a Auto chisel prep, done with #44 2014-12-10 20:13:52 -05:00
TheCricket 867be9a38c Recipes, lang, and ore dict 2014-12-08 16:42:43 -05:00
TheCricket fdab9c219f No more broken recipes, Fixes #46 2014-12-08 16:26:02 -05:00
TheCricket 222a2dd0fc Hex Plating added, I know no lang stuff 2014-12-07 20:45:17 -05:00
TheCricket bb69d2f1d3 How to get people to stop shouting in one easy commit! You cannot miss this! 2014-12-06 11:37:02 -05:00
TheCricket 9b04ad6dff forgot a couple textures 2014-12-03 21:00:11 -05:00
TheCricket f7e2dc0c07 Trying to add multiblock but it aint working 2014-12-03 20:59:03 -05:00
Drullkus ab2cd0f372 Textures for upgrades \o/
They’re kinda weird. I can come up with something different if needed.
:P
2014-12-03 17:06:18 -08:00
TheCricket 8caa6e557a FMP support added 2014-12-02 21:00:52 -05:00
TheCricket 16624321ae Fixes the Access Transformers in NEI not loading 2014-12-02 20:19:44 -05:00
Cricket 2af3d6e5aa Removed NEI until I can get this fixed 2014-12-02 19:15:47 -05:00
Cricket 97f400ab8b Update build.gradle 2014-12-02 19:02:46 -05:00
Cricket 29557b36f6 Update build.gradle 2014-12-02 16:57:08 -05:00
Cricket 17c48fe5c0 Update changelog 2014-12-02 16:40:15 -05:00
TheCricket 7020143e9c New Voidstone textures, The skulls one was removed and another put in its place 2014-12-01 19:54:35 -05:00
Cricket c3b1e879d1 Merge pull request #40 from MikeLydeamore/master
Fixed NPE in CTM fixes #39 and #28
2014-12-01 16:53:11 -08:00
Michael Lydeamore 19e85a99f0 Fixed NPE in CTM 2014-12-02 10:13:12 +10:30
TheCricket 1a04a7f86a I guess something changed in this? it really wants to commit 2014-12-01 15:32:16 -05:00
TheCricket 594ea146dd Merge remote-tracking branch 'origin/master' 2014-12-01 09:12:55 -05:00
TheCricket 68e1704b67 Version bump 2014-12-01 09:10:57 -05:00
TheCricket 2b175d8dd5 Oopsy 2014-12-01 09:08:33 -05:00
Cricket ce43d0318b Merge pull request #35 from Cobra1117/master
Reolves Issue #32: Updated "next variation" algorithm to properly select next index
2014-12-01 07:45:38 -05:00
Cricket 0c5627425b Merge pull request #34 from ViKaleidoscope/patch-2
Update zh_CN.lang
2014-12-01 07:44:14 -05:00
ViKaleidoscope a4bf937c37 Update zh_CN.lang 2014-12-01 13:39:00 +08:00
Cobra1117 7e7737790e Issue #32: Updated "next variation" algorithm to properly select next index instead of relying on incrementing metadata value. 2014-12-01 00:37:09 -05:00
TheCricket 25c370e580 Fixes #27 2014-11-30 18:17:37 -05:00
TheCricket b7d93a8345 Fixes #30 2014-11-30 18:10:51 -05:00
TheCricket 8768180d54 Added Waterstone 2014-11-30 18:02:58 -05:00
Cricket 932deee7fd Sorry, fixed #24 2014-11-29 12:34:26 -05:00
TheCricket df4dbad4c4 Version bump 2014-11-28 08:40:42 -05:00
TheCricket 171e065803 Version bump 2014-11-27 13:12:04 -05:00
TheCricket 7d41512d43 Chest will be done nearer to christmas 2014-11-27 13:07:59 -05:00
TheCricket 6c1178edb6 Chest commit 1 2014-11-26 20:03:54 -05:00
TheCricket 7badc6f8b1 Fancy Render system, leaves, lang changes, leaf description added 2014-11-24 18:48:10 -05:00
TheCricket 7b8e3bf10d Forgot you don't need this 2014-11-23 18:48:14 -05:00
TheCricket 5e7f601eac Worlds transfer now 2014-11-23 18:47:05 -05:00
TheCricket 1fe52ac4d2 Ready for a 2.0.0.3 with a little extra 2014-11-09 12:01:44 -05:00
TheCricket 5c604f34f1 Fixes #10 2014-11-09 10:33:31 -05:00
TheCricket e0c8b28611 Merge remote-tracking branch 'origin/master' 2014-11-03 17:16:35 -05:00
TheCricket d956325388 Fixes #11 2014-11-03 17:16:23 -05:00
Cricket ab2d808760 Merge pull request #8 from ViKaleidoscope/patch-2
Update zh_CN.lang
2014-11-03 15:41:46 -05:00
ViKaleidoscope d6949148b7 Update zh_CN.lang 2014-11-03 11:37:04 +08:00
ViKaleidoscope 429cf60ced Update zh_CN.lang 2014-11-03 11:30:39 +08:00
ViKaleidoscope 65eed4086e Update zh_CN.lang 2014-11-03 11:25:28 +08:00
Cricket 2584777ec3 Version Bump 2014-11-02 17:05:56 -05:00
Cricket 09fc56f748 Version Bump 2014-11-02 17:05:36 -05:00
TheCricket 6169f9a8f1 Merge remote-tracking branch 'origin/master'
Conflicts:
	src/main/java/info/jbcs/minecraft/chisel/Chisel.java
2014-11-02 17:05:14 -05:00
TheCricket 4b8e1a62dd Version bump 2014-11-02 17:02:35 -05:00
Cricket 2c8a64acae Fixes #7 reorder of the last commit 2014-11-02 17:00:33 -05:00
TheCricket 79a1c19868 Merge remote-tracking branch 'origin/master'
Conflicts:
	src/main/java/info/jbcs/minecraft/chisel/Chisel.java
2014-11-02 16:58:29 -05:00
TheCricket 64f39c144e Fixes #7 2014-11-02 16:57:53 -05:00
TheCricket b427d8a92a Fixes #6 2014-11-02 16:53:36 -05:00
TheCricket d1f1fb6552 Fixes #4 2014-11-02 16:44:01 -05:00
TheCricket 5ca667eba7 More Voidstone, more lang support 2014-11-02 16:38:14 -05:00
Cricket c3afe074ab Merge pull request #5 from ViKaleidoscope/patch-2
Update zh_CN.lang
2014-11-02 08:20:10 -05:00
ViKaleidoscope 8878cc12fa Update zh_CN.lang 2014-11-02 16:52:23 +08:00
ViKaleidoscope d6a4745637 Update zh_CN.lang
Update for Void stone, and change some incorrect translations.
2014-11-02 16:49:41 +08:00
TheCricket a3ec91eb96 more sterf 2014-11-01 20:35:29 -04:00
TheCricket 5c18a3df78 Names are now in as well as textures 2014-11-01 20:08:45 -04:00
TheCricket 48a1f8354f Merge remote-tracking branch 'origin/master' 2014-11-01 19:15:10 -04:00
TheCricket b78c04eab5 Start of voidstone 2014-11-01 19:13:35 -04:00
Cricket 8ee6bc583d Merge pull request #2 from warlordjones/master
Made the contribution instructions more universal
2014-11-01 12:18:46 -04:00
Arona Jones aa0ec58fd3 Made the contribution instructions more universal 2014-11-01 16:08:07 +00:00
Cricket ac7e1f05b9 Merge pull request #1 from ViKaleidoscope/patch-2
Update zh_CN.lang
2014-11-01 10:27:43 -04:00
ViKaleidoscope 584c264f91 Update zh_CN.lang 2014-11-01 22:13:22 +08:00
TheCricket b11d8a42f7 oopsy 2014-11-01 09:45:43 -04:00
ViKaleidoscope c74434abfb Update zh_CN.lang 2014-11-01 12:28:54 +08:00
ViKaleidoscope 064bb2fc7d Update zh_CN.lang 2014-11-01 12:18:05 +08:00
TheCricket 6bb6725a92 Version Change 2014-10-31 19:59:18 -04:00
TheCricket ad1c150156 Touch ups 2014-10-31 19:49:39 -04:00
TheCricket 6be74695a9 Release! 2014-10-31 19:47:22 -04:00
TheCricket c1a528c64e Well now its a infinite block maker! 2014-10-29 20:12:32 -04:00
TheCricket 5575d2dfcc Almost done with Auto Chisel 2014-10-29 18:10:28 -04:00
TheCricket 91cf0cf498 The Great Refractor! 2014-10-28 21:10:08 -04:00
TheCricket e55dc197cb Added in all of the original files 2014-10-27 16:26:14 -04:00
Fenn 4d138e644a Merge pull request #64 from lawremi/master
add chisel compatibility for Geologica marble and limestone
2014-10-16 18:09:03 +01:00
Fenn 2cbb53f981 Merge pull request #69 from puyo061/patch-1
Update Korean translation
2014-10-16 18:08:42 +01:00
Fenn e9ac4ae391 Merge pull request #71 from ViKaleidoscope/patch-2
Update zh_CN.lang
2014-10-16 18:08:06 +01:00
Royal 6319be5d05 Update zh_CN.lang
Update unLocalizationName, and change the translations to Mrkwtkr's version.
2014-10-15 18:10:22 +08:00
Fenn 7a5f9157aa Removed the erroneous license in files. 2014-10-09 08:12:12 +01:00
[MMKP]Puyo061 0b080d7bf8 Fixed typographical error 2014-10-09 14:05:55 +09:00
[MMKP]Puyo061 8bb568da60 Update Korean translation
Chisel(item) localization

Vanila block name translation
 
and more(?)
2014-10-09 14:03:24 +09:00
[MMKP]Puyo061 2ecf2d1e2a Update language file for Korean translation
author TeamMMKP( @puyo061 / @clayweb / @alvin137 )
original PullRequest : #63
2014-10-09 13:49:08 +09:00
Fenn 001207e21f Silly me, wrong name thingy for the Pumpkin things 2014-10-08 18:59:37 +01:00
Fenn 880e7fbc9c Start of the Halloween blocks!
Added the textures and the basic files, will finish it off over the next
few days. Sorry, been out of the loop so much :/
2014-10-08 18:57:34 +01:00
Fenn 8e3761b83f Merge pull request #66 from EoD/unify-block-names-pokefenn
Unify block names
2014-10-08 18:52:06 +01:00
Fenn 6c4a577aee Merge pull request #67 from CrazyPants/master
Added support for connected textures with facades.
2014-10-08 18:30:45 +01:00
EoD 9e8f9523f6 update language file to new block names
followup of 70150bd1eeb50ffc6effd856ec3f9e2d0cc59e9d
2014-10-08 10:51:59 +02:00
EoD adaec684b1 add block remapping for old chisel versions
Chisel versions 1.5.4 to 1.5.7
2014-10-08 10:51:56 +02:00
CrazyPants 49dfccffc7 Added support for connected textures with facades. 2014-10-08 16:34:54 +08:00
EoD e8f43b4fae rename all blocks to fit vanilla naming scheme 2014-10-07 23:11:57 +02:00
EoD f334260f42 drop "chisel." from all item and block names
this is the first step towards a more vanilla like naming scheme
2014-10-07 22:33:29 +02:00
Michael Lawrence f1d2a9779b add Geologica stone compatibility via addSupport() 2014-10-04 19:57:28 -07:00
Michael Lawrence 36705cc651 Revert "add chisel compatibility for Geologica marble and limestone"
This reverts commit 845ea7a6cc54e5180b1da51cf4c61edf76dbca6d.
2014-10-04 19:38:49 -07:00
Michael Lawrence 4c2a296074 Revert "also support limestone/marble slabs and stairs (although it seems I do"
This reverts commit ae476e322082ca1114be159b3159519c06029795.
2014-10-04 19:38:34 -07:00
Michael Lawrence 5cec7699ef also support limestone/marble slabs and stairs (although it seems I do
not have the correct group for the stairs, any help?), and Geologica
granite stone brick and cobblestone is treated as the vanilla stone counterparts
2014-10-04 07:18:58 -07:00
Michael Lawrence afccf0a7cc add chisel compatibility for Geologica marble and limestone 2014-10-04 06:20:31 -07:00
Fenn a335c92be7 Changelog file. 2014-09-16 10:01:26 +01:00
Fenn ae2845166e Random things to try and secure the fix for limestone gen, dunno if it actually works though. 2014-09-16 09:35:03 +01:00
Fenn bb6c714a3a I'm not skipping a version.... 2014-09-16 09:28:14 +01:00
Fenn 4da2a57abe Merge pull request #56 from EoD/rework-sounds
Rework sounds / Bump forge version
2014-09-16 09:26:33 +01:00
EoD cc3a8d5b47 bump forge and chisel version to fix compile error 2014-09-15 17:12:08 +02:00
EoD e22d7b480e sorted chisel sounds for wood variations 2014-09-15 17:11:24 +02:00
EoD 70324dba9e sorted squash (BallOMoss) sound
I intentionally did not touch EntitySmashingRock.java as both the sound
does not seem to fit, nor is the code finished.
2014-09-15 17:11:24 +02:00
EoD 730c8b16e6 sorted chisel fallback sound 2014-09-15 17:11:23 +02:00
EoD 30bd732bb9 deleted duplicated footstep sounds
They were not as loud as the other temple-footstep* files, but they are
useless at the moment.
2014-09-15 17:11:23 +02:00
EoD 8bbac57cc1 reworked block sounds to be more vanilla-like
this should make it easier to add more sounds
2014-09-15 17:11:23 +02:00
EoD f71ab99e47 formatted sounds.json 2014-09-15 17:11:22 +02:00
Fenn 2a116c8412 So left clicking chisel is still possible until i finish the stuff 2014-09-15 11:42:56 +01:00
Fenn 599dec1601 This -should- fix the limestone generation, i dunno, im tired ._. 2014-09-15 11:36:29 +01:00
Fenn fca1a06eca Manually added in EoD's PR for mcmod.info 2014-09-15 11:31:51 +01:00
Fenn 1a12b59568 Merge pull request #55 from EoD/remove-chisel-sandstone-duplicates
Remove chisel sandstone duplicates
2014-09-15 11:29:15 +01:00
Fenn 1b8114c820 Fixed the bracing 2014-09-15 11:27:15 +01:00
Fenn 49ade553f0 Fix the derps from that commit, i hate git. 2014-09-15 11:25:33 +01:00
Fenn 1dd65fd97a Merge remote-tracking branch 'origin/master'
Conflicts:
	src/main/java/info/jbcs/minecraft/chisel/Chisel.java
2014-09-15 11:22:41 +01:00
Fenn 108e5ceccc WIP left click chisel stuff 2014-09-15 11:14:40 +01:00
Fenn 652d905ca1 Merge pull request #47 from EoD/fix-item-remapping-v2
Fix item remapping v2
2014-09-15 11:14:26 +01:00
Fenn 00c81ac21e Merge pull request #52 from EoD/localise-gui
Localise chisel gui elements
2014-09-15 11:13:14 +01:00
Fenn 0a788b7727 Merge pull request #48 from ViKaleidoscope/patch-2
Update zh_CN.lang
2014-09-15 11:12:10 +01:00
EoD 164d24fa74 remove duplicate sandstone blocks
followup of 1d11c221621a36d0855b63b7549076a4c6b61474
2014-09-14 20:02:42 +02:00
EoD 385ed88d91 add compatbility recipes for wrong sandstone block 2014-09-14 20:02:42 +02:00
EoD e058360427 Fixes Pokefenn/Chisel#39
The duplicate blocks from chisel should be removed in a future commit.
2014-09-14 20:02:42 +02:00
EoD 22ef94c4b9 Localise chisel gui elements 2014-09-11 02:13:41 +02:00
D-dur 2a9d3860eb Update zh_CN.lang
Translation for Laboratory Block.
2014-09-10 15:52:27 +08:00
EoD d98c38aaf9 Closes Pokefenn/Chisel#36
adding handling for MissingMapping so renamed blocks don't disappear
after a world upgrade
2014-09-09 19:03:09 +02:00
EoD 480b6c3629 utitilies: add replaceTags(), update getName()
replaceTags() is helpful for finding remapped items.
Adding a getName(Item item) and using replaceTags() in old getName(Block
block)
2014-09-09 18:59:40 +02:00
EoD ffcbf444cd Revert "Manually added EoDs PR."
This reverts commit 752bb63900e67f7242accdef0799ae7bd2a7c9aa due to some
missing changes
2014-09-09 18:57:43 +02:00
Fenn 376c485f3c Fix for crash with HEE 2014-09-06 18:02:20 +01:00
Fenn 98ae948926 Merge pull request #40 from Adaptivity/patch-2
Update ru_RU.lang
2014-09-06 14:37:46 +01:00
Fenn 3f16a666ef Manually added EoDs PR. 2014-09-06 11:46:36 +01:00
Fenn 6b1ec65beb Merge pull request #42 from Lordmau5/master
Changes to the left-clicking with the Chisel in-hand...
2014-09-06 11:35:52 +01:00
Fenn be36008786 Merge pull request #45 from GravitasShortfall/master
Added "Laboratory Block"
2014-09-06 11:28:53 +01:00
GravitasShortfall 51677db15f Added "Laboratory Block"
Set of laboratory/hi-tech-themed blocks with corresponding textures
(textures made by myself).
2014-09-05 17:10:46 +01:00
Konata Izumi cac56fcdb5 Remove unnecessary "ClassNotFound"-stacktrace (mod compat.) 2014-09-02 00:36:59 +02:00
Konata Izumi b17aae93f9 Ye... the block update is needed here ...
Also version bump
2014-08-31 13:55:12 +02:00
Konata Izumi 653a1df6c9 Changes to the left-clicking with the Chisel in-hand...
Basicly, the Chisel as item can't break ANY blocks anymore, it's all handled through Forge-events.
I don't think there are needs to check, if the config-option for this is enabled / disabled, so the item can still break blocks in the world... Seems useless..
2014-08-31 13:37:01 +02:00
Anton a1cec7aefb Update ru_RU.lang
With help of MailGik, Russian translation is 100% complete.
2014-08-28 22:45:13 +04:00
Fenn e6bf5f8dd6 1.5.6b 2014-08-24 10:51:53 +01:00
Fenn 2ec448b9de Fixed some recipe derps. 2014-08-24 10:49:06 +01:00
Fenn 162f458bb3 Merge pull request #35 from ViKaleidoscope/patch-1
Create zh_CN.lang
2014-08-19 11:34:50 +01:00
Fenn 6ffb71b831 Sound fix. 2014-08-19 10:53:37 +01:00
Princess 80f8962a8d Create zh_CN.lang
Localization for 1.7.10. :)
2014-08-16 02:00:19 +08:00
Fenn dc3639565a Bluepower support added for Marble 2014-08-13 16:58:37 +01:00
Fenn 02a7be514d Derped on that. 2014-08-11 13:46:17 +01:00
Fenn c4557bab11 Fix for ProRed marble & chisel crafting config 2014-08-11 13:35:49 +01:00
Fenn 08e41f1c84 Moved to post init to be safe. 2014-08-10 12:15:32 +01:00
Fenn d844b446e4 That -should- be a fix for PR marble stuff.
Since it's now in scala i had to do a work around.
2014-08-10 12:12:39 +01:00
Fenn 0701588032 1.5.6a updated :p 2014-08-08 17:21:41 +01:00
Fenn 4152cbfd43 Fixed the stained glass carving issues. 2014-08-08 17:18:09 +01:00
Fenn 6489e7eb25 Merge pull request #32 from Parker8283/waila
Added Waila Integration
2014-08-08 15:44:55 +01:00
Parker 88edbebedc Added Waila Integration 2014-08-08 09:09:26 -04:00
Fenn f944e1dc8b Forced normal render of Lavastone. 2014-08-07 20:58:26 +01:00
Fenn af58f026d6 Fixed configuration and other stuff. 2014-07-26 09:17:49 +01:00
Fenn a8152e626f Seperated configurations into a new class. 2014-07-17 22:05:29 +01:00
Pokefenn 0eccfcda10 Merge pull request #28 from xbony2/patch-1
Goodbye .DS_Store
2014-07-17 16:10:46 +01:00
xbony2 fca815d17c Goodbye .DS_Store
This is so mac users like me can send pull requests without the .DS_Store file that are auto-generatored by OS-X, since most people don't those. See: http://en.wikipedia.org/wiki/.DS_Store
2014-07-17 09:34:01 -04:00
Fenn 32dbd9a4aa 1.5.6 and also recipes 2014-07-12 11:54:00 +01:00
Fenn 3d19ced0d9 Woolen Clay ;) 2014-07-12 11:11:34 +01:00
Fenn 9143e19089 Config for mossy blocks being made from stone 2014-07-12 10:54:47 +01:00
Fenn 6a39b1f230 Paperwalls? Paperwalls! 2014-07-11 17:39:36 +01:00
Fenn 25f9f1400d Things to 1.5.5a... 2014-07-05 19:36:32 +01:00
Fenn e5d3a873d8 *shakes fist at @zombiepig333 * fixes #24 2014-07-05 19:35:10 +01:00
Pokefenn 1ae9faae93 Merge pull request #23 from al3xthegre4/master
Capitialised the names of stuff
2014-07-05 13:33:02 +01:00
al3xthegre4 55bf10f4f5 This always bugged me about Chisel. 2014-07-05 13:23:24 +01:00
Fenn 69e83e80c0 Why is this file here... :< 2014-07-05 09:24:55 +01:00
Fenn 386c98a24a Gonna do 1.5.5 now
It's not gonna have the descriptions localized... since that would take
a stupidly long time :<
Would rather get a working build out and fix it later!
2014-07-05 09:18:21 +01:00
Fenn 4280147ece Locale for blocks (no descriptions) 2014-07-05 09:16:05 +01:00
Fenn 5113b1b6fb Changed the bracing style to under line on a few classes 2014-06-30 20:43:30 +01:00
Fenn c25919d012 Obsidian blocks 2014-06-30 15:39:36 +01:00
Fenn 247f323724 Ice stairs 2014-06-30 15:16:55 +01:00
Fenn 19d183879e Ice pillars 2014-06-30 14:56:42 +01:00
Fenn 7e43e56837 Removed derp. 2014-06-28 18:30:36 +01:00
Fenn 2fa7d38f05 Merge remote-tracking branch 'origin/master'
Conflicts:
	src/main/java/info/jbcs/minecraft/chisel/carving/CarvableHelper.java
2014-06-28 18:28:51 +01:00
Fenn 88dd4333d1 I hate git at times 2014-06-28 18:26:04 +01:00
Pokefenn 131d12de21 Merge pull request #21 from zombiepig333/master
1.7.10 port, Finished Localizations(almost!), Config GUI's, Typo Fixes
2014-06-28 17:12:05 +01:00
zombiepig333 0da37ebff2 Way too busy today to finish the entire PR, should finish tomorrow. 2014-06-27 18:35:01 -07:00
zombiepig333 a6fbd50231 Fixed a few derps, localization coming along. 2014-06-27 18:07:23 -07:00
zombiepig333 9cce5018c5 Trying out the config gui to see if it would be a good idea. 2014-06-26 13:43:52 -07:00
zombiepig333 ea95d10666 More localizations!! 2014-06-26 12:51:47 -07:00
zombiepig333 02c6f40e2f Bumped to Forge 1149 2014-06-26 12:16:54 -07:00
zombiepig333 7437932cdd Merge pull request #1 from Pokefenn/master
Updating fork
2014-06-26 11:59:10 -07:00
Fenn 2c1e6ce7fe Cobblestone 2014-06-26 15:51:01 +01:00
Fenn 3700724133 Diamond block locale and also fixed bracing 2014-06-26 15:45:31 +01:00
Pokefenn 8d5568509a Merge pull request #19 from zombiepig333/master
1.7.10pre4 Port, Block Localization, Sound Fixes, Slab Fixes
2014-06-26 15:15:13 +01:00
zombiepig333 5977d977a5 Took time to port to 1.7.10pre4, more localization work.
-The stair descriptions hate me!!!
2014-06-24 16:22:06 -07:00
zombiepig333 dfaf4ed0f9 Localization disaster pt1 2014-06-23 21:42:23 -07:00
zombiepig333 1157c3cf4a Beginning of the localization ablockalypse. 2014-06-23 20:19:11 -07:00
Fenn 06b76ff06e Ready for build g 2014-06-21 10:42:12 +01:00
Fenn fe2c7e8c87 Fixed the crash with chisels <,< 2014-06-21 10:41:26 +01:00
Fenn 3ef784b494 Updated the forge version, ready for later builds 2014-06-17 17:30:17 +01:00
Fenn dda524ceb9 Using GameRegistry instead of CraftingManager 2014-06-16 19:11:29 +01:00
Fenn 56d6ec1ed9 Fixed dirt stuff.
This will shift the metadata in the world, though :/
2014-06-16 18:25:53 +01:00
Fenn b3c74bf57f Im a idiot. 2014-06-14 10:56:04 +01:00
Fenn 0780f7169a Fixed the crash bug in the latest forge, i think. 2014-06-14 10:49:32 +01:00
Fenn 8312a8eb81 Fixed dirt stuffs 2014-06-10 22:46:04 +01:00
Fenn 759be8775f Added in road line recipes, clears #9 2014-06-09 21:32:33 +01:00
Pokefenn 6026e2f7ec Merge pull request #10 from anti344/master
Connected blocks breaking render
2014-06-09 17:01:43 +01:00
Anton a362f7234e Removed unnessesary comment 2014-06-06 18:38:58 +03:00
Anton 4fe3ff22e0 Connected blocks breaking render 2014-06-06 18:37:39 +03:00
Fenn 065a13fac5 Updated gradle and mcmod.info 2014-06-04 23:05:36 +01:00
Fenn 77cb4055e4 1.5.4e 2014-06-01 14:01:12 +01:00
Fenn 63d7a76318 Metal/Gem blocks can be used for beacon bases, suggestion from GregoriousT :P 2014-05-31 20:29:35 +01:00
Fenn 93cdfa4905 Changed damage dropped on Glowstone block this fixes #8 2014-05-30 16:19:07 +01:00
Fenn 1df88f5587 Fixed a minor bug 2014-05-23 22:44:19 +01:00
Pokefenn 19826d4d91 Merge pull request #7 from Adaptivity/patch-1
Create ru_RU.lang
2014-05-15 08:23:09 +01:00
Anton 7d7c87eeca Create ru_RU.lang 2014-05-15 10:07:05 +04:00
Fenn 82a6c90c8c 1.5.4c, fixed a crash bug 2014-05-12 15:10:22 +01:00
Fenn d7f9007a28 STOP TELLING ME HOW TO LIVE MY LIFE 2014-05-12 08:33:43 +01:00
Pokefenn b2c052e577 Merge pull request #6 from joshiejack/patch-1
Update ChiselModCompatibility.java
2014-05-12 08:30:56 +01:00
joshiejack aa4e28dc47 Update ChiselModCompatibility.java
Mariculture, limestone was moved to it's own block in 1.7. Fixing the compatibility.
2014-05-12 05:58:22 +01:00
Fenn 46904ad5e6 There, gradle things~~~ 2014-05-05 20:12:34 +01:00
Pokefenn 80cb9e5bcb Merge pull request #2 from tambry/master
Fix startup crash about stack size
2014-05-05 16:42:31 +01:00
Raul Tambre b88dac18f9 Fix startup crash about stack size 2014-05-05 18:21:08 +03:00
Fenn ed90f90c0c Lavastone now emits light, fixed bug on Slabs
Slabs can't be placed in the top of a block, yet. I'm going to rewrite
it in the future.
2014-04-24 10:17:21 +01:00
Fenn 64e3b55ec3 Removed redundant System.out spam 2014-04-23 15:09:02 +01:00
Fenn f8510ae94c A few generic changes, and the Smashing Rock 2014-04-22 16:46:39 +01:00
Fenn fd4351711a Lots of changes, fixed a few crashes, and minor bugs. Also, doesnt need Asielib anymore 2014-04-21 19:13:15 +01:00
asiekierka 333c1d6596 move AsieLib dep to maven 2014-03-20 16:59:28 +01:00
asiekierka 48e0c168b6 Chisel 1.5.3 2014-03-18 19:29:34 +01:00
asiekierka 1525907cdd Chisel 1.5.2 2014-03-17 19:00:49 +01:00
asiekierka 1efc4a0ad4 Chisel 1.5.1 - add new textures, etc 2014-03-17 16:36:29 +01:00
asiekierka c79c767bb8 first commit 2014-03-16 22:26:43 +01:00
493 changed files with 23002 additions and 20459 deletions

No files matched your search

+19
View File
@@ -0,0 +1,19 @@
# This is the universal Text Editor Configuration
# for all GTNewHorizons projects
# See: https://editorconfig.org/
root = true
[*]
charset = utf-8
end_of_line = lf
indent_size = 4
indent_style = space
insert_final_newline = true
trim_trailing_whitespace = true
[*.{bat,ini}]
end_of_line = crlf
[*.{dtd,json,info,mcmeta,md,sh,svg,xml,xsd,xsl,yaml,yml}]
indent_size = 2
+2
View File
@@ -0,0 +1,2 @@
# Ignore spotlessApply reformat
8f026dad8fb7dcb86b68aaedf52ce12775b2af8d
+43 -15
View File
@@ -1,16 +1,44 @@
# text stuff
*.java text
*.sh text eol=lf
*.bat text eol=crlf
*.md text
* text eol=lf
#binary
*.dat binary
*.bin binary
*.png binary
*.exe binary
*.dll binary
*.zip binary
*.jar binary
*.7z binary
*.db binary
*.[jJ][aA][rR] binary
*.[pP][nN][gG] binary
*.[jJ][pP][gG] binary
*.[jJ][pP][eE][gG] binary
*.[gG][iI][fF] binary
*.[tT][iI][fF] binary
*.[tT][iI][fF][fF] binary
*.[iI][cC][oO] binary
*.[sS][vV][gG] text
*.[eE][pP][sS] binary
*.[xX][cC][fF] binary
*.[kK][aA][rR] binary
*.[mM]4[aA] binary
*.[mM][iI][dD] binary
*.[mM][iI][dD][iI] binary
*.[mM][pP]3 binary
*.[oO][gG][gG] binary
*.[rR][aA] binary
*.7[zZ] binary
*.[gG][zZ] binary
*.[tT][aA][rR] binary
*.[tT][gG][zZ] binary
*.[zZ][iI][pP] binary
*.[tT][cC][nN] binary
*.[sS][oO] binary
*.[dD][lL][lL] binary
*.[dD][yY][lL][iI][bB] binary
*.[pP][sS][dD] binary
*.[tT][tT][fF] binary
*.[oO][tT][fF] binary
*.[pP][aA][tT][cC][hH] -text
*.[bB][aA][tT] text eol=crlf
*.[cC][mM][dD] text eol=crlf
*.[pP][sS]1 text eol=crlf
*[aA][uU][tT][oO][gG][eE][nN][eE][rR][aA][tT][eE][dD]* binary
+51
View File
@@ -0,0 +1,51 @@
#!/usr/bin/env bash
# bashsupport disable=BP5006 # Global environment variables
RUNDIR="run" \
CRASH="crash-reports" \
SERVERLOG="server.log"
# enable nullglob to get 0 results when no match rather than the pattern
shopt -s nullglob
# store matches in array
crash_reports=("$RUNDIR/$CRASH/crash"*.txt)
# if array not empty there are crash_reports
if [ "${#crash_reports[@]}" -gt 0 ]; then
# get the latest crash_report from array
latest_crash_report="${crash_reports[-1]}"
{
printf 'Latest crash report detected %s:\n' "${latest_crash_report##*/}"
cat "$latest_crash_report"
} >&2
exit 1
fi
if grep --quiet --fixed-strings 'Fatal errors were detected' "$SERVERLOG"; then
{
printf 'Fatal errors detected:\n'
cat server.log
} >&2
exit 1
fi
if grep --quiet --fixed-strings 'The state engine was in incorrect state ERRORED and forced into state SERVER_STOPPED' \
"$SERVERLOG"; then
{
printf 'Server force stopped:'
cat server.log
} >&2
exit 1
fi
if ! grep --quiet --perl-regexp --only-matching '.+Done \(.+\)\! For help, type "help" or "\?"' "$SERVERLOG"; then
{
printf 'Server did not finish startup:'
cat server.log
} >&2
exit 1
fi
printf 'No crash reports detected'
exit 0
+13
View File
@@ -0,0 +1,13 @@
name: Build and test
on:
pull_request:
branches: [ master, main ]
push:
branches: [ master, main ]
jobs:
build-and-test:
uses: GTNewHorizons/GTNH-Actions-Workflows/.github/workflows/build-and-test.yml@master
secrets: inherit
+14
View File
@@ -0,0 +1,14 @@
name: Release tagged build
on:
push:
tags: [ '*' ]
permissions:
contents: write
jobs:
release-tags:
uses: GTNewHorizons/GTNH-Actions-Workflows/.github/workflows/release-tags.yml@master
secrets: inherit
+25 -42
View File
@@ -1,46 +1,29 @@
#eclipse
.project
.gradle
.settings
/.idea/
/run/
/build/
/eclipse/
.classpath
.metadata
org.*
bin
#idea
.idea
.project
/bin/
/config/
/crash-reports/
/logs/
options.txt
/saves/
usernamecache.json
banned-ips.json
banned-players.json
eula.txt
ops.json
server.properties
servers.dat
usercache.json
whitelist.json
/out/
*.iml
*.ipr
*.iws
out
classes
#gradle
build
.gradle
#runtime
eclipse
run
#mac
.DS_Store
*.command
#windows
Thumbs.db
#workspace
saves
asm
logs
screenshots
mods
lib
libs
#config I assume you want to keep your minecraft config and world out
#world this is taken care of with the run folder up at runtime you are actually removing the packages
*.txt
*.json
/server.properties
*.dat
*.psd
src/main/resources/mixins.*.json
*.bat
+46
View File
@@ -0,0 +1,46 @@
# Chisel
Changelog of Chisel.
### [#9 fix(gradle): fix gradle wrapper script and plugins](https://github.com/GTNewHorizons/Chisel/pull/9)
**Merge pull request #9 from GTNewHorizons/update-gradle**
* fix(gradle): fix gradle wrapper script and plugins
[39c135203e97cb7](https://github.com/GTNewHorizons/Chisel/commit/39c135203e97cb7)
by Martin Robertz *2021-04-29 19:25:47*
### No issue
**Present GUI should only open if its block is still present server side**
[5f8734093c85cfc](https://github.com/GTNewHorizons/Chisel/commit/5f8734093c85cfc)
by jss2a98aj *2021-05-07 14:27:04*
**update gradle**
[d4de4113898901c](https://github.com/GTNewHorizons/Chisel/commit/d4de4113898901c)
by DreamMasterXXL *2021-04-29 20:02:26*
**fix(gradle): fix gradle wrapper script and plugins**
* - Update the wrapper to 5.6.4
* - Switch to overminddl1 for Forge
* - Upgrade version and repository of Grgit
* TODO:
* Host an ivy for EquivalentExchange3-1.7.10-0.3.505-dev.jar
* at http://downloads.gtnewhorizons.com/Mods_for_Jenkins/
[ab83665d9aea1dc](https://github.com/GTNewHorizons/Chisel/commit/ab83665d9aea1dc)
by Léa Gris *2021-04-29 15:05:24*
**Revert "Merge branch '1.7/release' into 1.7/release"**
* This reverts commit e02c02d35c644ef288b4d275dc1cb0b97da74b5b, reversing
* changes made to c5e8645d1aa3c84ee80320fb71b4a5ecd70dab5d.
[d3b68032cd2a950](https://github.com/GTNewHorizons/Chisel/commit/d3b68032cd2a950)
by glowredman *2021-03-23 13:14:46*
**Merge branch '1.7/release' into 1.7/release**
[e02c02d35c644ef](https://github.com/GTNewHorizons/Chisel/commit/e02c02d35c644ef)
by glowredman *2021-03-23 11:22:39*
+3
View File
@@ -0,0 +1,3 @@
# Any Github changes require admin approval
/.github/** @GTNewHorizons/admin
+2 -3
View File
@@ -15,7 +15,7 @@ To set up the mod as to allow you to make changes, do the following:
### IntelliJ IDEA
1. Run `gradlew idea`.
2. Open IntelliJ and point to either the project folder or the build.gradle file.
2. Open IntelliJ and point to either the project folder or the `build.gradle` file.
3. After opening the project in IntelliJ, run `gradlew genIntellijRuns` in the command terminal you opened earlier.
### Eclipse
@@ -24,9 +24,8 @@ To set up the mod as to allow you to make changes, do the following:
2. Open Eclipse and import the folder as a project.
You now have a functional local copy of Chisel, ready to develop on.
___
Formatting
----------
When coding for Chisel 2, please use the provided [formatter settings](eclipseFormat.xml) to format your code. Poorly formatted code, or PRs which reformat existing code will likely not be accepted.
When coding for the GTNH branch, please run `gradlew spotlessApply` before posting a PR.
+10 -17
View File
@@ -1,20 +1,18 @@
Chisel 2
Chisel
=======
Chisel is a mod for Minecraft which adds aesthetic blocks to the game through the use of a chisel.
Chisel is a mod for Minecraft which adds aesthetic blocks to the game through the use of a chisel.
Originally created by
AUTOMATIC_MAIDEN, it was ported to Minecraft 1.7.2 by asie, and maintained by Pokefenn during 1.7.10.
Originally created by AUTOMATIC_MAIDEN, it was ported to Minecraft 1.7.2 by asie, and maintained by Pokefenn/Cricket during 1.7.10.
The second iteration of the mod contains loads of new blocks, new features like the autochisel and chisel modes, and lots of bugfixes.
This version of the mod contains loads of new blocks, new features like the Auto Chisel and chisel modes, and lots of bugfixes.
It is maintained by [Cricket](github.com/TheCricket), [tterrag](github.com/tterrag1098), [warlordjones](github.com/warlordjones), [Drullkus](github.com/Drullkus) (Artist), and [CptSpaceToaster](github.com/CptSpaceToaster).
It was previously maintained by [tterrag](http://github.com/tterrag1098), [Drullkus](http://github.com/Drullkus) (Artist), and [minecreatr](http://github.com/minecreatr) (1.8 Port). Forked and maintained by the GTNH team for use in the GTNH modpack.
Pull Requests
---------------
Pull requests with new features, translations, and bugfixes are very welcome. Please make sure to always submit PRs against the ***dev*** branch, not master.
Do not make PRs that are solely formatting or other aesthetic things.
Pull requests with new features, translations, and bugfixes are very welcome.
If your PR is going to take a lot of work, it may be best to make an issue so we can discuss the feature before you create it.
@@ -22,14 +20,9 @@ See the [CONTRIBUTING](CONTRIBUTING.md) file for more details.
Issue Reporting
----------------
If you wish to report an issue with the mod, please submit one to the issue tracker in this repository. When creating an
If you wish to report an issue with this version of the mod, please submit one to the [GTNH issue tracker](https://github.com/GTNewHorizons/GT-New-Horizons-Modpack/issues). When creating an
issue, please be sure to include:
- The version of Chisel 2 you are using ("latest" is not an acceptable version)
- The version of Forge you are using
- If applicable, the crash report (preferably via [Pastebin](http://pastebin.com/)). generated by the error
- The version of Chisel or GTNH you are using ("latest" is not an acceptable version)
- The crash report (preferably via [Pastebin](http://pastebin.com/)) generated by the error, if any
- Depending on the error, an image of the problem
Development Builds
----------------
http://coloredlightscore.us.to:8080/job/Chisel-2%20v1.7.10-Dev/
+1551 -138
View File
File diff suppressed because it is too large. Load diff
+102 -3
View File
@@ -1,9 +1,97 @@
2.9.7-GTNH:
Fixes
- refactor(carving): efficiency and modernize
- feat(input slot): add item validation
Add Item validation to input slot, so that only chisellable items can be inserted.
Prevents insertion of random items and abuse of Chisels as a single-slot backpack.
- fix(i18n): autochisel upgrades names
Fix code handling slots and upgrade localized names Sync locale files
- fix(i18n): aluminum stairs
add missing aluminum stairs translations keys
- fix(blocks): remove extraneous aluminum stairs
Note world will backup due to removed ItemIDs and BlockIDs
```none
chisel:aluminum_stairs.3
chisel:aluminum_stairs.4
chisel:aluminum_stairs.5
chisel:aluminum_stairs.6
chisel:aluminum_stairs.7
```
- fix(slabs): hide top slab items
Registering the top slab block to the `ItemBlock.class` rather than the `ItemCarvableSlab.class`,
prevents the top slab items to show-up in NEI while maintaining compatibility with existing worlds.
- fix(texture): framed endstone
Fixed resource assets of framed endstone that caused error loading texture
2.9.6-GTNH:
Changes
- Improve mode selection button with visual layout
- Replace mode selection button's text, with layout pictures.
- Refactor some GUI implementations.
- Prepare GUI layout for a future TODO scrollbar.
2.9.5-GTNH:
Fixes
- Don't allow chiseling of TileEntity
2.9.4:
Changes
- Flammable stuff is now actually flammable, e.g. bookshelves, planks (Cricket)
- Add some text to crash logs about those pesky "Unable to lookup" errors
Fixes
- #52 Fix not being able to chisel endstone
- #69 Allow the Autochisel to function properly when upgrades are disabled. It will function as if it has all ugprades (except reversion).
- Chisel-2#433 Fix andesite and granite recipes not checking for disabled diorite
- #60 Fix crash when AE2 decorative quartz is disabled
2.9.3:
Changes
- Beacon rendering has been improved to show the color of the beacon in the item
- White beacon, which was identical to the vanilla one, is now the RAINBOW BEACON
Fixes
- #43 Top slabs are unnamed
- Fix AT not running on new forge versions (caused things like the special item rendering in the chisel GUI to not work)
- Fix all potential issues with the chisel GUI and blocks that take the item in your hand
- Fix chisel not rendering correctly in caches, etc.
- Fix chiseled beacon pick block, sub blocks, and drops
2.9.2:
Changes
- In-world chiseling is now possible in creative
- Update changelog looks, and some improvements to gradle script
Fixes
- #22 Fix crash when using shift while in-world chiseling
- #13 Fix buggy text rendering in chisel GUI without NEI present
- #25 Fix gradle script for relative directories
2.9.1:
Changes
- While holding shift, left-click chiseling order will be reversed (Cricket)
- Concrete now has a full bounding box, and the method of speeding up the player has been redone to be much less frustrating
Fixes
- Fix TOPBOTSIDE blocks (like the battery) being broken and showing the top texture on the bottom
- Fix compatibility endstone blocks being in the wrong group (minecreatr)
API
- Fix ChiselTabs referencing internal classes in imports
2.9.0:
Version is 2.9 while work on 3.0 is done. This is to avoid version clashes with Chisel 2.
New
- Concrete technical block
Changes
- Update to CTMLib 1.3.0
Fixes
- Fix blocks with stairs (ice, packed ice) not being chiselable properly.
- Fix stairs not being chiselable
API
- Allow access to creative tabs
CT2.5.0:
New
- Lots of new endstone variants
- Purpur blocks
- New technical blocks (piping, battery, and more)
Changes
- Under new management! Name of the project has been changed to "Chisel"
- Now includes CTMLib 1.2.0-10
@@ -12,7 +100,6 @@ Changes
- Removed special player rendering
- Fixed EMC registrations so that they are actually dynamic
- Lavastone and Waterstone now use the still texture, not flowing
Fixes
- Fix "The Turkey Bug"
- Fix crash when an unchiselable item made its way into the autochisel
@@ -20,10 +107,22 @@ Fixes
- Fix antiblocks not working when smooth lighting is off
- Fix Botania compat
- Fix pick block on bookshelves
API
- Add IConnectable for allowing other blocks to determine if chisel blocks will connect to them
2.5.0:
New
- Connected Textured Blocks should show in the chisel menu
- Beacons!
- Piping
- 1.9 Blocks
Changes
- Limestone gets a new look
- Ball of moss is cheaper
Fixes
- Bookshelves pick block
- Assorted other bugs got squished
2.4.1:
New
- New UberWavy futura block
+22
View File
@@ -0,0 +1,22 @@
// Add your dependencies here
dependencies {
implementation("com.github.GTNewHorizons:CodeChickenCore:1.2.0:dev")
implementation("com.github.GTNewHorizons:CodeChickenLib:1.2.0:dev")
implementation("com.github.GTNewHorizons:NotEnoughItems:2.4.13-GTNH:dev")
implementation("com.github.GTNewHorizons:ForgeMultipart:1.4.3:dev")
compileOnly("org.projectlombok:lombok:1.18.24")
annotationProcessor("org.projectlombok:lombok:1.18.24")
shadowImplementation("com.github.GTNewHorizons:CTMLib:1.4.4:dev")
devOnlyNonPublishable("com.github.GTNewHorizons:waila:1.6.5:dev") {
transitive = false
}
devOnlyNonPublishable("com.github.GTNewHorizons:WailaHarvestability:1.1.10-GTNH:dev")
compileOnly("curse.maven:ee3-65509:2305023") { // https://www.curseforge.com/minecraft/mc-mods/ee3/files/2305023
transitive = false
}
}
-295
View File
@@ -1,295 +0,0 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<profiles version="12">
<profile kind="CodeFormatterProfile" name="Chisel2" version="12">
<setting id="org.eclipse.jdt.core.formatter.insert_space_after_ellipsis" value="insert"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_after_comma_in_enum_declarations" value="insert"/>
<setting id="org.eclipse.jdt.core.formatter.insert_new_line_in_empty_annotation_declaration" value="insert"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_before_comma_in_allocation_expression" value="do not insert"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_before_at_in_annotation_type_declaration" value="insert"/>
<setting id="org.eclipse.jdt.core.formatter.comment.new_lines_at_block_boundaries" value="true"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_after_comma_in_constructor_declaration_parameters" value="insert"/>
<setting id="org.eclipse.jdt.core.formatter.comment.insert_new_line_for_parameter" value="insert"/>
<setting id="org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_package" value="insert"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_enum_constant" value="do not insert"/>
<setting id="org.eclipse.jdt.core.formatter.blank_lines_after_imports" value="1"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_while" value="do not insert"/>
<setting id="org.eclipse.jdt.core.formatter.comment.insert_new_line_before_root_tags" value="insert"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_annotation_type_member_declaration" value="do not insert"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_before_comma_in_method_declaration_throws" value="do not insert"/>
<setting id="org.eclipse.jdt.core.formatter.comment.format_javadoc_comments" value="true"/>
<setting id="org.eclipse.jdt.core.formatter.indentation.size" value="4"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_after_postfix_operator" value="do not insert"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_after_comma_in_for_increments" value="insert"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_after_comma_in_type_arguments" value="insert"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_before_comma_in_for_inits" value="do not insert"/>
<setting id="org.eclipse.jdt.core.formatter.insert_new_line_in_empty_anonymous_type_declaration" value="insert"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_after_semicolon_in_for" value="insert"/>
<setting id="org.eclipse.jdt.core.formatter.disabling_tag" value="@formatter:off"/>
<setting id="org.eclipse.jdt.core.formatter.continuation_indentation" value="2"/>
<setting id="org.eclipse.jdt.core.formatter.alignment_for_enum_constants" value="49"/>
<setting id="org.eclipse.jdt.core.formatter.blank_lines_before_imports" value="1"/>
<setting id="org.eclipse.jdt.core.formatter.blank_lines_after_package" value="1"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_after_binary_operator" value="insert"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_after_comma_in_multiple_local_declarations" value="insert"/>
<setting id="org.eclipse.jdt.core.formatter.alignment_for_arguments_in_enum_constant" value="1"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_after_opening_angle_bracket_in_parameterized_type_reference" value="do not insert"/>
<setting id="org.eclipse.jdt.core.formatter.comment.indent_root_tags" value="true"/>
<setting id="org.eclipse.jdt.core.formatter.wrap_before_or_operator_multicatch" value="true"/>
<setting id="org.eclipse.jdt.core.formatter.enabling_tag" value="@formatter:on"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_after_closing_brace_in_block" value="insert"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_before_parenthesized_expression_in_return" value="insert"/>
<setting id="org.eclipse.jdt.core.formatter.alignment_for_throws_clause_in_method_declaration" value="16"/>
<setting id="org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_parameter" value="do not insert"/>
<setting id="org.eclipse.jdt.core.formatter.keep_then_statement_on_same_line" value="false"/>
<setting id="org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_field" value="insert"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_after_comma_in_explicitconstructorcall_arguments" value="insert"/>
<setting id="org.eclipse.jdt.core.formatter.insert_new_line_in_empty_block" value="insert"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_after_prefix_operator" value="do not insert"/>
<setting id="org.eclipse.jdt.core.formatter.blank_lines_between_type_declarations" value="1"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_before_closing_brace_in_array_initializer" value="insert"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_for" value="do not insert"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_catch" value="do not insert"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_after_opening_angle_bracket_in_type_arguments" value="do not insert"/>
<setting id="org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_method" value="insert"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_switch" value="do not insert"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_anonymous_type_declaration" value="insert"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_parenthesized_expression" value="do not insert"/>
<setting id="org.eclipse.jdt.core.formatter.never_indent_line_comments_on_first_column" value="false"/>
<setting id="org.eclipse.jdt.core.compiler.problem.enumIdentifier" value="error"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_after_and_in_type_parameter" value="insert"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_after_comma_in_for_inits" value="insert"/>
<setting id="org.eclipse.jdt.core.formatter.indent_statements_compare_to_block" value="true"/>
<setting id="org.eclipse.jdt.core.formatter.brace_position_for_anonymous_type_declaration" value="end_of_line"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_before_question_in_wildcard" value="do not insert"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_annotation" value="do not insert"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_before_comma_in_method_invocation_arguments" value="do not insert"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_switch" value="insert"/>
<setting id="org.eclipse.jdt.core.formatter.comment.line_length" value="200"/>
<setting id="org.eclipse.jdt.core.formatter.use_on_off_tags" value="true"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_between_empty_brackets_in_array_allocation_expression" value="do not insert"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_enum_constant" value="insert"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_method_invocation" value="do not insert"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_after_assignment_operator" value="insert"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_type_declaration" value="insert"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_for" value="do not insert"/>
<setting id="org.eclipse.jdt.core.formatter.comment.preserve_white_space_between_code_and_line_comments" value="false"/>
<setting id="org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_local_variable" value="insert"/>
<setting id="org.eclipse.jdt.core.formatter.brace_position_for_method_declaration" value="end_of_line"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_method_invocation" value="do not insert"/>
<setting id="org.eclipse.jdt.core.formatter.alignment_for_union_type_in_multicatch" value="16"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_after_colon_in_for" value="insert"/>
<setting id="org.eclipse.jdt.core.formatter.number_of_blank_lines_at_beginning_of_method_body" value="0"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_after_closing_angle_bracket_in_type_arguments" value="insert"/>
<setting id="org.eclipse.jdt.core.formatter.keep_else_statement_on_same_line" value="false"/>
<setting id="org.eclipse.jdt.core.formatter.alignment_for_binary_expression" value="16"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_after_comma_in_parameterized_type_reference" value="insert"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_before_comma_in_array_initializer" value="do not insert"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_after_comma_in_multiple_field_declarations" value="insert"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_before_comma_in_annotation" value="do not insert"/>
<setting id="org.eclipse.jdt.core.formatter.alignment_for_arguments_in_explicit_constructor_call" value="16"/>
<setting id="org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_annotation_declaration_header" value="true"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_after_comma_in_superinterfaces" value="insert"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_before_colon_in_default" value="do not insert"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_after_question_in_conditional" value="insert"/>
<setting id="org.eclipse.jdt.core.formatter.brace_position_for_block" value="end_of_line"/>
<setting id="org.eclipse.jdt.core.formatter.brace_position_for_constructor_declaration" value="end_of_line"/>
<setting id="org.eclipse.jdt.core.formatter.brace_position_for_lambda_body" value="end_of_line"/>
<setting id="org.eclipse.jdt.core.formatter.compact_else_if" value="true"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_before_comma_in_type_parameters" value="do not insert"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_catch" value="insert"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_method_invocation" value="do not insert"/>
<setting id="org.eclipse.jdt.core.formatter.put_empty_statement_on_new_line" value="true"/>
<setting id="org.eclipse.jdt.core.formatter.alignment_for_parameters_in_constructor_declaration" value="16"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_after_comma_in_method_invocation_arguments" value="insert"/>
<setting id="org.eclipse.jdt.core.formatter.alignment_for_arguments_in_method_invocation" value="16"/>
<setting id="org.eclipse.jdt.core.formatter.alignment_for_throws_clause_in_constructor_declaration" value="16"/>
<setting id="org.eclipse.jdt.core.compiler.problem.assertIdentifier" value="error"/>
<setting id="org.eclipse.jdt.core.formatter.comment.clear_blank_lines_in_block_comment" value="false"/>
<setting id="org.eclipse.jdt.core.formatter.insert_new_line_before_catch_in_try_statement" value="do not insert"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_try" value="insert"/>
<setting id="org.eclipse.jdt.core.formatter.insert_new_line_at_end_of_file_if_missing" value="do not insert"/>
<setting id="org.eclipse.jdt.core.formatter.comment.clear_blank_lines_in_javadoc_comment" value="false"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_after_comma_in_array_initializer" value="insert"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_before_binary_operator" value="insert"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_before_unary_operator" value="do not insert"/>
<setting id="org.eclipse.jdt.core.formatter.alignment_for_expressions_in_array_initializer" value="16"/>
<setting id="org.eclipse.jdt.core.formatter.format_line_comment_starting_on_first_column" value="true"/>
<setting id="org.eclipse.jdt.core.formatter.number_of_empty_lines_to_preserve" value="1"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_after_colon_in_case" value="insert"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_before_ellipsis" value="do not insert"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_before_semicolon_in_try_resources" value="do not insert"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_after_colon_in_assert" value="insert"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_if" value="do not insert"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_before_comma_in_type_arguments" value="do not insert"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_before_and_in_type_parameter" value="insert"/>
<setting id="org.eclipse.jdt.core.formatter.insert_new_line_in_empty_type_declaration" value="insert"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_parenthesized_expression" value="do not insert"/>
<setting id="org.eclipse.jdt.core.formatter.comment.format_line_comments" value="true"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_after_colon_in_labeled_statement" value="insert"/>
<setting id="org.eclipse.jdt.core.formatter.align_type_members_on_columns" value="false"/>
<setting id="org.eclipse.jdt.core.formatter.alignment_for_assignment" value="0"/>
<setting id="org.eclipse.jdt.core.formatter.insert_new_line_in_empty_method_body" value="insert"/>
<setting id="org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_type_header" value="true"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_method_declaration" value="do not insert"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_enum_constant" value="do not insert"/>
<setting id="org.eclipse.jdt.core.formatter.alignment_for_superinterfaces_in_type_declaration" value="16"/>
<setting id="org.eclipse.jdt.core.formatter.blank_lines_before_first_class_body_declaration" value="1"/>
<setting id="org.eclipse.jdt.core.formatter.alignment_for_conditional_expression" value="80"/>
<setting id="org.eclipse.jdt.core.formatter.insert_new_line_before_closing_brace_in_array_initializer" value="do not insert"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_before_comma_in_constructor_declaration_parameters" value="do not insert"/>
<setting id="org.eclipse.jdt.core.formatter.format_guardian_clause_on_one_line" value="false"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_if" value="insert"/>
<setting id="org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_type" value="insert"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_block" value="insert"/>
<setting id="org.eclipse.jdt.core.formatter.brace_position_for_enum_declaration" value="end_of_line"/>
<setting id="org.eclipse.jdt.core.formatter.brace_position_for_block_in_case" value="end_of_line"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_constructor_declaration" value="do not insert"/>
<setting id="org.eclipse.jdt.core.formatter.comment.format_header" value="false"/>
<setting id="org.eclipse.jdt.core.formatter.alignment_for_arguments_in_allocation_expression" value="16"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_method_invocation" value="do not insert"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_while" value="insert"/>
<setting id="org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode" value="enabled"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_switch" value="do not insert"/>
<setting id="org.eclipse.jdt.core.formatter.alignment_for_method_declaration" value="0"/>
<setting id="org.eclipse.jdt.core.formatter.join_wrapped_lines" value="true"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_constructor_declaration" value="do not insert"/>
<setting id="org.eclipse.jdt.core.formatter.indent_switchstatements_compare_to_cases" value="true"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_before_closing_bracket_in_array_allocation_expression" value="do not insert"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_synchronized" value="do not insert"/>
<setting id="org.eclipse.jdt.core.formatter.comment.new_lines_at_javadoc_boundaries" value="true"/>
<setting id="org.eclipse.jdt.core.formatter.brace_position_for_annotation_type_declaration" value="end_of_line"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_before_colon_in_for" value="insert"/>
<setting id="org.eclipse.jdt.core.formatter.alignment_for_resources_in_try" value="80"/>
<setting id="org.eclipse.jdt.core.formatter.use_tabs_only_for_leading_indentations" value="false"/>
<setting id="org.eclipse.jdt.core.formatter.alignment_for_selector_in_method_invocation" value="16"/>
<setting id="org.eclipse.jdt.core.formatter.never_indent_block_comments_on_first_column" value="false"/>
<setting id="org.eclipse.jdt.core.compiler.source" value="1.8"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_synchronized" value="do not insert"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_after_comma_in_constructor_declaration_throws" value="insert"/>
<setting id="org.eclipse.jdt.core.formatter.tabulation.size" value="4"/>
<setting id="org.eclipse.jdt.core.formatter.insert_new_line_in_empty_enum_constant" value="insert"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_after_comma_in_allocation_expression" value="insert"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_after_opening_bracket_in_array_reference" value="do not insert"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_after_colon_in_conditional" value="insert"/>
<setting id="org.eclipse.jdt.core.formatter.comment.format_source_code" value="true"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_array_initializer" value="insert"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_try" value="do not insert"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_after_semicolon_in_try_resources" value="insert"/>
<setting id="org.eclipse.jdt.core.formatter.blank_lines_before_field" value="0"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_after_at_in_annotation" value="do not insert"/>
<setting id="org.eclipse.jdt.core.formatter.continuation_indentation_for_array_initializer" value="2"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_after_question_in_wildcard" value="do not insert"/>
<setting id="org.eclipse.jdt.core.formatter.blank_lines_before_method" value="1"/>
<setting id="org.eclipse.jdt.core.formatter.alignment_for_superclass_in_type_declaration" value="16"/>
<setting id="org.eclipse.jdt.core.formatter.alignment_for_superinterfaces_in_enum_declaration" value="16"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_before_parenthesized_expression_in_throw" value="insert"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_before_colon_in_labeled_statement" value="do not insert"/>
<setting id="org.eclipse.jdt.core.compiler.codegen.targetPlatform" value="1.8"/>
<setting id="org.eclipse.jdt.core.formatter.brace_position_for_switch" value="end_of_line"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_before_comma_in_superinterfaces" value="do not insert"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_after_comma_in_method_declaration_parameters" value="insert"/>
<setting id="org.eclipse.jdt.core.formatter.insert_new_line_after_type_annotation" value="do not insert"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_after_opening_brace_in_array_initializer" value="insert"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_parenthesized_expression" value="do not insert"/>
<setting id="org.eclipse.jdt.core.formatter.comment.format_html" value="true"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_after_at_in_annotation_type_declaration" value="do not insert"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_after_closing_angle_bracket_in_type_parameters" value="insert"/>
<setting id="org.eclipse.jdt.core.formatter.alignment_for_compact_if" value="16"/>
<setting id="org.eclipse.jdt.core.formatter.indent_empty_lines" value="false"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_before_comma_in_parameterized_type_reference" value="do not insert"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_after_unary_operator" value="do not insert"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_enum_constant" value="do not insert"/>
<setting id="org.eclipse.jdt.core.formatter.alignment_for_arguments_in_annotation" value="0"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_before_comma_in_enum_declarations" value="do not insert"/>
<setting id="org.eclipse.jdt.core.formatter.keep_empty_array_initializer_on_one_line" value="false"/>
<setting id="org.eclipse.jdt.core.formatter.indent_switchstatements_compare_to_switch" value="false"/>
<setting id="org.eclipse.jdt.core.formatter.insert_new_line_before_else_in_if_statement" value="do not insert"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_before_assignment_operator" value="insert"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_constructor_declaration" value="do not insert"/>
<setting id="org.eclipse.jdt.core.formatter.blank_lines_before_new_chunk" value="1"/>
<setting id="org.eclipse.jdt.core.formatter.insert_new_line_after_label" value="do not insert"/>
<setting id="org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_enum_declaration_header" value="true"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_after_opening_bracket_in_array_allocation_expression" value="do not insert"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_constructor_declaration" value="do not insert"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_before_colon_in_conditional" value="insert"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_before_opening_angle_bracket_in_parameterized_type_reference" value="do not insert"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_before_comma_in_method_declaration_parameters" value="do not insert"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_before_closing_angle_bracket_in_type_arguments" value="do not insert"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_cast" value="do not insert"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_before_colon_in_assert" value="insert"/>
<setting id="org.eclipse.jdt.core.formatter.blank_lines_before_member_type" value="1"/>
<setting id="org.eclipse.jdt.core.formatter.insert_new_line_before_while_in_do_statement" value="do not insert"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_before_opening_bracket_in_array_type_reference" value="do not insert"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_before_closing_angle_bracket_in_parameterized_type_reference" value="do not insert"/>
<setting id="org.eclipse.jdt.core.formatter.alignment_for_arguments_in_qualified_allocation_expression" value="16"/>
<setting id="org.eclipse.jdt.core.formatter.insert_new_line_after_opening_brace_in_array_initializer" value="do not insert"/>
<setting id="org.eclipse.jdt.core.formatter.insert_new_line_in_empty_enum_declaration" value="insert"/>
<setting id="org.eclipse.jdt.core.formatter.indent_breaks_compare_to_cases" value="true"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_method_declaration" value="do not insert"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_if" value="do not insert"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_before_semicolon" value="do not insert"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_before_postfix_operator" value="do not insert"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_try" value="do not insert"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_before_opening_angle_bracket_in_type_arguments" value="do not insert"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_cast" value="do not insert"/>
<setting id="org.eclipse.jdt.core.formatter.comment.format_block_comments" value="true"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_before_lambda_arrow" value="insert"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_method_declaration" value="do not insert"/>
<setting id="org.eclipse.jdt.core.formatter.keep_imple_if_on_one_line" value="false"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_enum_declaration" value="insert"/>
<setting id="org.eclipse.jdt.core.formatter.alignment_for_parameters_in_method_declaration" value="16"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_between_brackets_in_array_type_reference" value="do not insert"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_before_opening_angle_bracket_in_type_parameters" value="do not insert"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_before_semicolon_in_for" value="do not insert"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_after_comma_in_method_declaration_throws" value="insert"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_before_opening_bracket_in_array_allocation_expression" value="do not insert"/>
<setting id="org.eclipse.jdt.core.formatter.indent_statements_compare_to_body" value="true"/>
<setting id="org.eclipse.jdt.core.formatter.alignment_for_multiple_fields" value="16"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_after_comma_in_enum_constant_arguments" value="insert"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_before_prefix_operator" value="do not insert"/>
<setting id="org.eclipse.jdt.core.formatter.brace_position_for_array_initializer" value="end_of_line"/>
<setting id="org.eclipse.jdt.core.formatter.wrap_before_binary_operator" value="true"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_method_declaration" value="insert"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_after_comma_in_type_parameters" value="insert"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_catch" value="do not insert"/>
<setting id="org.eclipse.jdt.core.compiler.compliance" value="1.8"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_before_closing_bracket_in_array_reference" value="do not insert"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_after_comma_in_annotation" value="insert"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_before_comma_in_enum_constant_arguments" value="do not insert"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_between_empty_braces_in_array_initializer" value="do not insert"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_before_colon_in_case" value="do not insert"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_before_comma_in_multiple_local_declarations" value="do not insert"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_annotation_type_declaration" value="insert"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_before_opening_bracket_in_array_reference" value="do not insert"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_method_declaration" value="do not insert"/>
<setting id="org.eclipse.jdt.core.formatter.wrap_outer_expressions_when_nested" value="true"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_after_closing_paren_in_cast" value="insert"/>
<setting id="org.eclipse.jdt.core.formatter.brace_position_for_enum_constant" value="end_of_line"/>
<setting id="org.eclipse.jdt.core.formatter.brace_position_for_type_declaration" value="end_of_line"/>
<setting id="org.eclipse.jdt.core.formatter.blank_lines_before_package" value="0"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_for" value="insert"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_synchronized" value="insert"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_before_comma_in_for_increments" value="do not insert"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_annotation_type_member_declaration" value="do not insert"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_while" value="do not insert"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_enum_constant" value="do not insert"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_before_comma_in_explicitconstructorcall_arguments" value="do not insert"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_annotation" value="do not insert"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_after_opening_angle_bracket_in_type_parameters" value="do not insert"/>
<setting id="org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_enum_constant_header" value="true"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_after_lambda_arrow" value="insert"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_constructor_declaration" value="insert"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_before_comma_in_constructor_declaration_throws" value="do not insert"/>
<setting id="org.eclipse.jdt.core.formatter.join_lines_in_comments" value="true"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_before_closing_angle_bracket_in_type_parameters" value="do not insert"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_before_question_in_conditional" value="insert"/>
<setting id="org.eclipse.jdt.core.formatter.comment.indent_parameter_description" value="true"/>
<setting id="org.eclipse.jdt.core.formatter.insert_new_line_before_finally_in_try_statement" value="do not insert"/>
<setting id="org.eclipse.jdt.core.formatter.tabulation.char" value="tab"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_before_comma_in_multiple_field_declarations" value="do not insert"/>
<setting id="org.eclipse.jdt.core.formatter.blank_lines_between_import_groups" value="1"/>
<setting id="org.eclipse.jdt.core.formatter.lineSplit" value="200"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_annotation" value="do not insert"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_switch" value="insert"/>
</profile>
</profiles>
+65 -10
View File
@@ -1,12 +1,67 @@
mod_version=CT2.5.0
minecraft_version=1.7.10
forge_version=10.13.4.1481-1.7.10
modName = Chisel
ctmlib_version=1.2.0-10
ccl_version=1.1.3.140
ccc_version=1.0.7.46
nei_version=1.0.5.111
waila_version=1.5.10
fmp_version=1.2.0.344
# This is a case-sensitive string to identify your mod. Convention is to use lower case.
modId = chisel
projectId=235279
modGroup = com.cricketcraft.chisel
# WHY is there no version field?
# The build script relies on git to provide a version via tags. It is super easy and will enable you to always know the
# code base or your binary. Check out this tutorial: https://blog.mattclemente.com/2017/10/13/versioning-with-git-tags/
# Will update your build.gradle automatically whenever an update is available
autoUpdateBuildScript = false
minecraftVersion = 1.7.10
forgeVersion = 10.13.4.1614
# Select a username for testing your mod with breakpoints. You may leave this empty for a random user name each time you
# restart Minecraft in development. Choose this dependent on your mod:
# Do you need consistent player progressing (for example Thaumcraft)? -> Select a name
# Do you need to test how your custom blocks interacts with a player that is not the owner? -> leave name empty
developmentEnvironmentUserName = "Developer"
# Define a source file of your project with:
# public static final String VERSION = "GRADLETOKEN_VERSION";
# The string's content will be replaced with your mods version when compiled. You should use this to specify your mod's
# version in @Mod([...], version = VERSION, [...])
# Leave these properties empty to skip individual token replacements
replaceGradleTokenInFile = Chisel.java
gradleTokenModId =
gradleTokenModName =
gradleTokenVersion = GRADLETOKEN_VERSION
gradleTokenGroupName =
# In case your mod provides an API for other mods to implement you may declare its package here. Otherwise you can
# leave this property empty.
# Example value: apiPackage = api + modGroup = com.myname.mymodid -> com.myname.mymodid.api
apiPackage = api
# Specify the configuration file for Forge's access transformers here. I must be placed into /src/main/resources/META-INF/
# Example value: mymodid_at.cfg
accessTransformersFile = chisel_compile_at.cfg
# Provides setup for Mixins if enabled. If you don't know what mixins are: Keep it disabled!
usesMixins = false
# Specify the location of your implementation of IMixinConfigPlugin. Leave it empty otherwise.
mixinPlugin =
# Specify the package that contains all of your Mixins. You may only place Mixins in this package or the build will fail!
mixinsPackage =
# Specify the core mod entry class if you use a core mod. This class must implement IFMLLoadingPlugin!
# This parameter is for legacy compatability only
# Example value: coreModClass = asm.FMLPlugin + modGroup = com.myname.mymodid -> com.myname.mymodid.asm.FMLPlugin
coreModClass =
# If your project is only a consolidation of mixins or a core mod and does NOT contain a 'normal' mod ( = some class
# that is annotated with @Mod) you want this to be true. When in doubt: leave it on false!
containsMixinsAndOrCoreModOnly = false
# If enabled, you may use 'shadowImplementation' for dependencies. They will be integrated in your jar. It is your
# responsibility check the licence and request permission for distribution, if required.
usesShadowedDependencies = true
# Optional parameter to customize the produced artifacts. Use this to preserver artifact naming when migrating older
# projects. New projects should not use this parameter.
#customArchiveBaseName =
# Use the team.chisel.ctmlib package name for CTMLib like upstream Chisel (needed by Techguns)
relocateShadowedDependencies = false
Binary file not shown.
+3 -2
View File
@@ -1,6 +1,7 @@
#Thu Jan 08 23:20:41 CST 2015
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.5-bin.zip
networkTimeout=10000
validateDistributionUrl=true
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-2.2.1-bin.zip
Vendored
+202 -118
View File
@@ -1,79 +1,126 @@
#!/usr/bin/env bash
#!/bin/sh
#
# Copyright © 2015-2021 the original authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
##############################################################################
##
## Gradle start up script for UN*X
##
#
# Gradle start up script for POSIX generated by Gradle.
#
# Important for running:
#
# (1) You need a POSIX-compliant shell to run this script. If your /bin/sh is
# noncompliant, but you have some other compliant shell such as ksh or
# bash, then to run this script, type that shell name before the whole
# command line, like:
#
# ksh Gradle
#
# Busybox and similar reduced shells will NOT work, because this script
# requires all of these POSIX shell features:
# * functions;
# * expansions «$var», «${var}», «${var:-default}», «${var+SET}»,
# «${var#prefix}», «${var%suffix}», and «$( cmd )»;
# * compound commands having a testable exit status, especially «case»;
# * various built-in commands including «command», «set», and «ulimit».
#
# Important for patching:
#
# (2) This script targets any POSIX shell, so it avoids extensions provided
# by Bash, Ksh, etc; in particular arrays are avoided.
#
# The "traditional" practice of packing multiple parameters into a
# space-separated string is a well documented source of bugs and security
# problems, so this is (mostly) avoided, by progressively accumulating
# options in "$@", and eventually passing that to Java.
#
# Where the inherited environment variables (DEFAULT_JVM_OPTS, JAVA_OPTS,
# and GRADLE_OPTS) rely on word-splitting, this is performed explicitly;
# see the in-line comments for details.
#
# There are tweaks for specific operating systems such as AIX, CygWin,
# Darwin, MinGW, and NonStop.
#
# (3) This script is generated from the Groovy template
# https://github.com/gradle/gradle/blob/HEAD/subprojects/plugins/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt
# within the Gradle project.
#
# You can find Gradle at https://github.com/gradle/gradle/.
#
##############################################################################
# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
DEFAULT_JVM_OPTS=""
# Attempt to set APP_HOME
APP_NAME="Gradle"
APP_BASE_NAME=`basename "$0"`
# Resolve links: $0 may be a link
app_path=$0
# Need this for daisy-chained symlinks.
while
APP_HOME=${app_path%"${app_path##*/}"} # leaves a trailing /; empty if no leading path
[ -h "$app_path" ]
do
ls=$( ls -ld "$app_path" )
link=${ls#*' -> '}
case $link in #(
/*) app_path=$link ;; #(
*) app_path=$APP_HOME$link ;;
esac
done
# This is normally unused
# shellcheck disable=SC2034
APP_BASE_NAME=${0##*/}
APP_HOME=$( cd "${APP_HOME:-./}" && pwd -P ) || exit
# Use the maximum available, or set MAX_FD != -1 to use that value.
MAX_FD="maximum"
MAX_FD=maximum
warn ( ) {
warn () {
echo "$*"
}
} >&2
die ( ) {
die () {
echo
echo "$*"
echo
exit 1
}
} >&2
# OS specific support (must be 'true' or 'false').
cygwin=false
msys=false
darwin=false
case "`uname`" in
CYGWIN* )
cygwin=true
;;
Darwin* )
darwin=true
;;
MINGW* )
msys=true
;;
nonstop=false
case "$( uname )" in #(
CYGWIN* ) cygwin=true ;; #(
Darwin* ) darwin=true ;; #(
MSYS* | MINGW* ) msys=true ;; #(
NONSTOP* ) nonstop=true ;;
esac
# For Cygwin, ensure paths are in UNIX format before anything is touched.
if $cygwin ; then
[ -n "$JAVA_HOME" ] && JAVA_HOME=`cygpath --unix "$JAVA_HOME"`
fi
# Attempt to set APP_HOME
# Resolve links: $0 may be a link
PRG="$0"
# Need this for relative symlinks.
while [ -h "$PRG" ] ; do
ls=`ls -ld "$PRG"`
link=`expr "$ls" : '.*-> \(.*\)$'`
if expr "$link" : '/.*' > /dev/null; then
PRG="$link"
else
PRG=`dirname "$PRG"`"/$link"
fi
done
SAVED="`pwd`"
cd "`dirname \"$PRG\"`/" >&-
APP_HOME="`pwd -P`"
cd "$SAVED" >&-
CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar
# Determine the Java command to use to start the JVM.
if [ -n "$JAVA_HOME" ] ; then
if [ -x "$JAVA_HOME/jre/sh/java" ] ; then
# IBM's JDK on AIX uses strange locations for the executables
JAVACMD="$JAVA_HOME/jre/sh/java"
JAVACMD=$JAVA_HOME/jre/sh/java
else
JAVACMD="$JAVA_HOME/bin/java"
JAVACMD=$JAVA_HOME/bin/java
fi
if [ ! -x "$JAVACMD" ] ; then
die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME
@@ -82,83 +129,120 @@ Please set the JAVA_HOME variable in your environment to match the
location of your Java installation."
fi
else
JAVACMD="java"
which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
JAVACMD=java
if ! command -v java >/dev/null 2>&1
then
die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
Please set the JAVA_HOME variable in your environment to match the
location of your Java installation."
fi
fi
# Increase the maximum file descriptors if we can.
if [ "$cygwin" = "false" -a "$darwin" = "false" ] ; then
MAX_FD_LIMIT=`ulimit -H -n`
if [ $? -eq 0 ] ; then
if [ "$MAX_FD" = "maximum" -o "$MAX_FD" = "max" ] ; then
MAX_FD="$MAX_FD_LIMIT"
fi
ulimit -n $MAX_FD
if [ $? -ne 0 ] ; then
warn "Could not set maximum file descriptor limit: $MAX_FD"
fi
else
warn "Could not query maximum file descriptor limit: $MAX_FD_LIMIT"
fi
fi
# For Darwin, add options to specify how the application appears in the dock
if $darwin; then
GRADLE_OPTS="$GRADLE_OPTS \"-Xdock:name=$APP_NAME\" \"-Xdock:icon=$APP_HOME/media/gradle.icns\""
fi
# For Cygwin, switch paths to Windows format before running java
if $cygwin ; then
APP_HOME=`cygpath --path --mixed "$APP_HOME"`
CLASSPATH=`cygpath --path --mixed "$CLASSPATH"`
# We build the pattern for arguments to be converted via cygpath
ROOTDIRSRAW=`find -L / -maxdepth 1 -mindepth 1 -type d 2>/dev/null`
SEP=""
for dir in $ROOTDIRSRAW ; do
ROOTDIRS="$ROOTDIRS$SEP$dir"
SEP="|"
done
OURCYGPATTERN="(^($ROOTDIRS))"
# Add a user-defined pattern to the cygpath arguments
if [ "$GRADLE_CYGPATTERN" != "" ] ; then
OURCYGPATTERN="$OURCYGPATTERN|($GRADLE_CYGPATTERN)"
fi
# Now convert the arguments - kludge to limit ourselves to /bin/sh
i=0
for arg in "$@" ; do
CHECK=`echo "$arg"|egrep -c "$OURCYGPATTERN" -`
CHECK2=`echo "$arg"|egrep -c "^-"` ### Determine if an option
if [ $CHECK -ne 0 ] && [ $CHECK2 -eq 0 ] ; then ### Added a condition
eval `echo args$i`=`cygpath --path --ignore --mixed "$arg"`
else
eval `echo args$i`="\"$arg\""
fi
i=$((i+1))
done
case $i in
(0) set -- ;;
(1) set -- "$args0" ;;
(2) set -- "$args0" "$args1" ;;
(3) set -- "$args0" "$args1" "$args2" ;;
(4) set -- "$args0" "$args1" "$args2" "$args3" ;;
(5) set -- "$args0" "$args1" "$args2" "$args3" "$args4" ;;
(6) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" ;;
(7) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" ;;
(8) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" ;;
(9) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" "$args8" ;;
if ! "$cygwin" && ! "$darwin" && ! "$nonstop" ; then
case $MAX_FD in #(
max*)
# In POSIX sh, ulimit -H is undefined. That's why the result is checked to see if it worked.
# shellcheck disable=SC3045
MAX_FD=$( ulimit -H -n ) ||
warn "Could not query maximum file descriptor limit"
esac
case $MAX_FD in #(
'' | soft) :;; #(
*)
# In POSIX sh, ulimit -n is undefined. That's why the result is checked to see if it worked.
# shellcheck disable=SC3045
ulimit -n "$MAX_FD" ||
warn "Could not set maximum file descriptor limit to $MAX_FD"
esac
fi
# Split up the JVM_OPTS And GRADLE_OPTS values into an array, following the shell quoting and substitution rules
function splitJvmOpts() {
JVM_OPTS=("$@")
}
eval splitJvmOpts $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS
JVM_OPTS[${#JVM_OPTS[*]}]="-Dorg.gradle.appname=$APP_BASE_NAME"
# Collect all arguments for the java command, stacking in reverse order:
# * args from the command line
# * the main class name
# * -classpath
# * -D...appname settings
# * --module-path (only if needed)
# * DEFAULT_JVM_OPTS, JAVA_OPTS, and GRADLE_OPTS environment variables.
exec "$JAVACMD" "${JVM_OPTS[@]}" -classpath "$CLASSPATH" org.gradle.wrapper.GradleWrapperMain "$@"
# For Cygwin or MSYS, switch paths to Windows format before running java
if "$cygwin" || "$msys" ; then
APP_HOME=$( cygpath --path --mixed "$APP_HOME" )
CLASSPATH=$( cygpath --path --mixed "$CLASSPATH" )
JAVACMD=$( cygpath --unix "$JAVACMD" )
# Now convert the arguments - kludge to limit ourselves to /bin/sh
for arg do
if
case $arg in #(
-*) false ;; # don't mess with options #(
/?*) t=${arg#/} t=/${t%%/*} # looks like a POSIX filepath
[ -e "$t" ] ;; #(
*) false ;;
esac
then
arg=$( cygpath --path --ignore --mixed "$arg" )
fi
# Roll the args list around exactly as many times as the number of
# args, so each arg winds up back in the position where it started, but
# possibly modified.
#
# NB: a `for` loop captures its iteration list before it begins, so
# changing the positional parameters here affects neither the number of
# iterations, nor the values presented in `arg`.
shift # remove old arg
set -- "$@" "$arg" # push replacement arg
done
fi
# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"'
# Collect all arguments for the java command;
# * $DEFAULT_JVM_OPTS, $JAVA_OPTS, and $GRADLE_OPTS can contain fragments of
# shell script including quotes and variable substitutions, so put them in
# double quotes to make sure that they get re-expanded; and
# * put everything else in single quotes, so that it's not re-expanded.
set -- \
"-Dorg.gradle.appname=$APP_BASE_NAME" \
-classpath "$CLASSPATH" \
org.gradle.wrapper.GradleWrapperMain \
"$@"
# Stop when "xargs" is not available.
if ! command -v xargs >/dev/null 2>&1
then
die "xargs is not available"
fi
# Use "xargs" to parse quoted args.
#
# With -n1 it outputs one arg per line, with the quotes and backslashes removed.
#
# In Bash we could simply go:
#
# readarray ARGS < <( xargs -n1 <<<"$var" ) &&
# set -- "${ARGS[@]}" "$@"
#
# but POSIX shell has neither arrays nor command substitution, so instead we
# post-process each arg (as a line of input to sed) to backslash-escape any
# character that might be a shell metacharacter, then use eval to reverse
# that process (while maintaining the separation between arguments), and wrap
# the whole thing up as a single "set" statement.
#
# This will of course break if any of these variables contains a newline or
# an unmatched quote.
#
eval "set -- $(
printf '%s\n' "$DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS" |
xargs -n1 |
sed ' s~[^-[:alnum:]+,./:=@_]~\\&~g; ' |
tr '\n' ' '
)" '"$@"'
exec "$JAVACMD" "$@"
Vendored
+34 -32
View File
@@ -1,4 +1,20 @@
@if "%DEBUG%" == "" @echo off
@rem
@rem Copyright 2015 the original author or authors.
@rem
@rem Licensed under the Apache License, Version 2.0 (the "License");
@rem you may not use this file except in compliance with the License.
@rem You may obtain a copy of the License at
@rem
@rem https://www.apache.org/licenses/LICENSE-2.0
@rem
@rem Unless required by applicable law or agreed to in writing, software
@rem distributed under the License is distributed on an "AS IS" BASIS,
@rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@rem See the License for the specific language governing permissions and
@rem limitations under the License.
@rem
@if "%DEBUG%"=="" @echo off
@rem ##########################################################################
@rem
@rem Gradle startup script for Windows
@@ -8,20 +24,24 @@
@rem Set local scope for the variables with windows NT shell
if "%OS%"=="Windows_NT" setlocal
@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
set DEFAULT_JVM_OPTS=
set DIRNAME=%~dp0
if "%DIRNAME%" == "" set DIRNAME=.
if "%DIRNAME%"=="" set DIRNAME=.
@rem This is normally unused
set APP_BASE_NAME=%~n0
set APP_HOME=%DIRNAME%
@rem Resolve any "." and ".." in APP_HOME to make it shorter.
for %%i in ("%APP_HOME%") do set APP_HOME=%%~fi
@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
set DEFAULT_JVM_OPTS="-Xmx64m" "-Xms64m"
@rem Find java.exe
if defined JAVA_HOME goto findJavaFromJavaHome
set JAVA_EXE=java.exe
%JAVA_EXE% -version >NUL 2>&1
if "%ERRORLEVEL%" == "0" goto init
if %ERRORLEVEL% equ 0 goto execute
echo.
echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
@@ -35,7 +55,7 @@ goto fail
set JAVA_HOME=%JAVA_HOME:"=%
set JAVA_EXE=%JAVA_HOME%/bin/java.exe
if exist "%JAVA_EXE%" goto init
if exist "%JAVA_EXE%" goto execute
echo.
echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%
@@ -45,44 +65,26 @@ echo location of your Java installation.
goto fail
:init
@rem Get command-line arguments, handling Windowz variants
if not "%OS%" == "Windows_NT" goto win9xME_args
if "%@eval[2+2]" == "4" goto 4NT_args
:win9xME_args
@rem Slurp the command line arguments.
set CMD_LINE_ARGS=
set _SKIP=2
:win9xME_args_slurp
if "x%~1" == "x" goto execute
set CMD_LINE_ARGS=%*
goto execute
:4NT_args
@rem Get arguments from the 4NT Shell from JP Software
set CMD_LINE_ARGS=%$
:execute
@rem Setup the command line
set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar
@rem Execute Gradle
"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS%
"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %*
:end
@rem End local scope for the variables with windows NT shell
if "%ERRORLEVEL%"=="0" goto mainEnd
if %ERRORLEVEL% equ 0 goto mainEnd
:fail
rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
rem the _cmd.exe /c_ return code!
if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1
exit /b 1
set EXIT_CODE=%ERRORLEVEL%
if %EXIT_CODE% equ 0 set EXIT_CODE=1
if not ""=="%GRADLE_EXIT_CONSOLE%" exit %EXIT_CODE%
exit /b %EXIT_CODE%
:mainEnd
if "%OS%"=="Windows_NT" endlocal
+2
View File
@@ -0,0 +1,2 @@
before_install:
- ./gradlew setupCIWorkspace
+4
View File
@@ -0,0 +1,4 @@
// Add any additional repositories for your dependencies here
repositories {
}
+28 -1
View File
@@ -1 +1,28 @@
rootProject.name = 'Chisel'
pluginManagement {
repositories {
maven {
// RetroFuturaGradle
name "GTNH Maven"
url "http://jenkins.usrv.eu:8081/nexus/content/groups/public/"
allowInsecureProtocol = true
mavenContent {
includeGroup("com.gtnewhorizons.retrofuturagradle")
}
}
gradlePluginPortal()
mavenCentral()
mavenLocal()
}
}
plugins {
id 'com.diffplug.blowdryerSetup' version '1.6.0'
id 'org.gradle.toolchains.foojay-resolver-convention' version '0.4.0' // Provides java toolchains
}
blowdryerSetup {
repoSubfolder 'gtnhShared'
github('GTNewHorizons/ExampleMod1.7.10', 'tag', '0.2.2')
//devLocal '.' // Use this when testing config updates locally
}
@@ -1,108 +0,0 @@
package thaumcraft.api;
import net.minecraft.nbt.NBTTagCompound;
import net.minecraft.tileentity.TileEntity;
public class BlockCoordinates implements Comparable
{
public int x;
/** the y coordinate */
public int y;
/** the z coordinate */
public int z;
public BlockCoordinates() {}
public BlockCoordinates(int par1, int par2, int par3)
{
this.x = par1;
this.y = par2;
this.z = par3;
}
public BlockCoordinates(TileEntity tile)
{
this.x = tile.xCoord;
this.y = tile.yCoord;
this.z = tile.zCoord;
}
public BlockCoordinates(BlockCoordinates par1ChunkCoordinates)
{
this.x = par1ChunkCoordinates.x;
this.y = par1ChunkCoordinates.y;
this.z = par1ChunkCoordinates.z;
}
public boolean equals(Object par1Obj)
{
if (!(par1Obj instanceof BlockCoordinates))
{
return false;
}
else
{
BlockCoordinates coordinates = (BlockCoordinates)par1Obj;
return this.x == coordinates.x && this.y == coordinates.y && this.z == coordinates.z ;
}
}
public int hashCode()
{
return this.x + this.y << 8 + this.z << 16;
}
/**
* Compare the coordinate with another coordinate
*/
public int compareWorldCoordinate(BlockCoordinates par1)
{
return this.y == par1.y ? (this.z == par1.z ? this.x - par1.x : this.z - par1.z) : this.y - par1.y;
}
public void set(int par1, int par2, int par3, int d)
{
this.x = par1;
this.y = par2;
this.z = par3;
}
/**
* Returns the squared distance between this coordinates and the coordinates given as argument.
*/
public float getDistanceSquared(int par1, int par2, int par3)
{
float f = (float)(this.x - par1);
float f1 = (float)(this.y - par2);
float f2 = (float)(this.z - par3);
return f * f + f1 * f1 + f2 * f2;
}
/**
* Return the squared distance between this coordinates and the ChunkCoordinates given as argument.
*/
public float getDistanceSquaredToWorldCoordinates(BlockCoordinates par1ChunkCoordinates)
{
return this.getDistanceSquared(par1ChunkCoordinates.x, par1ChunkCoordinates.y, par1ChunkCoordinates.z);
}
public int compareTo(Object par1Obj)
{
return this.compareWorldCoordinate((BlockCoordinates)par1Obj);
}
public void readNBT(NBTTagCompound nbt) {
this.x = nbt.getInteger("b_x");
this.y = nbt.getInteger("b_y");
this.z = nbt.getInteger("b_z");
}
public void writeNBT(NBTTagCompound nbt) {
nbt.setInteger("b_x",x);
nbt.setInteger("b_y",y);
nbt.setInteger("b_z",z);
}
}
@@ -1,27 +0,0 @@
package thaumcraft.api;
import java.util.ArrayList;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.item.ItemStack;
import net.minecraft.world.World;
public interface IArchitect {
/**
* Returns a list of blocks that should be highlighted in world.
*/
public ArrayList<BlockCoordinates> getArchitectBlocks(ItemStack stack, World world,
int x, int y, int z, int side, EntityPlayer player);
/**
* which axis should be displayed.
*/
public boolean showAxis(ItemStack stack, World world, EntityPlayer player, int side, EnumAxis axis);
public enum EnumAxis {
X, // east / west
Y, // up / down
Z; // north / south
}
}
-22
View File
@@ -1,22 +0,0 @@
package thaumcraft.api;
import net.minecraft.entity.EntityLivingBase;
import net.minecraft.item.ItemStack;
/**
*
* @author Azanor
*
* Equipped head slot items that extend this class will be able to perform most functions that
* goggles of revealing can apart from view nodes which is handled by IRevealer.
*
*/
public interface IGoggles {
/*
* If this method returns true things like block essentia contents will be shown.
*/
public boolean showIngamePopups(ItemStack itemstack, EntityLivingBase player);
}
@@ -1,13 +0,0 @@
package thaumcraft.api;
/**
* @author Azanor
* Items, armor and tools with this interface can receive the Repair enchantment.
* Repairs 1 point of durability every 10 seconds (2 for repair II)
*/
public interface IRepairable {
}
@@ -1,17 +0,0 @@
package thaumcraft.api;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.item.ItemStack;
/**
* @author Azanor
* Items, armor and tools with this interface can receive the Repair enchantment.
* Repairs 1 point of durability every 10 seconds (2 for repair II)
*/
public interface IRepairableExtended extends IRepairable {
public boolean doRepair(ItemStack stack, EntityPlayer player, int enchantlevel);
}
@@ -1,22 +0,0 @@
package thaumcraft.api;
import net.minecraft.item.ItemStack;
/**
*
* @author Azanor
*
* Armor or bauble slot items that implement this interface can provide runic shielding.
* Recharging, hardening, etc. is handled internally by thaumcraft.
*
*/
public interface IRunicArmor {
/**
* returns how much charge this item can provide. This is the base shielding value - any hardening is stored and calculated internally.
*/
public int getRunicCharge(ItemStack itemstack);
}
@@ -1,14 +0,0 @@
package thaumcraft.api;
/**
*
* @author Azanor
*
* Interface used to identify scribing tool items used in research table
*
*/
public interface IScribeTools {
}
@@ -1,20 +0,0 @@
package thaumcraft.api;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.item.ItemStack;
import thaumcraft.api.aspects.Aspect;
/**
* @author Azanor
* ItemArmor with this interface will grant a discount to the vis cost of actions the wearer performs with casting wands.
* The amount returned is the percentage by which the cost is discounted. There is a built-int max discount of 50%, but
* individual items really shouldn't have a discount more than 5%
*/
public interface IVisDiscountGear {
int getVisDiscount(ItemStack stack, EntityPlayer player, Aspect aspect);
}
@@ -1,22 +0,0 @@
package thaumcraft.api;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.item.ItemStack;
/**
*
* @author Azanor
*
* Armor, held items or bauble slot items that implement this interface add warp when equipped or held.
*
*/
public interface IWarpingGear {
/**
* returns how much warp this item adds while worn or held.
*/
public int getWarp(ItemStack itemstack, EntityPlayer player);
}
-70
View File
@@ -1,70 +0,0 @@
package thaumcraft.api;
import net.minecraft.block.Block;
import net.minecraft.item.Item;
import net.minecraft.item.ItemStack;
import cpw.mods.fml.common.FMLLog;
/**
* @author Azanor
*
* This is used to gain access to the items in my mod.
* I only give some examples and it will probably still
* require a bit of work for you to get hold of everything you need.
*
*/
public class ItemApi {
public static ItemStack getItem(String itemString, int meta) {
ItemStack item = null;
try {
String itemClass = "thaumcraft.common.config.ConfigItems";
Object obj = Class.forName(itemClass).getField(itemString).get(null);
if (obj instanceof Item) {
item = new ItemStack((Item) obj,1,meta);
} else if (obj instanceof ItemStack) {
item = (ItemStack) obj;
}
} catch (Exception ex) {
FMLLog.warning("[Thaumcraft] Could not retrieve item identified by: " + itemString);
}
return item;
}
public static ItemStack getBlock(String itemString, int meta) {
ItemStack item = null;
try {
String itemClass = "thaumcraft.common.config.ConfigBlocks";
Object obj = Class.forName(itemClass).getField(itemString).get(null);
if (obj instanceof Block) {
item = new ItemStack((Block) obj,1,meta);
} else if (obj instanceof ItemStack) {
item = (ItemStack) obj;
}
} catch (Exception ex) {
FMLLog.warning("[Thaumcraft] Could not retrieve block identified by: " + itemString);
}
return item;
}
/**
*
* Some examples
*
* Casting Wands:
* itemWandCasting
*
* Resources:
* itemEssence, itemWispEssence, itemResource, itemShard, itemNugget,
* itemNuggetChicken, itemNuggetBeef, itemNuggetPork, itemTripleMeatTreat
*
* Research:
* itemResearchNotes, itemInkwell, itemThaumonomicon
*
*/
}
@@ -1,21 +0,0 @@
package thaumcraft.api;
import net.minecraft.item.Item;
import net.minecraft.item.ItemStack;
public class ItemRunic extends Item implements IRunicArmor {
int charge;
public ItemRunic (int charge)
{
super();
this.charge = charge;
}
@Override
public int getRunicCharge(ItemStack itemstack) {
return charge;
}
}
@@ -1,588 +0,0 @@
package thaumcraft.api;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.HashMap;
import java.util.List;
import java.util.concurrent.ConcurrentHashMap;
import net.minecraft.block.Block;
import net.minecraft.enchantment.Enchantment;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.item.Item;
import net.minecraft.item.Item.ToolMaterial;
import net.minecraft.item.ItemArmor.ArmorMaterial;
import net.minecraft.item.ItemStack;
import net.minecraftforge.common.util.EnumHelper;
import net.minecraftforge.oredict.OreDictionary;
import thaumcraft.api.aspects.Aspect;
import thaumcraft.api.aspects.AspectList;
import thaumcraft.api.crafting.CrucibleRecipe;
import thaumcraft.api.crafting.InfusionEnchantmentRecipe;
import thaumcraft.api.crafting.InfusionRecipe;
import thaumcraft.api.crafting.ShapedArcaneRecipe;
import thaumcraft.api.crafting.ShapelessArcaneRecipe;
import thaumcraft.api.internal.DummyInternalMethodHandler;
import thaumcraft.api.internal.IInternalMethodHandler;
import thaumcraft.api.internal.WeightedRandomLoot;
import thaumcraft.api.research.IScanEventHandler;
import thaumcraft.api.research.ResearchCategories;
import thaumcraft.api.research.ResearchCategoryList;
import thaumcraft.api.research.ResearchItem;
import thaumcraft.api.research.ResearchPage;
/**
* @author Azanor
*
*
* IMPORTANT: If you are adding your own aspects to items it is a good idea to do it AFTER Thaumcraft adds its aspects, otherwise odd things may happen.
*
*/
public class ThaumcraftApi {
//Materials
public static ToolMaterial toolMatThaumium = EnumHelper.addToolMaterial("THAUMIUM", 3, 400, 7F, 2, 22);
public static ToolMaterial toolMatVoid = EnumHelper.addToolMaterial("VOID", 4, 150, 8F, 3, 10);
public static ToolMaterial toolMatElemental = EnumHelper.addToolMaterial("THAUMIUM_ELEMENTAL", 3, 1500, 10F, 3, 18);
public static ArmorMaterial armorMatThaumium = EnumHelper.addArmorMaterial("THAUMIUM", 25, new int[] { 2, 6, 5, 2 }, 25);
public static ArmorMaterial armorMatSpecial = EnumHelper.addArmorMaterial("SPECIAL", 25, new int[] { 1, 3, 2, 1 }, 25);
public static ArmorMaterial armorMatThaumiumFortress = EnumHelper.addArmorMaterial("FORTRESS", 40, new int[] { 3, 7, 6, 3 }, 25);
public static ArmorMaterial armorMatVoid = EnumHelper.addArmorMaterial("VOID", 10, new int[] { 3, 7, 6, 3 }, 10);
public static ArmorMaterial armorMatVoidFortress = EnumHelper.addArmorMaterial("VOIDFORTRESS", 18, new int[] { 4, 8, 7, 4 }, 10);
//Enchantment references
public static int enchantFrugal;
public static int enchantPotency;
public static int enchantWandFortune;
public static int enchantHaste;
public static int enchantRepair;
//Miscellaneous
/**
* Portable Hole Block-id Blacklist.
* Simply add the block-id's of blocks you don't want the portable hole to go through.
*/
public static ArrayList<Block> portableHoleBlackList = new ArrayList<Block>();
//Internal (Do not alter this unless you like pretty explosions)
//Calling methods from this will only work properly once Thaumcraft is past the FMLPreInitializationEvent phase.
public static IInternalMethodHandler internalMethods = new DummyInternalMethodHandler();
//RESEARCH/////////////////////////////////////////
public static ArrayList<IScanEventHandler> scanEventhandlers = new ArrayList<IScanEventHandler>();
public static ArrayList<EntityTags> scanEntities = new ArrayList<EntityTags>();
public static class EntityTagsNBT {
public EntityTagsNBT(String name, Object value) {
this.name = name;
this.value = value;
}
public String name;
public Object value;
}
public static class EntityTags {
public EntityTags(String entityName, AspectList aspects, EntityTagsNBT... nbts) {
this.entityName = entityName;
this.nbts = nbts;
this.aspects = aspects;
}
public String entityName;
public EntityTagsNBT[] nbts;
public AspectList aspects;
}
/**
* not really working atm, so ignore it for now
* @param scanEventHandler
*/
public static void registerScanEventhandler(IScanEventHandler scanEventHandler) {
scanEventhandlers.add(scanEventHandler);
}
/**
* This is used to add aspects to entities which you can then scan using a thaumometer.
* Also used to calculate vis drops from mobs.
* @param entityName
* @param aspects
* @param nbt you can specify certain nbt keys and their values
* to differentiate between mobs. <br>For example the normal and wither skeleton:
* <br>ThaumcraftApi.registerEntityTag("Skeleton", (new AspectList()).add(Aspect.DEATH, 5));
* <br>ThaumcraftApi.registerEntityTag("Skeleton", (new AspectList()).add(Aspect.DEATH, 8), new NBTTagByte("SkeletonType",(byte) 1));
*/
public static void registerEntityTag(String entityName, AspectList aspects, EntityTagsNBT... nbt ) {
scanEntities.add(new EntityTags(entityName,aspects,nbt));
}
//RECIPES/////////////////////////////////////////
private static ArrayList craftingRecipes = new ArrayList();
private static HashMap<Object,ItemStack> smeltingBonus = new HashMap<Object,ItemStack>();
/**
* This method is used to determine what bonus items are generated when the infernal furnace smelts items
* @param in The input of the smelting operation. e.g. new ItemStack(Block.oreGold)
* @param out The bonus item that can be produced from the smelting operation e.g. new ItemStack(nuggetGold,0,0).
* Stacksize should be 0 unless you want to guarantee that at least 1 item is always produced.
*/
public static void addSmeltingBonus(ItemStack in, ItemStack out) {
smeltingBonus.put(
Arrays.asList(in.getItem(),in.getItemDamage()),
new ItemStack(out.getItem(),0,out.getItemDamage()));
}
/**
* This method is used to determine what bonus items are generated when the infernal furnace smelts items
* @param in The ore dictionary input of the smelting operation. e.g. "oreGold"
* @param out The bonus item that can be produced from the smelting operation e.g. new ItemStack(nuggetGold,0,0).
* Stacksize should be 0 unless you want to guarantee that at least 1 item is always produced.
*/
public static void addSmeltingBonus(String in, ItemStack out) {
smeltingBonus.put( in, new ItemStack(out.getItem(),0,out.getItemDamage()));
}
/**
* Returns the bonus item produced from a smelting operation in the infernal furnace
* @param in The input of the smelting operation. e.g. new ItemStack(oreGold)
* @return the The bonus item that can be produced
*/
public static ItemStack getSmeltingBonus(ItemStack in) {
ItemStack out = smeltingBonus.get(Arrays.asList(in.getItem(),in.getItemDamage()));
if (out==null) {
out = smeltingBonus.get(Arrays.asList(in.getItem(),OreDictionary.WILDCARD_VALUE));
}
if (out==null) {
String od = OreDictionary.getOreName( OreDictionary.getOreID(in));
out = smeltingBonus.get(od);
}
return out;
}
public static List getCraftingRecipes() {
return craftingRecipes;
}
/**
* @param research the research key required for this recipe to work. Leave blank if it will work without research
* @param result the recipe output
* @param aspects the vis cost per aspect.
* @param recipe The recipe. Format is exactly the same as vanilla recipes. Input itemstacks are NBT sensitive.
*/
public static ShapedArcaneRecipe addArcaneCraftingRecipe(String research, ItemStack result, AspectList aspects, Object ... recipe)
{
ShapedArcaneRecipe r= new ShapedArcaneRecipe(research, result, aspects, recipe);
craftingRecipes.add(r);
return r;
}
/**
* @param research the research key required for this recipe to work. Leave blank if it will work without research
* @param result the recipe output
* @param aspects the vis cost per aspect
* @param recipe The recipe. Format is exactly the same as vanilla shapeless recipes. Input itemstacks are NBT sensitive.
*/
public static ShapelessArcaneRecipe addShapelessArcaneCraftingRecipe(String research, ItemStack result, AspectList aspects, Object ... recipe)
{
ShapelessArcaneRecipe r = new ShapelessArcaneRecipe(research, result, aspects, recipe);
craftingRecipes.add(r);
return r;
}
/**
* @param research the research key required for this recipe to work. Leave blank if it will work without research
* @param result the recipe output. It can either be an itemstack or an nbt compound tag that will be added to the central item
* @param instability a number that represents the N in 1000 chance for the infusion altar to spawn an
* instability effect each second while the crafting is in progress
* @param aspects the essentia cost per aspect.
* @param aspects input the central item to be infused
* @param recipe An array of items required to craft this. Input itemstacks are NBT sensitive.
* Infusion crafting components are automatically "fuzzy" and the oredict will be checked for possible matches.
*
*/
public static InfusionRecipe addInfusionCraftingRecipe(String research, Object result, int instability, AspectList aspects, ItemStack input,ItemStack[] recipe)
{
if (!(result instanceof ItemStack || result instanceof Object[])) return null;
InfusionRecipe r= new InfusionRecipe(research, result, instability, aspects, input, recipe);
craftingRecipes.add(r);
return r;
}
/**
* @param research the research key required for this recipe to work. Leave blank if it will work without research
* @param enchantment the enchantment that will be applied to the item
* @param instability a number that represents the N in 1000 chance for the infusion altar to spawn an
* instability effect each second while the crafting is in progress
* @param aspects the essentia cost per aspect.
* @param recipe An array of items required to craft this. Input itemstacks are NBT sensitive.
* Infusion crafting components are automatically "fuzzy" and the oredict will be checked for possible matches.
*
*/
public static InfusionEnchantmentRecipe addInfusionEnchantmentRecipe(String research, Enchantment enchantment, int instability, AspectList aspects, ItemStack[] recipe)
{
InfusionEnchantmentRecipe r= new InfusionEnchantmentRecipe(research, enchantment, instability, aspects, recipe);
craftingRecipes.add(r);
return r;
}
/**
* @param stack the recipe result
* @return the recipe
*/
public static InfusionRecipe getInfusionRecipe(ItemStack res) {
for (Object r:getCraftingRecipes()) {
if (r instanceof InfusionRecipe) {
if (((InfusionRecipe)r).getRecipeOutput() instanceof ItemStack) {
if (((ItemStack) ((InfusionRecipe)r).getRecipeOutput()).isItemEqual(res))
return (InfusionRecipe)r;
}
}
}
return null;
}
/**
* @param key the research key required for this recipe to work.
* @param result the output result
* @param catalyst an itemstack of the catalyst or a string if it is an ore dictionary item
* @param cost the vis cost
* @param tags the aspects required to craft this
*/
public static CrucibleRecipe addCrucibleRecipe(String key, ItemStack result, Object catalyst, AspectList tags) {
CrucibleRecipe rc = new CrucibleRecipe(key, result, catalyst, tags);
getCraftingRecipes().add(rc);
return rc;
}
/**
* @param stack the recipe result
* @return the recipe
*/
public static CrucibleRecipe getCrucibleRecipe(ItemStack stack) {
for (Object r:getCraftingRecipes()) {
if (r instanceof CrucibleRecipe) {
if (((CrucibleRecipe)r).getRecipeOutput().isItemEqual(stack))
return (CrucibleRecipe)r;
}
}
return null;
}
/**
* @param hash the unique recipe code
* @return the recipe
*/
public static CrucibleRecipe getCrucibleRecipeFromHash(int hash) {
for (Object r:getCraftingRecipes()) {
if (r instanceof CrucibleRecipe) {
if (((CrucibleRecipe)r).hash==hash)
return (CrucibleRecipe)r;
}
}
return null;
}
/**
* Used by the thaumonomicon drilldown feature.
* @param stack the item
* @return the thaumcraft recipe key that produces that item.
*/
private static HashMap<int[],Object[]> keyCache = new HashMap<int[],Object[]>();
public static Object[] getCraftingRecipeKey(EntityPlayer player, ItemStack stack) {
int[] key = new int[] {Item.getIdFromItem(stack.getItem()),stack.getItemDamage()};
if (keyCache.containsKey(key)) {
if (keyCache.get(key)==null) return null;
if (ThaumcraftApiHelper.isResearchComplete(player.getCommandSenderName(), (String)(keyCache.get(key))[0]))
return keyCache.get(key);
else
return null;
}
for (ResearchCategoryList rcl:ResearchCategories.researchCategories.values()) {
for (ResearchItem ri:rcl.research.values()) {
if (ri.getPages()==null) continue;
for (int a=0;a<ri.getPages().length;a++) {
ResearchPage page = ri.getPages()[a];
if (page.recipe!=null && page.recipe instanceof CrucibleRecipe[]) {
CrucibleRecipe[] crs = (CrucibleRecipe[]) page.recipe;
for (CrucibleRecipe cr:crs) {
if (cr.getRecipeOutput().isItemEqual(stack)) {
keyCache.put(key,new Object[] {ri.key,a});
if (ThaumcraftApiHelper.isResearchComplete(player.getCommandSenderName(), ri.key))
return new Object[] {ri.key,a};
}
}
} else
if (page.recipeOutput!=null && stack !=null && page.recipeOutput.isItemEqual(stack)) {
keyCache.put(key,new Object[] {ri.key,a});
if (ThaumcraftApiHelper.isResearchComplete(player.getCommandSenderName(), ri.key))
return new Object[] {ri.key,a};
else
return null;
}
}
}
}
keyCache.put(key,null);
return null;
}
//ASPECTS////////////////////////////////////////
public static ConcurrentHashMap<List,AspectList> objectTags = new ConcurrentHashMap<List,AspectList>();
public static ConcurrentHashMap<List,int[]> groupedObjectTags = new ConcurrentHashMap<List,int[]>();
/**
* Checks to see if the passed item/block already has aspects associated with it.
* @param id
* @param meta
* @return
*/
public static boolean exists(Item item, int meta) {
AspectList tmp = ThaumcraftApi.objectTags.get(Arrays.asList(item,meta));
if (tmp==null) {
tmp = ThaumcraftApi.objectTags.get(Arrays.asList(item,OreDictionary.WILDCARD_VALUE));
if (meta==OreDictionary.WILDCARD_VALUE && tmp==null) {
int index=0;
do {
tmp = ThaumcraftApi.objectTags.get(Arrays.asList(item,index));
index++;
} while (index<16 && tmp==null);
}
if (tmp==null) return false;
}
return true;
}
/**
* Used to assign apsects to the given item/block. Here is an example of the declaration for cobblestone:<p>
* <i>ThaumcraftApi.registerObjectTag(new ItemStack(Blocks.cobblestone), (new AspectList()).add(Aspect.ENTROPY, 1).add(Aspect.EARTH, 1));</i>
* @param item the item passed. Pass OreDictionary.WILDCARD_VALUE if all damage values of this item/block should have the same aspects
* @param aspects A ObjectTags object of the associated aspects
*/
public static void registerObjectTag(ItemStack item, AspectList aspects) {
if (aspects==null) aspects=new AspectList();
try {
objectTags.put(Arrays.asList(item.getItem(),item.getItemDamage()), aspects);
} catch (Exception e) {}
}
/**
* Used to assign apsects to the given item/block. Here is an example of the declaration for cobblestone:<p>
* <i>ThaumcraftApi.registerObjectTag(new ItemStack(Blocks.cobblestone), new int[]{0,1}, (new AspectList()).add(Aspect.ENTROPY, 1).add(Aspect.EARTH, 1));</i>
* @param item
* @param meta A range of meta values if you wish to lump several item meta's together as being the "same" item (i.e. stair orientations)
* @param aspects A ObjectTags object of the associated aspects
*/
public static void registerObjectTag(ItemStack item, int[] meta, AspectList aspects) {
if (aspects==null) aspects=new AspectList();
try {
objectTags.put(Arrays.asList(item.getItem(),meta[0]), aspects);
for (int m:meta) {
groupedObjectTags.put(Arrays.asList(item.getItem(),m), meta);
}
} catch (Exception e) {}
}
/**
* Used to assign apsects to the given ore dictionary item.
* @param oreDict the ore dictionary name
* @param aspects A ObjectTags object of the associated aspects
*/
public static void registerObjectTag(String oreDict, AspectList aspects) {
if (aspects==null) aspects=new AspectList();
ArrayList<ItemStack> ores = OreDictionary.getOres(oreDict);
if (ores!=null && ores.size()>0) {
for (ItemStack ore:ores) {
try {
objectTags.put(Arrays.asList(ore.getItem(), ore.getItemDamage()), aspects);
} catch (Exception e) {}
}
}
}
/**
* Used to assign aspects to the given item/block.
* Attempts to automatically generate aspect tags by checking registered recipes.
* Here is an example of the declaration for pistons:<p>
* <i>ThaumcraftApi.registerComplexObjectTag(new ItemStack(Blocks.cobblestone), (new AspectList()).add(Aspect.MECHANISM, 2).add(Aspect.MOTION, 4));</i>
* IMPORTANT - this should only be used if you are not happy with the default aspects the object would be assigned.
* @param item, pass OreDictionary.WILDCARD_VALUE to meta if all damage values of this item/block should have the same aspects
* @param aspects A ObjectTags object of the associated aspects
*/
public static void registerComplexObjectTag(ItemStack item, AspectList aspects ) {
if (!exists(item.getItem(),item.getItemDamage())) {
AspectList tmp = ThaumcraftApiHelper.generateTags(item.getItem(), item.getItemDamage());
if (tmp != null && tmp.size()>0) {
for(Aspect tag:tmp.getAspects()) {
aspects.add(tag, tmp.getAmount(tag));
}
}
registerObjectTag(item,aspects);
} else {
AspectList tmp = ThaumcraftApiHelper.getObjectAspects(item);
for(Aspect tag:aspects.getAspects()) {
tmp.merge(tag, tmp.getAmount(tag));
}
registerObjectTag(item,tmp);
}
}
//WARP ///////////////////////////////////////////////////////////////////////////////////////
private static HashMap<Object,Integer> warpMap = new HashMap<Object,Integer>();
/**
* This method is used to determine how much warp is gained if the item is crafted. The warp
* added is "sticky" warp
* @param craftresult The item crafted
* @param amount how much warp is gained
*/
public static void addWarpToItem(ItemStack craftresult, int amount) {
warpMap.put(Arrays.asList(craftresult.getItem(),craftresult.getItemDamage()),amount);
}
/**
* This method is used to determine how much permanent warp is gained if the research is completed
* @param in The item crafted
* @param amount how much warp is gained
*/
public static void addWarpToResearch(String research, int amount) {
warpMap.put(research, amount);
}
/**
* Returns how much warp is gained from the item or research passed in
* @param in itemstack or string
* @return how much warp it will give
*/
public static int getWarp(Object in) {
if (in==null) return 0;
if (in instanceof ItemStack && warpMap.containsKey(Arrays.asList(((ItemStack)in).getItem(),((ItemStack)in).getItemDamage()))) {
return warpMap.get(Arrays.asList(((ItemStack)in).getItem(),((ItemStack)in).getItemDamage()));
} else
if (in instanceof String && warpMap.containsKey((String)in)) {
return warpMap.get((String)in);
}
return 0;
}
//LOOT BAGS //////////////////////////////////////////////////////////////////////////////////////////
/**
* Used to add possible loot to treasure bags. As a reference, the weight of gold coins are 2000
* and a diamond is 50.
* The weights are the same for all loot bag types - the only difference is how many items the bag
* contains.
* @param item
* @param weight
* @param bagTypes array of which type of bag to add this loot to. Multiple types can be specified
* 0 = common, 1 = uncommon, 2 = rare
*/
public static void addLootBagItem(ItemStack item, int weight, int... bagTypes) {
if (bagTypes==null || bagTypes.length==0)
WeightedRandomLoot.lootBagCommon.add(new WeightedRandomLoot(item,weight));
else {
for (int rarity:bagTypes) {
switch(rarity) {
case 0: WeightedRandomLoot.lootBagCommon.add(new WeightedRandomLoot(item,weight)); break;
case 1: WeightedRandomLoot.lootBagUncommon.add(new WeightedRandomLoot(item,weight)); break;
case 2: WeightedRandomLoot.lootBagRare.add(new WeightedRandomLoot(item,weight)); break;
}
}
}
}
//CROPS //////////////////////////////////////////////////////////////////////////////////////////
/**
* To define mod crops you need to use FMLInterModComms in your @Mod.Init method.
* There are two 'types' of crops you can add. Standard crops and clickable crops.
*
* Standard crops work like normal vanilla crops - they grow until a certain metadata
* value is reached and you harvest them by destroying the block and collecting the blocks.
* You need to create and ItemStack that tells the golem what block id and metadata represents
* the crop when fully grown. Sending a metadata of [OreDictionary.WILDCARD_VALUE] will mean the metadata won't get
* checked.
* Example for vanilla wheat:
* FMLInterModComms.sendMessage("Thaumcraft", "harvestStandardCrop", new ItemStack(Block.crops,1,7));
*
* Clickable crops are crops that you right click to gather their bounty instead of destroying them.
* As for standard crops, you need to create and ItemStack that tells the golem what block id
* and metadata represents the crop when fully grown. The golem will trigger the blocks onBlockActivated method.
* Sending a metadata of [OreDictionary.WILDCARD_VALUE] will mean the metadata won't get checked.
* Example (this will technically do nothing since clicking wheat does nothing, but you get the idea):
* FMLInterModComms.sendMessage("Thaumcraft", "harvestClickableCrop", new ItemStack(Block.crops,1,7));
*
* Stacked crops (like reeds) are crops that you wish the bottom block should remain after harvesting.
* As for standard crops, you need to create and ItemStack that tells the golem what block id
* and metadata represents the crop when fully grown. Sending a metadata of [OreDictionary.WILDCARD_VALUE] will mean the actualy md won't get
* checked. If it has the order upgrade it will only harvest if the crop is more than one block high.
* Example:
* FMLInterModComms.sendMessage("Thaumcraft", "harvestStackedCrop", new ItemStack(Block.reed,1,7));
*/
//NATIVE CLUSTERS //////////////////////////////////////////////////////////////////////////////////
/**
* You can define certain ores that will have a chance to produce native clusters via FMLInterModComms
* in your @Mod.Init method using the "nativeCluster" string message.
* The format should be:
* "[ore item/block id],[ore item/block metadata],[cluster item/block id],[cluster item/block metadata],[chance modifier float]"
*
* NOTE: The chance modifier is a multiplier applied to the default chance for that cluster to be produced (default 27.5% for a pickaxe of the core)
*
* Example for vanilla iron ore to produce one of my own native iron clusters (assuming default id's) at double the default chance:
* FMLInterModComms.sendMessage("Thaumcraft", "nativeCluster","15,0,25016,16,2.0");
*/
//LAMP OF GROWTH BLACKLIST ///////////////////////////////////////////////////////////////////////////
/**
* You can blacklist crops that should not be effected by the Lamp of Growth via FMLInterModComms
* in your @Mod.Init method using the "lampBlacklist" itemstack message.
* Sending a metadata of [OreDictionary.WILDCARD_VALUE] will mean the metadata won't get checked.
* Example for vanilla wheat:
* FMLInterModComms.sendMessage("Thaumcraft", "lampBlacklist", new ItemStack(Block.crops,1,OreDictionary.WILDCARD_VALUE));
*/
//DIMENSION BLACKLIST ///////////////////////////////////////////////////////////////////////////
/**
* You can blacklist a dimension to not spawn certain thaumcraft features
* in your @Mod.Init method using the "dimensionBlacklist" string message in the format "[dimension]:[level]"
* The level values are as follows:
* [0] stop all tc spawning and generation
* [1] allow ore and node generation (and node special features)
* [2] allow mob spawning
* [3] allow ore and node gen + mob spawning (and node special features)
* Example:
* FMLInterModComms.sendMessage("Thaumcraft", "dimensionBlacklist", "15:1");
*/
//BIOME BLACKLIST ///////////////////////////////////////////////////////////////////////////
/**
* You can blacklist a biome to not spawn certain thaumcraft features
* in your @Mod.Init method using the "biomeBlacklist" string message in the format "[biome id]:[level]"
* The level values are as follows:
* [0] stop all tc spawning and generation
* [1] allow ore and node generation (and node special features)
* [2] allow mob spawning
* [3] allow ore and node gen + mob spawning (and node special features)
* Example:
* FMLInterModComms.sendMessage("Thaumcraft", "biomeBlacklist", "180:2");
*/
//CHAMPION MOB WHITELIST ///////////////////////////////////////////////////////////////////////////
/**
* You can whitelist an entity class so it can rarely spawn champion versions in your @Mod.Init method using
* the "championWhiteList" string message in the format "[Entity]:[level]"
* The entity must extend EntityMob.
* [Entity] is in a similar format to what is used for mob spawners and such (see EntityList.class for vanilla examples).
* The [level] value indicate how rare the champion version will be - the higher the number the more common.
* The number roughly equals the [n] in 100 chance of a mob being a champion version.
* You can give 0 or negative numbers to allow champions to spawn with a very low chance only in particularly dangerous places.
* However anything less than about -2 will probably result in no spawns at all.
* Example:
* FMLInterModComms.sendMessage("Thaumcraft", "championWhiteList", "Thaumcraft.Wisp:1");
*/
}
@@ -1,467 +0,0 @@
package thaumcraft.api;
import java.util.HashMap;
import java.util.Iterator;
import net.minecraft.block.Block;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.item.Item;
import net.minecraft.item.ItemStack;
import net.minecraft.tileentity.TileEntity;
import net.minecraft.util.MathHelper;
import net.minecraft.util.MovingObjectPosition;
import net.minecraft.util.Vec3;
import net.minecraft.world.IBlockAccess;
import net.minecraft.world.World;
import net.minecraftforge.common.util.ForgeDirection;
import net.minecraftforge.oredict.OreDictionary;
import thaumcraft.api.aspects.Aspect;
import thaumcraft.api.aspects.AspectList;
import thaumcraft.api.aspects.IEssentiaTransport;
public class ThaumcraftApiHelper {
public static AspectList cullTags(AspectList temp) {
AspectList temp2 = new AspectList();
for (Aspect tag:temp.getAspects()) {
if (tag!=null)
temp2.add(tag, temp.getAmount(tag));
}
while (temp2!=null && temp2.size()>6) {
Aspect lowest = null;
float low = Short.MAX_VALUE;
for (Aspect tag:temp2.getAspects()) {
if (tag==null) continue;
float ta=temp2.getAmount(tag);
if (tag.isPrimal()) {
ta *= .9f;
} else {
if (!tag.getComponents()[0].isPrimal()) {
ta *= 1.1f;
if (!tag.getComponents()[0].getComponents()[0].isPrimal()) {
ta *= 1.05f;
}
if (!tag.getComponents()[0].getComponents()[1].isPrimal()) {
ta *= 1.05f;
}
}
if (!tag.getComponents()[1].isPrimal()) {
ta *= 1.1f;
if (!tag.getComponents()[1].getComponents()[0].isPrimal()) {
ta *= 1.05f;
}
if (!tag.getComponents()[1].getComponents()[1].isPrimal()) {
ta *= 1.05f;
}
}
}
if (ta<low) {
low = ta;
lowest = tag;
}
}
temp2.aspects.remove(lowest);
}
return temp2;
}
public static boolean areItemsEqual(ItemStack s1,ItemStack s2)
{
if (s1.isItemStackDamageable() && s2.isItemStackDamageable())
{
return s1.getItem() == s2.getItem();
} else
return s1.getItem() == s2.getItem() && s1.getItemDamage() == s2.getItemDamage();
}
public static boolean isResearchComplete(String username, String researchkey) {
return ThaumcraftApi.internalMethods.isResearchComplete(username, researchkey);
}
public static boolean hasDiscoveredAspect(String username, Aspect aspect) {
return ThaumcraftApi.internalMethods.hasDiscoveredAspect(username, aspect);
}
public static AspectList getDiscoveredAspects(String username) {
return ThaumcraftApi.internalMethods.getDiscoveredAspects(username);
}
public static ItemStack getStackInRowAndColumn(Object instance, int row, int column) {
return ThaumcraftApi.internalMethods.getStackInRowAndColumn(instance, row, column);
}
public static AspectList getObjectAspects(ItemStack is) {
return ThaumcraftApi.internalMethods.getObjectAspects(is);
}
public static AspectList getBonusObjectTags(ItemStack is,AspectList ot) {
return ThaumcraftApi.internalMethods.getBonusObjectTags(is, ot);
}
public static AspectList generateTags(Item item, int meta) {
return ThaumcraftApi.internalMethods.generateTags(item, meta);
}
public static boolean containsMatch(boolean strict, ItemStack[] inputs, ItemStack... targets)
{
for (ItemStack input : inputs)
{
for (ItemStack target : targets)
{
if (itemMatches(target, input, strict))
{
return true;
}
}
}
return false;
}
public static boolean areItemStackTagsEqualForCrafting(ItemStack slotItem,ItemStack recipeItem)
{
if (recipeItem == null || slotItem == null) return false;
if (recipeItem.stackTagCompound!=null && slotItem.stackTagCompound==null ) return false;
if (recipeItem.stackTagCompound==null ) return true;
Iterator iterator = recipeItem.stackTagCompound.func_150296_c().iterator();
while (iterator.hasNext())
{
String s = (String)iterator.next();
if (slotItem.stackTagCompound.hasKey(s)) {
if (!slotItem.stackTagCompound.getTag(s).toString().equals(
recipeItem.stackTagCompound.getTag(s).toString())) {
return false;
}
} else {
return false;
}
}
return true;
}
public static boolean itemMatches(ItemStack target, ItemStack input, boolean strict)
{
if (input == null && target != null || input != null && target == null)
{
return false;
}
return (target.getItem() == input.getItem() &&
((target.getItemDamage() == OreDictionary.WILDCARD_VALUE && !strict) || target.getItemDamage() == input.getItemDamage()));
}
public static TileEntity getConnectableTile(World world, int x, int y, int z, ForgeDirection face) {
TileEntity te = world.getTileEntity(x+face.offsetX, y+face.offsetY, z+face.offsetZ);
if (te instanceof IEssentiaTransport && ((IEssentiaTransport)te).isConnectable(face.getOpposite()))
return te;
else
return null;
}
public static TileEntity getConnectableTile(IBlockAccess world, int x, int y, int z, ForgeDirection face) {
TileEntity te = world.getTileEntity(x+face.offsetX, y+face.offsetY, z+face.offsetZ);
if (te instanceof IEssentiaTransport && ((IEssentiaTransport)te).isConnectable(face.getOpposite()))
return te;
else
return null;
}
private static HashMap<Integer, AspectList> allAspects= new HashMap<Integer, AspectList>();
private static HashMap<Integer, AspectList> allCompoundAspects= new HashMap<Integer, AspectList>();
public static AspectList getAllAspects(int amount) {
if (allAspects.get(amount)==null) {
AspectList al = new AspectList();
for (Aspect aspect:Aspect.aspects.values()) {
al.add(aspect, amount);
}
allAspects.put(amount, al);
}
return allAspects.get(amount);
}
public static AspectList getAllCompoundAspects(int amount) {
if (allCompoundAspects.get(amount)==null) {
AspectList al = new AspectList();
for (Aspect aspect:Aspect.getCompoundAspects()) {
al.add(aspect, amount);
}
allCompoundAspects.put(amount, al);
}
return allCompoundAspects.get(amount);
}
/**
* Use to subtract vis from a wand for most operations
* Wands store vis differently so "real" vis costs need to be multiplied by 100 before calling this method
* @param wand the wand itemstack
* @param player the player using the wand
* @param cost the cost of the operation.
* @param doit actually subtract the vis from the wand if true - if false just simulate the result
* @param crafting is this a crafting operation or not - if
* false then things like frugal and potency will apply to the costs
* @return was the vis successfully subtracted
*/
public static boolean consumeVisFromWand(ItemStack wand, EntityPlayer player,
AspectList cost, boolean doit, boolean crafting) {
return ThaumcraftApi.internalMethods.consumeVisFromWand(wand, player, cost, doit, crafting);
}
/**
* Subtract vis for use by a crafting mechanic. Costs are calculated slightly
* differently and things like the frugal enchant is ignored
* Must NOT be multiplied by 100 - send the actual vis cost
* @param wand the wand itemstack
* @param player the player using the wand
* @param cost the cost of the operation.
* @param doit actually subtract the vis from the wand if true - if false just simulate the result
* @return was the vis successfully subtracted
*/
public static boolean consumeVisFromWandCrafting(ItemStack wand, EntityPlayer player,
AspectList cost, boolean doit) {
return ThaumcraftApi.internalMethods.consumeVisFromWandCrafting(wand, player, cost, doit);
}
/**
* Subtract vis from a wand the player is carrying. Works like consumeVisFromWand in that actual vis
* costs should be multiplied by 100. The costs are handled like crafting however and things like
* frugal don't effect them
* @param player the player using the wand
* @param cost the cost of the operation.
* @return was the vis successfully subtracted
*/
public static boolean consumeVisFromInventory(EntityPlayer player, AspectList cost) {
return ThaumcraftApi.internalMethods.consumeVisFromInventory(player, cost);
}
/**
* This adds permanents or temporary warp to a player. It will automatically be synced clientside
* @param player the player using the wand
* @param amount how much warp to add. Negative amounts are only valid for temporary warp
* @param temporary add temporary warp instead of permanent
*/
public static void addWarpToPlayer(EntityPlayer player, int amount, boolean temporary) {
ThaumcraftApi.internalMethods.addWarpToPlayer(player, amount, temporary);
}
/**
* This "sticky" warp to a player. Sticky warp is permanent warp that can be removed.
* It will automatically be synced clientside
* @param player the player using the wand
* @param amount how much warp to add. Can have negative amounts.
*/
public static void addStickyWarpToPlayer(EntityPlayer player, int amount) {
ThaumcraftApi.internalMethods.addStickyWarpToPlayer(player, amount);
}
public static MovingObjectPosition rayTraceIgnoringSource(World world, Vec3 v1, Vec3 v2,
boolean bool1, boolean bool2, boolean bool3)
{
if (!Double.isNaN(v1.xCoord) && !Double.isNaN(v1.yCoord) && !Double.isNaN(v1.zCoord))
{
if (!Double.isNaN(v2.xCoord) && !Double.isNaN(v2.yCoord) && !Double.isNaN(v2.zCoord))
{
int i = MathHelper.floor_double(v2.xCoord);
int j = MathHelper.floor_double(v2.yCoord);
int k = MathHelper.floor_double(v2.zCoord);
int l = MathHelper.floor_double(v1.xCoord);
int i1 = MathHelper.floor_double(v1.yCoord);
int j1 = MathHelper.floor_double(v1.zCoord);
Block block = world.getBlock(l, i1, j1);
int k1 = world.getBlockMetadata(l, i1, j1);
MovingObjectPosition movingobjectposition2 = null;
k1 = 200;
while (k1-- >= 0)
{
if (Double.isNaN(v1.xCoord) || Double.isNaN(v1.yCoord) || Double.isNaN(v1.zCoord))
{
return null;
}
if (l == i && i1 == j && j1 == k)
{
continue;
}
boolean flag6 = true;
boolean flag3 = true;
boolean flag4 = true;
double d0 = 999.0D;
double d1 = 999.0D;
double d2 = 999.0D;
if (i > l)
{
d0 = (double)l + 1.0D;
}
else if (i < l)
{
d0 = (double)l + 0.0D;
}
else
{
flag6 = false;
}
if (j > i1)
{
d1 = (double)i1 + 1.0D;
}
else if (j < i1)
{
d1 = (double)i1 + 0.0D;
}
else
{
flag3 = false;
}
if (k > j1)
{
d2 = (double)j1 + 1.0D;
}
else if (k < j1)
{
d2 = (double)j1 + 0.0D;
}
else
{
flag4 = false;
}
double d3 = 999.0D;
double d4 = 999.0D;
double d5 = 999.0D;
double d6 = v2.xCoord - v1.xCoord;
double d7 = v2.yCoord - v1.yCoord;
double d8 = v2.zCoord - v1.zCoord;
if (flag6)
{
d3 = (d0 - v1.xCoord) / d6;
}
if (flag3)
{
d4 = (d1 - v1.yCoord) / d7;
}
if (flag4)
{
d5 = (d2 - v1.zCoord) / d8;
}
boolean flag5 = false;
byte b0;
if (d3 < d4 && d3 < d5)
{
if (i > l)
{
b0 = 4;
}
else
{
b0 = 5;
}
v1.xCoord = d0;
v1.yCoord += d7 * d3;
v1.zCoord += d8 * d3;
}
else if (d4 < d5)
{
if (j > i1)
{
b0 = 0;
}
else
{
b0 = 1;
}
v1.xCoord += d6 * d4;
v1.yCoord = d1;
v1.zCoord += d8 * d4;
}
else
{
if (k > j1)
{
b0 = 2;
}
else
{
b0 = 3;
}
v1.xCoord += d6 * d5;
v1.yCoord += d7 * d5;
v1.zCoord = d2;
}
Vec3 vec32 = Vec3.createVectorHelper(v1.xCoord, v1.yCoord, v1.zCoord);
l = (int)(vec32.xCoord = (double)MathHelper.floor_double(v1.xCoord));
if (b0 == 5)
{
--l;
++vec32.xCoord;
}
i1 = (int)(vec32.yCoord = (double)MathHelper.floor_double(v1.yCoord));
if (b0 == 1)
{
--i1;
++vec32.yCoord;
}
j1 = (int)(vec32.zCoord = (double)MathHelper.floor_double(v1.zCoord));
if (b0 == 3)
{
--j1;
++vec32.zCoord;
}
Block block1 = world.getBlock(l, i1, j1);
int l1 = world.getBlockMetadata(l, i1, j1);
if (!bool2 || block1.getCollisionBoundingBoxFromPool(world, l, i1, j1) != null)
{
if (block1.canCollideCheck(l1, bool1))
{
MovingObjectPosition movingobjectposition1 = block1.collisionRayTrace(world, l, i1, j1, v1, v2);
if (movingobjectposition1 != null)
{
return movingobjectposition1;
}
}
else
{
movingobjectposition2 = new MovingObjectPosition(l, i1, j1, b0, v1, false);
}
}
}
return bool3 ? movingobjectposition2 : null;
}
else
{
return null;
}
}
else
{
return null;
}
}
}
@@ -1,63 +0,0 @@
package thaumcraft.api;
import net.minecraft.nbt.NBTTagCompound;
import net.minecraft.network.NetworkManager;
import net.minecraft.network.Packet;
import net.minecraft.network.play.server.S35PacketUpdateTileEntity;
import net.minecraft.tileentity.TileEntity;
/**
*
* @author azanor
*
* Custom tile entity class I use for most of my tile entities. Setup in such a way that only
* the nbt data within readCustomNBT / writeCustomNBT will be sent to the client when the tile
* updates. Apart from all the normal TE data that gets sent that is.
*
*/
public class TileThaumcraft extends TileEntity {
//NBT stuff
@Override
public void readFromNBT(NBTTagCompound nbttagcompound)
{
super.readFromNBT(nbttagcompound);
readCustomNBT(nbttagcompound);
}
public void readCustomNBT(NBTTagCompound nbttagcompound)
{
//TODO
}
@Override
public void writeToNBT(NBTTagCompound nbttagcompound)
{
super.writeToNBT(nbttagcompound);
writeCustomNBT(nbttagcompound);
}
public void writeCustomNBT(NBTTagCompound nbttagcompound)
{
//TODO
}
//Client Packet stuff
@Override
public Packet getDescriptionPacket() {
NBTTagCompound nbttagcompound = new NBTTagCompound();
this.writeCustomNBT(nbttagcompound);
return new S35PacketUpdateTileEntity(this.xCoord, this.yCoord, this.zCoord, -999, nbttagcompound);
}
@Override
public void onDataPacket(NetworkManager net, S35PacketUpdateTileEntity pkt) {
super.onDataPacket(net, pkt);
this.readCustomNBT(pkt.func_148857_g());
}
}
@@ -1,117 +0,0 @@
package thaumcraft.api;
import net.minecraft.nbt.NBTTagCompound;
import net.minecraft.tileentity.TileEntity;
public class WorldCoordinates implements Comparable
{
public int x;
/** the y coordinate */
public int y;
/** the z coordinate */
public int z;
public int dim;
public WorldCoordinates() {}
public WorldCoordinates(int par1, int par2, int par3, int d)
{
this.x = par1;
this.y = par2;
this.z = par3;
this.dim = d;
}
public WorldCoordinates(TileEntity tile)
{
this.x = tile.xCoord;
this.y = tile.yCoord;
this.z = tile.zCoord;
this.dim = tile.getWorldObj().provider.dimensionId;
}
public WorldCoordinates(WorldCoordinates par1ChunkCoordinates)
{
this.x = par1ChunkCoordinates.x;
this.y = par1ChunkCoordinates.y;
this.z = par1ChunkCoordinates.z;
this.dim = par1ChunkCoordinates.dim;
}
public boolean equals(Object par1Obj)
{
if (!(par1Obj instanceof WorldCoordinates))
{
return false;
}
else
{
WorldCoordinates coordinates = (WorldCoordinates)par1Obj;
return this.x == coordinates.x && this.y == coordinates.y && this.z == coordinates.z && this.dim == coordinates.dim ;
}
}
public int hashCode()
{
return this.x + this.y << 8 + this.z << 16 + this.dim << 24;
}
/**
* Compare the coordinate with another coordinate
*/
public int compareWorldCoordinate(WorldCoordinates par1)
{
return this.dim == par1.dim ? (
this.y == par1.y ? (this.z == par1.z ? this.x - par1.x : this.z - par1.z) : this.y - par1.y) : -1;
}
public void set(int par1, int par2, int par3, int d)
{
this.x = par1;
this.y = par2;
this.z = par3;
this.dim = d;
}
/**
* Returns the squared distance between this coordinates and the coordinates given as argument.
*/
public float getDistanceSquared(int par1, int par2, int par3)
{
float f = (float)(this.x - par1);
float f1 = (float)(this.y - par2);
float f2 = (float)(this.z - par3);
return f * f + f1 * f1 + f2 * f2;
}
/**
* Return the squared distance between this coordinates and the ChunkCoordinates given as argument.
*/
public float getDistanceSquaredToWorldCoordinates(WorldCoordinates par1ChunkCoordinates)
{
return this.getDistanceSquared(par1ChunkCoordinates.x, par1ChunkCoordinates.y, par1ChunkCoordinates.z);
}
public int compareTo(Object par1Obj)
{
return this.compareWorldCoordinate((WorldCoordinates)par1Obj);
}
public void readNBT(NBTTagCompound nbt) {
this.x = nbt.getInteger("w_x");
this.y = nbt.getInteger("w_y");
this.z = nbt.getInteger("w_z");
this.dim = nbt.getInteger("w_d");
}
public void writeNBT(NBTTagCompound nbt) {
nbt.setInteger("w_x",x);
nbt.setInteger("w_y",y);
nbt.setInteger("w_z",z);
nbt.setInteger("w_d",dim);
}
}
@@ -1,201 +0,0 @@
package thaumcraft.api.aspects;
import java.util.ArrayList;
import java.util.Collection;
import java.util.LinkedHashMap;
import net.minecraft.util.ResourceLocation;
import net.minecraft.util.StatCollector;
import org.apache.commons.lang3.text.WordUtils;
public class Aspect {
String tag;
Aspect[] components;
int color;
private String chatcolor;
ResourceLocation image;
int blend;
/**
* Use this constructor to register your own aspects.
* @param tag the key that will be used to reference this aspect, as well as its latin display name
* @param color color to display the tag in
* @param components the aspects this one is formed from
* @param image ResourceLocation pointing to a 32x32 icon of the aspect
* @param blend GL11 blendmode (1 or 771). Used for rendering nodes. Default is 1
*/
public Aspect(String tag, int color, Aspect[] components, ResourceLocation image, int blend) {
if (aspects.containsKey(tag)) throw new IllegalArgumentException(tag+" already registered!");
this.tag = tag;
this.components = components;
this.color = color;
this.image = image;
this.blend = blend;
aspects.put(tag, this);
}
/**
* Shortcut constructor I use for the default aspects - you shouldn't be using this.
*/
public Aspect(String tag, int color, Aspect[] components) {
this(tag,color,components,new ResourceLocation("thaumcraft","textures/aspects/"+tag.toLowerCase()+".png"),1);
}
/**
* Shortcut constructor I use for the default aspects - you shouldn't be using this.
*/
public Aspect(String tag, int color, Aspect[] components, int blend) {
this(tag,color,components,new ResourceLocation("thaumcraft","textures/aspects/"+tag.toLowerCase()+".png"),blend);
}
/**
* Shortcut constructor I use for the primal aspects -
* you shouldn't use this as making your own primal aspects will break all the things.
*/
public Aspect(String tag, int color, String chatcolor, int blend) {
this(tag,color,(Aspect[])null, blend);
this.setChatcolor(chatcolor);
}
public int getColor() {
return color;
}
public String getName() {
return WordUtils.capitalizeFully(tag);
}
public String getLocalizedDescription() {
return StatCollector.translateToLocal("tc.aspect."+tag);
}
public String getTag() {
return tag;
}
public void setTag(String tag) {
this.tag = tag;
}
public Aspect[] getComponents() {
return components;
}
public void setComponents(Aspect[] components) {
this.components = components;
}
public ResourceLocation getImage() {
return image;
}
public static Aspect getAspect(String tag) {
return aspects.get(tag);
}
public int getBlend() {
return blend;
}
public void setBlend(int blend) {
this.blend = blend;
}
public boolean isPrimal() {
return getComponents()==null || getComponents().length!=2;
}
///////////////////////////////
public static ArrayList<Aspect> getPrimalAspects() {
ArrayList<Aspect> primals = new ArrayList<Aspect>();
Collection<Aspect> pa = aspects.values();
for (Aspect aspect:pa) {
if (aspect.isPrimal()) primals.add(aspect);
}
return primals;
}
public static ArrayList<Aspect> getCompoundAspects() {
ArrayList<Aspect> compounds = new ArrayList<Aspect>();
Collection<Aspect> pa = aspects.values();
for (Aspect aspect:pa) {
if (!aspect.isPrimal()) compounds.add(aspect);
}
return compounds;
}
public String getChatcolor() {
return chatcolor;
}
public void setChatcolor(String chatcolor) {
this.chatcolor = chatcolor;
}
///////////////////////////////
public static LinkedHashMap<String,Aspect> aspects = new LinkedHashMap<String,Aspect>();
//PRIMAL
public static final Aspect AIR = new Aspect("aer",0xffff7e,"e",1);
public static final Aspect EARTH = new Aspect("terra",0x56c000,"2",1);
public static final Aspect FIRE = new Aspect("ignis",0xff5a01,"c",1);
public static final Aspect WATER = new Aspect("aqua",0x3cd4fc,"3",1);
public static final Aspect ORDER = new Aspect("ordo",0xd5d4ec,"7",1);
public static final Aspect ENTROPY = new Aspect("perditio",0x404040,"8",771);
//SECONDARY
public static final Aspect VOID = new Aspect("vacuos",0x888888, new Aspect[] {AIR, ENTROPY},771);
public static final Aspect LIGHT = new Aspect("lux",0xfff663, new Aspect[] {AIR, FIRE});
public static final Aspect WEATHER = new Aspect("tempestas",0xFFFFFF, new Aspect[] {AIR, WATER});
public static final Aspect MOTION = new Aspect("motus",0xcdccf4, new Aspect[] {AIR, ORDER});
public static final Aspect COLD = new Aspect("gelum",0xe1ffff, new Aspect[] {FIRE, ENTROPY});
public static final Aspect CRYSTAL = new Aspect("vitreus",0x80ffff, new Aspect[] {EARTH, ORDER});
public static final Aspect LIFE = new Aspect("victus",0xde0005, new Aspect[] {WATER, EARTH});
public static final Aspect POISON = new Aspect("venenum",0x89f000, new Aspect[] {WATER, ENTROPY});
public static final Aspect ENERGY = new Aspect("potentia",0xc0ffff, new Aspect[] {ORDER, FIRE});
public static final Aspect EXCHANGE = new Aspect("permutatio",0x578357, new Aspect[] {ENTROPY, ORDER});
// public static final Aspect ?? = new Aspect("??",0xcdccf4, new Aspect[] {AIR, EARTH});
// public static final Aspect ?? = new Aspect("??",0xcdccf4, new Aspect[] {FIRE, EARTH});
// public static final Aspect ?? = new Aspect("??",0xcdccf4, new Aspect[] {FIRE, WATER});
// public static final Aspect ?? = new Aspect("??",0xcdccf4, new Aspect[] {ORDER, WATER});
// public static final Aspect ?? = new Aspect("??",0xcdccf4, new Aspect[] {EARTH, ENTROPY});
//TERTIARY
public static final Aspect METAL = new Aspect("metallum",0xb5b5cd, new Aspect[] {EARTH, CRYSTAL});
public static final Aspect DEATH = new Aspect("mortuus",0x887788, new Aspect[] {LIFE, ENTROPY});
public static final Aspect FLIGHT = new Aspect("volatus",0xe7e7d7, new Aspect[] {AIR, MOTION});
public static final Aspect DARKNESS = new Aspect("tenebrae",0x222222, new Aspect[] {VOID, LIGHT});
public static final Aspect SOUL = new Aspect("spiritus",0xebebfb, new Aspect[] {LIFE, DEATH});
public static final Aspect HEAL = new Aspect("sano",0xff2f34, new Aspect[] {LIFE, ORDER});
public static final Aspect TRAVEL = new Aspect("iter",0xe0585b, new Aspect[] {MOTION, EARTH});
public static final Aspect ELDRITCH = new Aspect("alienis",0x805080, new Aspect[] {VOID, DARKNESS});
public static final Aspect MAGIC = new Aspect("praecantatio",0x9700c0, new Aspect[] {VOID, ENERGY});
public static final Aspect AURA = new Aspect("auram",0xffc0ff, new Aspect[] {MAGIC, AIR});
public static final Aspect TAINT = new Aspect("vitium",0x800080, new Aspect[] {MAGIC, ENTROPY});
public static final Aspect SLIME = new Aspect("limus",0x01f800, new Aspect[] {LIFE, WATER});
public static final Aspect PLANT = new Aspect("herba",0x01ac00, new Aspect[] {LIFE, EARTH});
public static final Aspect TREE = new Aspect("arbor",0x876531, new Aspect[] {AIR, PLANT});
public static final Aspect BEAST = new Aspect("bestia",0x9f6409, new Aspect[] {MOTION, LIFE});
public static final Aspect FLESH = new Aspect("corpus",0xee478d, new Aspect[] {DEATH, BEAST});
public static final Aspect UNDEAD = new Aspect("exanimis",0x3a4000, new Aspect[] {MOTION, DEATH});
public static final Aspect MIND = new Aspect("cognitio",0xffc2b3, new Aspect[] {EARTH, SOUL});
public static final Aspect SENSES = new Aspect("sensus",0x0fd9ff, new Aspect[] {AIR, SOUL});
public static final Aspect MAN = new Aspect("humanus",0xffd7c0, new Aspect[] {BEAST, MIND});
public static final Aspect CROP = new Aspect("messis",0xe1b371, new Aspect[] {PLANT, MAN});
public static final Aspect MINE = new Aspect("perfodio",0xdcd2d8, new Aspect[] {MAN, EARTH});
public static final Aspect TOOL = new Aspect("instrumentum",0x4040ee, new Aspect[] {MAN, ORDER});
public static final Aspect HARVEST = new Aspect("meto",0xeead82, new Aspect[] {CROP, TOOL});
public static final Aspect WEAPON = new Aspect("telum",0xc05050, new Aspect[] {TOOL, ENTROPY});
public static final Aspect ARMOR = new Aspect("tutamen",0x00c0c0, new Aspect[] {TOOL, EARTH});
public static final Aspect HUNGER = new Aspect("fames",0x9a0305, new Aspect[] {LIFE, VOID});
public static final Aspect GREED = new Aspect("lucrum",0xe6be44, new Aspect[] {MAN, HUNGER});
public static final Aspect CRAFT = new Aspect("fabrico",0x809d80, new Aspect[] {MAN, TOOL});
public static final Aspect CLOTH = new Aspect("pannus",0xeaeac2, new Aspect[] {TOOL, BEAST});
public static final Aspect MECHANISM = new Aspect("machina",0x8080a0, new Aspect[] {MOTION, TOOL});
public static final Aspect TRAP = new Aspect("vinculum",0x9a8080, new Aspect[] {MOTION, ENTROPY});
}
@@ -1,292 +0,0 @@
package thaumcraft.api.aspects;
import java.io.Serializable;
import java.util.LinkedHashMap;
import net.minecraft.item.ItemStack;
import net.minecraft.nbt.NBTTagCompound;
import net.minecraft.nbt.NBTTagList;
import thaumcraft.api.ThaumcraftApiHelper;
public class AspectList implements Serializable {
public LinkedHashMap<Aspect,Integer> aspects = new LinkedHashMap<Aspect,Integer>();//aspects associated with this object
/**
* this creates a new aspect list with preloaded values based off the aspects of the given item.
* @param the itemstack of the given item
*/
public AspectList(ItemStack stack) {
try {
AspectList temp = ThaumcraftApiHelper.getObjectAspects(stack);
if (temp!=null)
for (Aspect tag:temp.getAspects()) {
add(tag,temp.getAmount(tag));
}
} catch (Exception e) {}
}
public AspectList() {
}
public AspectList copy() {
AspectList out = new AspectList();
for (Aspect a:this.getAspects())
out.add(a, this.getAmount(a));
return out;
}
/**
* @return the amount of different aspects in this collection
*/
public int size() {
return aspects.size();
}
/**
* @return the amount of total vis in this collection
*/
public int visSize() {
int q = 0;
for (Aspect as:aspects.keySet()) {
q+=this.getAmount(as);
}
return q;
}
/**
* @return an array of all the aspects in this collection
*/
public Aspect[] getAspects() {
Aspect[] q = new Aspect[1];
return aspects.keySet().toArray(q);
}
/**
* @return an array of all the aspects in this collection
*/
public Aspect[] getPrimalAspects() {
AspectList t = new AspectList();
for (Aspect as:aspects.keySet()) {
if (as.isPrimal()) {
t.add(as,1);
}
}
Aspect[] q = new Aspect[1];
return t.aspects.keySet().toArray(q);
}
/**
* @return an array of all the aspects in this collection sorted by name
*/
public Aspect[] getAspectsSorted() {
try {
Aspect[] out = aspects.keySet().toArray(new Aspect[]{});
boolean change=false;
do {
change=false;
for(int a=0;a<out.length-1;a++) {
Aspect e1 = out[a];
Aspect e2 = out[a+1];
if (e1!=null && e2!=null && e1.getTag().compareTo(e2.getTag())>0) {
out[a] = e2;
out[a+1] = e1;
change = true;
break;
}
}
} while (change==true);
return out;
} catch (Exception e) {
return this.getAspects();
}
}
/**
* @return an array of all the aspects in this collection sorted by amount
*/
public Aspect[] getAspectsSortedAmount() {
try {
Aspect[] out = aspects.keySet().toArray(new Aspect[1]);
boolean change=false;
do {
change=false;
for(int a=0;a<out.length-1;a++) {
int e1 = getAmount(out[a]);
int e2 = getAmount(out[a+1]);
if (e1>0 && e2>0 && e2>e1) {
Aspect ea = out[a];
Aspect eb = out[a+1];
out[a] = eb;
out[a+1] = ea;
change = true;
break;
}
}
} while (change==true);
return out;
} catch (Exception e) {
return this.getAspects();
}
}
/**
* @param key
* @return the amount associated with the given aspect in this collection
*/
public int getAmount(Aspect key) {
return aspects.get(key)==null?0:aspects.get(key);
}
/**
* Reduces the amount of an aspect in this collection by the given amount.
* @param key
* @param amount
* @return
*/
public boolean reduce(Aspect key, int amount) {
if (getAmount(key)>=amount) {
int am = getAmount(key)-amount;
aspects.put(key, am);
return true;
}
return false;
}
/**
* Reduces the amount of an aspect in this collection by the given amount.
* If reduced to 0 or less the aspect will be removed completely.
* @param key
* @param amount
* @return
*/
public AspectList remove(Aspect key, int amount) {
int am = getAmount(key)-amount;
if (am<=0) aspects.remove(key); else
this.aspects.put(key, am);
return this;
}
/**
* Simply removes the aspect from the list
* @param key
* @param amount
* @return
*/
public AspectList remove(Aspect key) {
aspects.remove(key);
return this;
}
/**
* Adds this aspect and amount to the collection.
* If the aspect exists then its value will be increased by the given amount.
* @param aspect
* @param amount
* @return
*/
public AspectList add(Aspect aspect, int amount) {
if (this.aspects.containsKey(aspect)) {
int oldamount = this.aspects.get(aspect);
amount+=oldamount;
}
this.aspects.put( aspect, amount );
return this;
}
/**
* Adds this aspect and amount to the collection.
* If the aspect exists then only the highest of the old or new amount will be used.
* @param aspect
* @param amount
* @return
*/
public AspectList merge(Aspect aspect, int amount) {
if (this.aspects.containsKey(aspect)) {
int oldamount = this.aspects.get(aspect);
if (amount<oldamount) amount=oldamount;
}
this.aspects.put( aspect, amount );
return this;
}
public AspectList add(AspectList in) {
for (Aspect a:in.getAspects())
this.add(a, in.getAmount(a));
return this;
}
public AspectList merge(AspectList in) {
for (Aspect a:in.getAspects())
this.merge(a, in.getAmount(a));
return this;
}
/**
* Reads the list of aspects from nbt
* @param nbttagcompound
* @return
*/
public void readFromNBT(NBTTagCompound nbttagcompound)
{
aspects.clear();
NBTTagList tlist = nbttagcompound.getTagList("Aspects",(byte)10);
for (int j = 0; j < tlist.tagCount(); j++) {
NBTTagCompound rs = (NBTTagCompound) tlist.getCompoundTagAt(j);
if (rs.hasKey("key")) {
add( Aspect.getAspect(rs.getString("key")),
rs.getInteger("amount"));
}
}
}
public void readFromNBT(NBTTagCompound nbttagcompound, String label)
{
aspects.clear();
NBTTagList tlist = nbttagcompound.getTagList(label,(byte)10);
for (int j = 0; j < tlist.tagCount(); j++) {
NBTTagCompound rs = (NBTTagCompound) tlist.getCompoundTagAt(j);
if (rs.hasKey("key")) {
add( Aspect.getAspect(rs.getString("key")),
rs.getInteger("amount"));
}
}
}
/**
* Writes the list of aspects to nbt
* @param nbttagcompound
* @return
*/
public void writeToNBT(NBTTagCompound nbttagcompound)
{
NBTTagList tlist = new NBTTagList();
nbttagcompound.setTag("Aspects", tlist);
for (Aspect aspect : getAspects())
if (aspect != null) {
NBTTagCompound f = new NBTTagCompound();
f.setString("key", aspect.getTag());
f.setInteger("amount", getAmount(aspect));
tlist.appendTag(f);
}
}
public void writeToNBT(NBTTagCompound nbttagcompound, String label)
{
NBTTagList tlist = new NBTTagList();
nbttagcompound.setTag(label, tlist);
for (Aspect aspect : getAspects())
if (aspect != null) {
NBTTagCompound f = new NBTTagCompound();
f.setString("key", aspect.getTag());
f.setInteger("amount", getAmount(aspect));
tlist.appendTag(f);
}
}
}
@@ -1,58 +0,0 @@
package thaumcraft.api.aspects;
import java.lang.reflect.Method;
import net.minecraft.tileentity.TileEntity;
import net.minecraftforge.common.util.ForgeDirection;
import cpw.mods.fml.common.FMLLog;
public class AspectSourceHelper {
static Method drainEssentia;
static Method findEssentia;
/**
* This method is what is used to drain essentia from jars and other sources for things like
* infusion crafting or powering the arcane furnace. A record of possible sources are kept track of
* and refreshed as needed around the calling tile entity. This also renders the essentia trail particles.
* Only 1 essentia is drained at a time
* @param tile the tile entity that is draining the essentia
* @param aspect the aspect that you are looking for
* @param direction the direction from which you wish to drain. Forgedirection.Unknown simply seeks in all directions.
* @param range how many blocks you wish to search for essentia sources.
* @return boolean returns true if essentia was found and removed from a source.
*/
public static boolean drainEssentia(TileEntity tile, Aspect aspect, ForgeDirection direction, int range) {
try {
if(drainEssentia == null) {
Class fake = Class.forName("thaumcraft.common.lib.events.EssentiaHandler");
drainEssentia = fake.getMethod("drainEssentia", TileEntity.class, Aspect.class, ForgeDirection.class, int.class);
}
return (Boolean) drainEssentia.invoke(null, tile, aspect, direction, range);
} catch(Exception ex) {
FMLLog.warning("[Thaumcraft API] Could not invoke thaumcraft.common.lib.events.EssentiaHandler method drainEssentia");
}
return false;
}
/**
* This method returns if there is any essentia of the passed type that can be drained. It in no way checks how
* much there is, only if an essentia container nearby contains at least 1 point worth.
* @param tile the tile entity that is checking the essentia
* @param aspect the aspect that you are looking for
* @param direction the direction from which you wish to drain. Forgedirection.Unknown simply seeks in all directions.
* @param range how many blocks you wish to search for essentia sources.
* @return boolean returns true if essentia was found and removed from a source.
*/
public static boolean findEssentia(TileEntity tile, Aspect aspect, ForgeDirection direction, int range) {
try {
if(findEssentia == null) {
Class fake = Class.forName("thaumcraft.common.lib.events.EssentiaHandler");
findEssentia = fake.getMethod("findEssentia", TileEntity.class, Aspect.class, ForgeDirection.class, int.class);
}
return (Boolean) findEssentia.invoke(null, tile, aspect, direction, range);
} catch(Exception ex) {
FMLLog.warning("[Thaumcraft API] Could not invoke thaumcraft.common.lib.events.EssentiaHandler method findEssentia");
}
return false;
}
}
@@ -1,80 +0,0 @@
package thaumcraft.api.aspects;
/**
*
* @author azanor
*
* Used by blocks like the crucible and alembic to hold their aspects.
* Tiles extending this interface will have their aspects show up when viewed by goggles of revealing
*
*/
public interface IAspectContainer {
public AspectList getAspects();
public void setAspects(AspectList aspects);
/**
* This method is used to determine of a specific aspect can be added to this container.
* @param tag
* @return true or false
*/
public boolean doesContainerAccept(Aspect tag);
/**
* This method is used to add a certain amount of an aspect to the tile entity.
* @param tag
* @param amount
* @return the amount of aspect left over that could not be added.
*/
public int addToContainer(Aspect tag, int amount);
/**
* Removes a certain amount of a specific aspect from the tile entity
* @param tag
* @param amount
* @return true if that amount of aspect was available and was removed
*/
public boolean takeFromContainer(Aspect tag, int amount);
/**
* removes a bunch of different aspects and amounts from the tile entity.
* @param ot the ObjectTags object that contains the aspects and their amounts.
* @return true if all the aspects and their amounts were available and successfully removed
*
* Going away in the next major patch
*/
@Deprecated
public boolean takeFromContainer(AspectList ot);
/**
* Checks if the tile entity contains the listed amount (or more) of the aspect
* @param tag
* @param amount
* @return
*/
public boolean doesContainerContainAmount(Aspect tag,int amount);
/**
* Checks if the tile entity contains all the listed aspects and their amounts
* @param ot the ObjectTags object that contains the aspects and their amounts.
* @return
*
* Going away in the next major patch
*/
@Deprecated
public boolean doesContainerContain(AspectList ot);
/**
* Returns how much of the aspect this tile entity contains
* @param tag
* @return the amount of that aspect found
*/
public int containerContains(Aspect tag);
}
@@ -1,16 +0,0 @@
package thaumcraft.api.aspects;
/**
* @author Azanor
*
* This interface is implemented by tile entites (or possibly anything else) like jars
* so that they can act as an essentia source for blocks like the infusion altar.
*
*/
public interface IAspectSource extends IAspectContainer {
}
@@ -1,37 +0,0 @@
package thaumcraft.api.aspects;
import net.minecraft.item.ItemStack;
import net.minecraft.nbt.NBTTagCompound;
/**
*
* @author azanor
*
* Used by wispy essences and essentia phials to hold their aspects.
* Useful for similar item containers that store their aspect information in nbt form so TC
* automatically picks up the aspects they contain
*
*/
public interface IEssentiaContainerItem {
public AspectList getAspects(ItemStack itemstack);
public void setAspects(ItemStack itemstack, AspectList aspects);
}
//Example implementation
/*
@Override
public AspectList getAspects(ItemStack itemstack) {
if (itemstack.hasTagCompound()) {
AspectList aspects = new AspectList();
aspects.readFromNBT(itemstack.getTagCompound());
return aspects.size()>0?aspects:null;
}
return null;
}
@Override
public void setAspects(ItemStack itemstack, AspectList aspects) {
if (!itemstack.hasTagCompound()) itemstack.setTagCompound(new NBTTagCompound());
aspects.writeToNBT(itemstack.getTagCompound());
}
*/
@@ -1,100 +0,0 @@
package thaumcraft.api.aspects;
import net.minecraftforge.common.util.ForgeDirection;
/**
* @author Azanor
* This interface is used by tiles that use or transport vis.
* Only tiles that implement this interface will be able to connect to vis conduits or other thaumic devices
*/
public interface IEssentiaTransport {
/**
* Is this tile able to connect to other vis users/sources on the specified side?
* @param face
* @return
*/
public boolean isConnectable(ForgeDirection face);
/**
* Is this side used to input essentia?
* @param face
* @return
*/
boolean canInputFrom(ForgeDirection face);
/**
* Is this side used to output essentia?
* @param face
* @return
*/
boolean canOutputTo(ForgeDirection face);
/**
* Sets the amount of suction this block will apply
* @param suction
*/
public void setSuction(Aspect aspect, int amount);
/**
* Returns the type of suction this block is applying.
* @param loc
* the location from where the suction is being checked
* @return
* a return type of null indicates the suction is untyped and the first thing available will be drawn
*/
public Aspect getSuctionType(ForgeDirection face);
/**
* Returns the strength of suction this block is applying.
* @param loc
* the location from where the suction is being checked
* @return
*/
public int getSuctionAmount(ForgeDirection face);
/**
* remove the specified amount of essentia from this transport tile
* @return how much was actually taken
*/
public int takeEssentia(Aspect aspect, int amount, ForgeDirection face);
/**
* add the specified amount of essentia to this transport tile
* @return how much was actually added
*/
public int addEssentia(Aspect aspect, int amount, ForgeDirection face);
/**
* What type of essentia this contains
* @param face
* @return
*/
public Aspect getEssentiaType(ForgeDirection face);
/**
* How much essentia this block contains
* @param face
* @return
*/
public int getEssentiaAmount(ForgeDirection face);
/**
* Essentia will not be drawn from this container unless the suction exceeds this amount.
* @return the amount
*/
public int getMinimumSuction();
/**
* Return true if you want the conduit to extend a little further into the block.
* Used by jars and alembics that have smaller than normal hitboxes
* @return
*/
boolean renderExtendedTube();
}
@@ -1,91 +0,0 @@
package thaumcraft.api.crafting;
import java.util.ArrayList;
import net.minecraft.item.ItemStack;
import net.minecraftforge.oredict.OreDictionary;
import thaumcraft.api.ThaumcraftApiHelper;
import thaumcraft.api.aspects.Aspect;
import thaumcraft.api.aspects.AspectList;
public class CrucibleRecipe {
private ItemStack recipeOutput;
public Object catalyst;
public AspectList aspects;
public String key;
public int hash;
public CrucibleRecipe(String researchKey, ItemStack result, Object cat, AspectList tags) {
recipeOutput = result;
this.aspects = tags;
this.key = researchKey;
this.catalyst = cat;
if (cat instanceof String) {
this.catalyst = OreDictionary.getOres((String) cat);
}
String hc = researchKey + result.toString();
for (Aspect tag:tags.getAspects()) {
hc += tag.getTag()+tags.getAmount(tag);
}
if (cat instanceof ItemStack) {
hc += ((ItemStack)cat).toString();
} else
if (cat instanceof ArrayList && ((ArrayList<ItemStack>)catalyst).size()>0) {
for (ItemStack is :(ArrayList<ItemStack>)catalyst) {
hc += is.toString();
}
}
hash = hc.hashCode();
}
public boolean matches(AspectList itags, ItemStack cat) {
if (catalyst instanceof ItemStack &&
!ThaumcraftApiHelper.itemMatches((ItemStack) catalyst,cat,false)) {
return false;
} else
if (catalyst instanceof ArrayList && ((ArrayList<ItemStack>)catalyst).size()>0) {
ItemStack[] ores = ((ArrayList<ItemStack>)catalyst).toArray(new ItemStack[]{});
if (!ThaumcraftApiHelper.containsMatch(false, new ItemStack[]{cat},ores)) return false;
}
if (itags==null) return false;
for (Aspect tag:aspects.getAspects()) {
if (itags.getAmount(tag)<aspects.getAmount(tag)) return false;
}
return true;
}
public boolean catalystMatches(ItemStack cat) {
if (catalyst instanceof ItemStack && ThaumcraftApiHelper.itemMatches((ItemStack) catalyst,cat,false)) {
return true;
} else
if (catalyst instanceof ArrayList && ((ArrayList<ItemStack>)catalyst).size()>0) {
ItemStack[] ores = ((ArrayList<ItemStack>)catalyst).toArray(new ItemStack[]{});
if (ThaumcraftApiHelper.containsMatch(false, new ItemStack[]{cat},ores)) return true;
}
return false;
}
public AspectList removeMatching(AspectList itags) {
AspectList temptags = new AspectList();
temptags.aspects.putAll(itags.aspects);
for (Aspect tag:aspects.getAspects()) {
temptags.remove(tag, aspects.getAmount(tag));
}
itags = temptags;
return itags;
}
public ItemStack getRecipeOutput() {
return recipeOutput;
}
}
@@ -1,35 +0,0 @@
package thaumcraft.api.crafting;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.inventory.IInventory;
import net.minecraft.item.ItemStack;
import net.minecraft.world.World;
import thaumcraft.api.aspects.AspectList;
public interface IArcaneRecipe
{
/**
* Used to check if a recipe matches current crafting inventory
* @param player
*/
boolean matches(IInventory var1, World world, EntityPlayer player);
/**
* Returns an Item that is the result of this recipe
*/
ItemStack getCraftingResult(IInventory var1);
/**
* Returns the size of the recipe area
*/
int getRecipeSize();
ItemStack getRecipeOutput();
AspectList getAspects();
AspectList getAspects(IInventory var1);
String getResearch();
}
@@ -1,19 +0,0 @@
package thaumcraft.api.crafting;
import net.minecraft.world.World;
/**
*
* @author Azanor
*
* Blocks that implement this interface act as infusion crafting stabilisers like candles and skulls
*
*/
public interface IInfusionStabiliser {
/**
* returns true if the block can stabilise things
*/
public boolean canStabaliseInfusion(World world, int x, int y, int z);
}
@@ -1,154 +0,0 @@
package thaumcraft.api.crafting;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.Map;
import net.minecraft.enchantment.Enchantment;
import net.minecraft.enchantment.EnchantmentHelper;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.item.ItemStack;
import net.minecraft.world.World;
import net.minecraftforge.oredict.OreDictionary;
import thaumcraft.api.ThaumcraftApiHelper;
import thaumcraft.api.aspects.AspectList;
public class InfusionEnchantmentRecipe
{
public AspectList aspects;
public String research;
public ItemStack[] components;
public Enchantment enchantment;
public int recipeXP;
public int instability;
public InfusionEnchantmentRecipe(String research, Enchantment input, int inst,
AspectList aspects2, ItemStack[] recipe) {
this.research = research;
this.enchantment = input;
this.aspects = aspects2;
this.components = recipe;
this.instability = inst;
this.recipeXP = Math.max(1, input.getMinEnchantability(1)/3);
}
/**
* Used to check if a recipe matches current crafting inventory
* @param player
*/
public boolean matches(ArrayList<ItemStack> input, ItemStack central, World world, EntityPlayer player) {
if (research.length()>0 && !ThaumcraftApiHelper.isResearchComplete(player.getCommandSenderName(), research)) {
return false;
}
if (!enchantment.canApply(central) || !central.getItem().isItemTool(central)) {
return false;
}
Map map1 = EnchantmentHelper.getEnchantments(central);
Iterator iterator = map1.keySet().iterator();
while (iterator.hasNext())
{
int j1 = ((Integer)iterator.next()).intValue();
Enchantment ench = Enchantment.enchantmentsList[j1];
if (j1 == enchantment.effectId &&
EnchantmentHelper.getEnchantmentLevel(j1, central)>=ench.getMaxLevel())
return false;
if (enchantment.effectId != ench.effectId &&
(!enchantment.canApplyTogether(ench) ||
!ench.canApplyTogether(enchantment))) {
return false;
}
}
ItemStack i2 = null;
ArrayList<ItemStack> ii = new ArrayList<ItemStack>();
for (ItemStack is:input) {
ii.add(is.copy());
}
for (ItemStack comp:components) {
boolean b=false;
for (int a=0;a<ii.size();a++) {
i2 = ii.get(a).copy();
if (comp.getItemDamage()==OreDictionary.WILDCARD_VALUE) {
i2.setItemDamage(OreDictionary.WILDCARD_VALUE);
}
if (areItemStacksEqual(i2, comp,true)) {
ii.remove(a);
b=true;
break;
}
}
if (!b) return false;
}
// System.out.println(ii.size());
return ii.size()==0?true:false;
}
protected boolean areItemStacksEqual(ItemStack stack0, ItemStack stack1, boolean fuzzy)
{
if (stack0==null && stack1!=null) return false;
if (stack0!=null && stack1==null) return false;
if (stack0==null && stack1==null) return true;
boolean t1=ThaumcraftApiHelper.areItemStackTagsEqualForCrafting(stack0, stack1);
if (!t1) return false;
if (fuzzy) {
Integer od = OreDictionary.getOreID(stack0);
if (od!=-1) {
ItemStack[] ores = OreDictionary.getOres(od).toArray(new ItemStack[]{});
if (ThaumcraftApiHelper.containsMatch(false, new ItemStack[]{stack1}, ores))
return true;
}
}
return stack0.getItem() != stack1.getItem() ? false : (stack0.getItemDamage() != stack1.getItemDamage() ? false : stack0.stackSize <= stack0.getMaxStackSize() );
}
public Enchantment getEnchantment() {
return enchantment;
}
public AspectList getAspects() {
return aspects;
}
public String getResearch() {
return research;
}
public int calcInstability(ItemStack recipeInput) {
int i = 0;
Map map1 = EnchantmentHelper.getEnchantments(recipeInput);
Iterator iterator = map1.keySet().iterator();
while (iterator.hasNext())
{
int j1 = ((Integer)iterator.next()).intValue();
i += EnchantmentHelper.getEnchantmentLevel(j1, recipeInput);
}
return (i/2) + instability;
}
public int calcXP(ItemStack recipeInput) {
return recipeXP * (1+EnchantmentHelper.getEnchantmentLevel(enchantment.effectId, recipeInput));
}
public float getEssentiaMod(ItemStack recipeInput) {
float mod = EnchantmentHelper.getEnchantmentLevel(enchantment.effectId, recipeInput);
Map map1 = EnchantmentHelper.getEnchantments(recipeInput);
Iterator iterator = map1.keySet().iterator();
while (iterator.hasNext())
{
int j1 = ((Integer)iterator.next()).intValue();
if (j1 != enchantment.effectId)
mod += EnchantmentHelper.getEnchantmentLevel(j1, recipeInput) * .1f;
}
return mod;
}
}
@@ -1,133 +0,0 @@
package thaumcraft.api.crafting;
import java.util.ArrayList;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.item.ItemStack;
import net.minecraft.world.World;
import net.minecraftforge.oredict.OreDictionary;
import thaumcraft.api.ThaumcraftApiHelper;
import thaumcraft.api.aspects.AspectList;
public class InfusionRecipe
{
protected AspectList aspects;
protected String research;
private ItemStack[] components;
private ItemStack recipeInput;
protected Object recipeOutput;
protected int instability;
public InfusionRecipe(String research, Object output, int inst,
AspectList aspects2, ItemStack input, ItemStack[] recipe) {
this.research = research;
this.recipeOutput = output;
this.recipeInput = input;
this.aspects = aspects2;
this.components = recipe;
this.instability = inst;
}
/**
* Used to check if a recipe matches current crafting inventory
* @param player
*/
public boolean matches(ArrayList<ItemStack> input, ItemStack central, World world, EntityPlayer player) {
if (getRecipeInput()==null) return false;
if (research.length()>0 && !ThaumcraftApiHelper.isResearchComplete(player.getCommandSenderName(), research)) {
return false;
}
ItemStack i2 = central.copy();
if (getRecipeInput().getItemDamage()==OreDictionary.WILDCARD_VALUE) {
i2.setItemDamage(OreDictionary.WILDCARD_VALUE);
}
if (!areItemStacksEqual(i2, getRecipeInput(), true)) return false;
ArrayList<ItemStack> ii = new ArrayList<ItemStack>();
for (ItemStack is:input) {
ii.add(is.copy());
}
for (ItemStack comp:getComponents()) {
boolean b=false;
for (int a=0;a<ii.size();a++) {
i2 = ii.get(a).copy();
if (comp.getItemDamage()==OreDictionary.WILDCARD_VALUE) {
i2.setItemDamage(OreDictionary.WILDCARD_VALUE);
}
if (areItemStacksEqual(i2, comp,true)) {
ii.remove(a);
b=true;
break;
}
}
if (!b) return false;
}
return ii.size()==0?true:false;
}
public static boolean areItemStacksEqual(ItemStack stack0, ItemStack stack1, boolean fuzzy)
{
if (stack0==null && stack1!=null) return false;
if (stack0!=null && stack1==null) return false;
if (stack0==null && stack1==null) return true;
//nbt
boolean t1=ThaumcraftApiHelper.areItemStackTagsEqualForCrafting(stack0, stack1);
if (!t1) return false;
if (fuzzy) {
Integer od = OreDictionary.getOreID(stack0);
if (od!=-1) {
ItemStack[] ores = OreDictionary.getOres(od).toArray(new ItemStack[]{});
if (ThaumcraftApiHelper.containsMatch(false, new ItemStack[]{stack1}, ores))
return true;
}
}
//damage
boolean damage = stack0.getItemDamage() == stack1.getItemDamage() ||
stack1.getItemDamage() == OreDictionary.WILDCARD_VALUE;
return stack0.getItem() != stack1.getItem() ? false : (!damage ? false : stack0.stackSize <= stack0.getMaxStackSize() );
}
public Object getRecipeOutput() {
return getRecipeOutput(this.getRecipeInput());
}
public AspectList getAspects() {
return getAspects(this.getRecipeInput());
}
public int getInstability() {
return getInstability(this.getRecipeInput());
}
public String getResearch() {
return research;
}
public ItemStack getRecipeInput() {
return recipeInput;
}
public ItemStack[] getComponents() {
return components;
}
public Object getRecipeOutput(ItemStack input) {
return recipeOutput;
}
public AspectList getAspects(ItemStack input) {
return aspects;
}
public int getInstability(ItemStack input) {
return instability;
}
}
@@ -1,261 +0,0 @@
package thaumcraft.api.crafting;
import java.util.ArrayList;
import java.util.HashMap;
import net.minecraft.block.Block;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.inventory.IInventory;
import net.minecraft.item.Item;
import net.minecraft.item.ItemStack;
import net.minecraft.world.World;
import net.minecraftforge.oredict.OreDictionary;
import thaumcraft.api.ThaumcraftApiHelper;
import thaumcraft.api.aspects.AspectList;
public class ShapedArcaneRecipe implements IArcaneRecipe
{
//Added in for future ease of change, but hard coded for now.
private static final int MAX_CRAFT_GRID_WIDTH = 3;
private static final int MAX_CRAFT_GRID_HEIGHT = 3;
public ItemStack output = null;
public Object[] input = null;
public AspectList aspects = null;
public String research;
public int width = 0;
public int height = 0;
private boolean mirrored = true;
public ShapedArcaneRecipe(String research, Block result, AspectList aspects, Object... recipe){ this(research, new ItemStack(result), aspects, recipe); }
public ShapedArcaneRecipe(String research, Item result, AspectList aspects, Object... recipe){ this(research, new ItemStack(result), aspects, recipe); }
public ShapedArcaneRecipe(String research, ItemStack result, AspectList aspects, Object... recipe)
{
output = result.copy();
this.research = research;
this.aspects = aspects;
String shape = "";
int idx = 0;
if (recipe[idx] instanceof Boolean)
{
mirrored = (Boolean)recipe[idx];
if (recipe[idx+1] instanceof Object[])
{
recipe = (Object[])recipe[idx+1];
}
else
{
idx = 1;
}
}
if (recipe[idx] instanceof String[])
{
String[] parts = ((String[])recipe[idx++]);
for (String s : parts)
{
width = s.length();
shape += s;
}
height = parts.length;
}
else
{
while (recipe[idx] instanceof String)
{
String s = (String)recipe[idx++];
shape += s;
width = s.length();
height++;
}
}
if (width * height != shape.length())
{
String ret = "Invalid shaped ore recipe: ";
for (Object tmp : recipe)
{
ret += tmp + ", ";
}
ret += output;
throw new RuntimeException(ret);
}
HashMap<Character, Object> itemMap = new HashMap<Character, Object>();
for (; idx < recipe.length; idx += 2)
{
Character chr = (Character)recipe[idx];
Object in = recipe[idx + 1];
if (in instanceof ItemStack)
{
itemMap.put(chr, ((ItemStack)in).copy());
}
else if (in instanceof Item)
{
itemMap.put(chr, new ItemStack((Item)in));
}
else if (in instanceof Block)
{
itemMap.put(chr, new ItemStack((Block)in, 1, OreDictionary.WILDCARD_VALUE));
}
else if (in instanceof String)
{
itemMap.put(chr, OreDictionary.getOres((String)in));
}
else
{
String ret = "Invalid shaped ore recipe: ";
for (Object tmp : recipe)
{
ret += tmp + ", ";
}
ret += output;
throw new RuntimeException(ret);
}
}
input = new Object[width * height];
int x = 0;
for (char chr : shape.toCharArray())
{
input[x++] = itemMap.get(chr);
}
}
@Override
public ItemStack getCraftingResult(IInventory var1){ return output.copy(); }
@Override
public int getRecipeSize(){ return input.length; }
@Override
public ItemStack getRecipeOutput(){ return output; }
@Override
public boolean matches(IInventory inv, World world, EntityPlayer player)
{
if (research.length()>0 && !ThaumcraftApiHelper.isResearchComplete(player.getCommandSenderName(), research)) {
return false;
}
for (int x = 0; x <= MAX_CRAFT_GRID_WIDTH - width; x++)
{
for (int y = 0; y <= MAX_CRAFT_GRID_HEIGHT - height; ++y)
{
if (checkMatch(inv, x, y, false))
{
return true;
}
if (mirrored && checkMatch(inv, x, y, true))
{
return true;
}
}
}
return false;
}
private boolean checkMatch(IInventory inv, int startX, int startY, boolean mirror)
{
for (int x = 0; x < MAX_CRAFT_GRID_WIDTH; x++)
{
for (int y = 0; y < MAX_CRAFT_GRID_HEIGHT; y++)
{
int subX = x - startX;
int subY = y - startY;
Object target = null;
if (subX >= 0 && subY >= 0 && subX < width && subY < height)
{
if (mirror)
{
target = input[width - subX - 1 + subY * width];
}
else
{
target = input[subX + subY * width];
}
}
ItemStack slot = ThaumcraftApiHelper.getStackInRowAndColumn(inv, x, y);
if (target instanceof ItemStack)
{
if (!checkItemEquals((ItemStack)target, slot))
{
return false;
}
}
else if (target instanceof ArrayList)
{
boolean matched = false;
for (ItemStack item : (ArrayList<ItemStack>)target)
{
matched = matched || checkItemEquals(item, slot);
}
if (!matched)
{
return false;
}
}
else if (target == null && slot != null)
{
return false;
}
}
}
return true;
}
private boolean checkItemEquals(ItemStack target, ItemStack input)
{
if (input == null && target != null || input != null && target == null)
{
return false;
}
return (target.getItem() == input.getItem() &&
(!target.hasTagCompound() || ThaumcraftApiHelper.areItemStackTagsEqualForCrafting(input,target)) &&
(target.getItemDamage() == OreDictionary.WILDCARD_VALUE|| target.getItemDamage() == input.getItemDamage()));
}
public ShapedArcaneRecipe setMirrored(boolean mirror)
{
mirrored = mirror;
return this;
}
/**
* Returns the input for this recipe, any mod accessing this value should never
* manipulate the values in this array as it will effect the recipe itself.
* @return The recipes input vales.
*/
public Object[] getInput()
{
return this.input;
}
@Override
public AspectList getAspects() {
return aspects;
}
@Override
public AspectList getAspects(IInventory inv) {
return aspects;
}
@Override
public String getResearch() {
return research;
}
}
@@ -1,161 +0,0 @@
package thaumcraft.api.crafting;
import java.util.ArrayList;
import java.util.Iterator;
import net.minecraft.block.Block;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.inventory.IInventory;
import net.minecraft.item.Item;
import net.minecraft.item.ItemStack;
import net.minecraft.world.World;
import net.minecraftforge.oredict.OreDictionary;
import thaumcraft.api.ThaumcraftApiHelper;
import thaumcraft.api.aspects.AspectList;
public class ShapelessArcaneRecipe implements IArcaneRecipe
{
private ItemStack output = null;
private ArrayList input = new ArrayList();
public AspectList aspects = null;
public String research;
public ShapelessArcaneRecipe(String research, Block result, AspectList aspects, Object... recipe){ this(research,new ItemStack(result),aspects, recipe); }
public ShapelessArcaneRecipe(String research, Item result, AspectList aspects, Object... recipe){ this(research,new ItemStack(result),aspects, recipe); }
public ShapelessArcaneRecipe(String research, ItemStack result, AspectList aspects, Object... recipe)
{
output = result.copy();
this.research = research;
this.aspects = aspects;
for (Object in : recipe)
{
if (in instanceof ItemStack)
{
input.add(((ItemStack)in).copy());
}
else if (in instanceof Item)
{
input.add(new ItemStack((Item)in));
}
else if (in instanceof Block)
{
input.add(new ItemStack((Block)in));
}
else if (in instanceof String)
{
input.add(OreDictionary.getOres((String)in));
}
else
{
String ret = "Invalid shapeless ore recipe: ";
for (Object tmp : recipe)
{
ret += tmp + ", ";
}
ret += output;
throw new RuntimeException(ret);
}
}
}
@Override
public int getRecipeSize(){ return input.size(); }
@Override
public ItemStack getRecipeOutput(){ return output; }
@Override
public ItemStack getCraftingResult(IInventory var1){ return output.copy(); }
@Override
public boolean matches(IInventory var1, World world, EntityPlayer player)
{
if (research.length()>0 && !ThaumcraftApiHelper.isResearchComplete(player.getCommandSenderName(), research)) {
return false;
}
ArrayList required = new ArrayList(input);
for (int x = 0; x < 9; x++)
{
ItemStack slot = var1.getStackInSlot(x);
if (slot != null)
{
boolean inRecipe = false;
Iterator req = required.iterator();
while (req.hasNext())
{
boolean match = false;
Object next = req.next();
if (next instanceof ItemStack)
{
match = checkItemEquals((ItemStack)next, slot);
}
else if (next instanceof ArrayList)
{
for (ItemStack item : (ArrayList<ItemStack>)next)
{
match = match || checkItemEquals(item, slot);
}
}
if (match)
{
inRecipe = true;
required.remove(next);
break;
}
}
if (!inRecipe)
{
return false;
}
}
}
return required.isEmpty();
}
private boolean checkItemEquals(ItemStack target, ItemStack input)
{
if (input == null && target != null || input != null && target == null)
{
return false;
}
return (target.getItem() == input.getItem() &&
(!target.hasTagCompound() || ThaumcraftApiHelper.areItemStackTagsEqualForCrafting(input,target)) &&
(target.getItemDamage() == OreDictionary.WILDCARD_VALUE|| target.getItemDamage() == input.getItemDamage()));
}
/**
* Returns the input for this recipe, any mod accessing this value should never
* manipulate the values in this array as it will effect the recipe itself.
* @return The recipes input vales.
*/
public ArrayList getInput()
{
return this.input;
}
@Override
public AspectList getAspects() {
return aspects;
}
@Override
public AspectList getAspects(IInventory inv) {
return aspects;
}
@Override
public String getResearch() {
return research;
}
}
@@ -1,32 +0,0 @@
package thaumcraft.api.damagesource;
import net.minecraft.entity.Entity;
import net.minecraft.util.DamageSource;
import net.minecraft.util.EntityDamageSourceIndirect;
public class DamageSourceIndirectThaumcraftEntity extends EntityDamageSourceIndirect {
private boolean fireDamage;
private float hungerDamage;
private boolean isUnblockable;
public DamageSourceIndirectThaumcraftEntity(String par1Str,
Entity par2Entity, Entity par3Entity) {
super(par1Str, par2Entity, par3Entity);
}
public DamageSource setFireDamage()
{
this.fireDamage = true;
return this;
}
public DamageSource setDamageBypassesArmor()
{
this.isUnblockable = true;
this.hungerDamage = 0.0F;
return this;
}
}
@@ -1,47 +0,0 @@
package thaumcraft.api.damagesource;
import net.minecraft.entity.EntityLivingBase;
import net.minecraft.util.DamageSource;
import net.minecraft.util.EntityDamageSource;
public class DamageSourceThaumcraft extends DamageSource
{
public static DamageSource taint = new DamageSourceThaumcraft("taint").setDamageBypassesArmor().setMagicDamage();
public static DamageSource tentacle = new DamageSourceThaumcraft("tentacle");
public static DamageSource swarm = new DamageSourceThaumcraft("swarm");
public static DamageSource dissolve = new DamageSourceThaumcraft("dissolve").setDamageBypassesArmor();
protected DamageSourceThaumcraft(String par1Str) {
super(par1Str);
}
/** This kind of damage can be blocked or not. */
private boolean isUnblockable = false;
private boolean isDamageAllowedInCreativeMode = false;
private float hungerDamage = 0.3F;
/** This kind of damage is based on fire or not. */
private boolean fireDamage;
/** This kind of damage is based on a projectile or not. */
private boolean projectile;
/**
* Whether this damage source will have its damage amount scaled based on the current difficulty.
*/
private boolean difficultyScaled;
private boolean magicDamage = false;
private boolean explosion = false;
public static DamageSource causeSwarmDamage(EntityLivingBase par0EntityLiving)
{
return new EntityDamageSource("swarm", par0EntityLiving);
}
public static DamageSource causeTentacleDamage(EntityLivingBase par0EntityLiving)
{
return new EntityDamageSource("tentacle", par0EntityLiving);
}
}
@@ -1,5 +0,0 @@
package thaumcraft.api.entities;
public interface IEldritchMob {
}
@@ -1,5 +0,0 @@
package thaumcraft.api.entities;
public interface ITaintedMob {
}
@@ -1,78 +0,0 @@
package thaumcraft.api.internal;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.item.Item;
import net.minecraft.item.ItemStack;
import thaumcraft.api.aspects.Aspect;
import thaumcraft.api.aspects.AspectList;
public class DummyInternalMethodHandler implements IInternalMethodHandler {
@Override
public void generateVisEffect(int dim, int x, int y, int z, int x2, int y2, int z2, int color) {
}
@Override
public boolean isResearchComplete(String username, String researchkey) {
return false;
}
@Override
public boolean hasDiscoveredAspect(String username, Aspect aspect) {
return false;
}
@Override
public AspectList getDiscoveredAspects(String username) {
return null;
}
@Override
public ItemStack getStackInRowAndColumn(Object instance, int row, int column) {
return null;
}
@Override
public AspectList getObjectAspects(ItemStack is) {
return null;
}
@Override
public AspectList getBonusObjectTags(ItemStack is, AspectList ot) {
return null;
}
@Override
public AspectList generateTags(Item item, int meta) {
return null;
}
@Override
public boolean consumeVisFromWand(ItemStack wand, EntityPlayer player,
AspectList cost, boolean doit, boolean crafting) {
return false;
}
@Override
public boolean consumeVisFromWandCrafting(ItemStack wand,
EntityPlayer player, AspectList cost, boolean doit) {
return false;
}
@Override
public boolean consumeVisFromInventory(EntityPlayer player, AspectList cost) {
return false;
}
@Override
public void addWarpToPlayer(EntityPlayer player, int amount, boolean temporary) {
}
@Override
public void addStickyWarpToPlayer(EntityPlayer player, int amount) {
}
}
@@ -1,25 +0,0 @@
package thaumcraft.api.internal;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.item.Item;
import net.minecraft.item.ItemStack;
import thaumcraft.api.aspects.Aspect;
import thaumcraft.api.aspects.AspectList;
public interface IInternalMethodHandler {
public void generateVisEffect(int dim, int x, int y, int z, int x2, int y2, int z2, int color);
public boolean isResearchComplete(String username, String researchkey);
public ItemStack getStackInRowAndColumn(Object instance, int row, int column);
public AspectList getObjectAspects(ItemStack is);
public AspectList getBonusObjectTags(ItemStack is,AspectList ot);
public AspectList generateTags(Item item, int meta);
public boolean consumeVisFromWand(ItemStack wand, EntityPlayer player, AspectList cost, boolean doit, boolean crafting);
public boolean consumeVisFromWandCrafting(ItemStack wand,EntityPlayer player, AspectList cost, boolean doit);
public boolean consumeVisFromInventory(EntityPlayer player, AspectList cost);
public void addWarpToPlayer(EntityPlayer player, int amount,boolean temporary);
public void addStickyWarpToPlayer(EntityPlayer player, int amount);
public boolean hasDiscoveredAspect(String username, Aspect aspect);
public AspectList getDiscoveredAspects(String username);
}
@@ -1,24 +0,0 @@
package thaumcraft.api.internal;
import java.util.ArrayList;
import net.minecraft.item.ItemStack;
import net.minecraft.util.WeightedRandom;
public class WeightedRandomLoot extends WeightedRandom.Item {
/** The Item/Block ID to generate in the bag. */
public ItemStack item;
public WeightedRandomLoot(ItemStack stack, int weight)
{
super(weight);
this.item = stack;
}
public static ArrayList<WeightedRandomLoot> lootBagCommon = new ArrayList<WeightedRandomLoot>();
public static ArrayList<WeightedRandomLoot> lootBagUncommon = new ArrayList<WeightedRandomLoot>();
public static ArrayList<WeightedRandomLoot> lootBagRare = new ArrayList<WeightedRandomLoot>();
}
@@ -1,53 +0,0 @@
package thaumcraft.api.nodes;
import thaumcraft.api.aspects.Aspect;
import thaumcraft.api.aspects.AspectList;
import thaumcraft.api.aspects.IAspectContainer;
public interface INode extends IAspectContainer {
/**
* Unique identifier to distinguish nodes. Normal node id's are based on world id and coordinates
* @return
*/
public String getId();
public AspectList getAspectsBase();
/**
* Return the type of node
* @return
*/
public NodeType getNodeType();
/**
* Set the type of node
* @return
*/
public void setNodeType(NodeType nodeType);
/**
* Set the node modifier
* @return
*/
public void setNodeModifier(NodeModifier nodeModifier);
/**
* Return the node modifier
* @return
*/
public NodeModifier getNodeModifier();
/**
* Return the maximum capacity of each aspect the node can hold
* @return
*/
public int getNodeVisBase(Aspect aspect);
/**
* Set the maximum capacity of each aspect the node can hold
* @return
*/
public void setNodeVisBase(Aspect aspect, short nodeVisBase);
}
@@ -1,22 +0,0 @@
package thaumcraft.api.nodes;
import net.minecraft.entity.EntityLivingBase;
import net.minecraft.item.ItemStack;
/**
*
* @author Azanor
*
* Equipped head slot items that extend this class will make nodes visible in world.
*
*/
public interface IRevealer {
/*
* If this method returns true the nodes will be visible.
*/
public boolean showNodes(ItemStack itemstack, EntityLivingBase player);
}
@@ -1,6 +0,0 @@
package thaumcraft.api.nodes;
public enum NodeModifier
{
BRIGHT, PALE, FADING
}
@@ -1,6 +0,0 @@
package thaumcraft.api.nodes;
public enum NodeType
{
NORMAL, UNSTABLE, DARK, TAINTED, HUNGRY, PURE
}
@@ -1,4 +0,0 @@
@API(owner = "Thaumcraft", apiVersion = "4.2.0.0", provides = "Thaumcraft|API")
package thaumcraft.api;
import cpw.mods.fml.common.API;
@@ -1,67 +0,0 @@
package thaumcraft.api.potions;
import net.minecraft.client.Minecraft;
import net.minecraft.entity.EntityLivingBase;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.potion.Potion;
import net.minecraft.util.ResourceLocation;
import thaumcraft.api.damagesource.DamageSourceThaumcraft;
import thaumcraft.api.entities.ITaintedMob;
import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;
public class PotionFluxTaint extends Potion
{
public static PotionFluxTaint instance = null; // will be instantiated at runtime
private int statusIconIndex = -1;
public PotionFluxTaint(int par1, boolean par2, int par3)
{
super(par1,par2,par3);
setIconIndex(0, 0);
}
public static void init()
{
instance.setPotionName("potion.fluxtaint");
instance.setIconIndex(3, 1);
instance.setEffectiveness(0.25D);
}
@Override
public boolean isBadEffect() {
return true;
}
@Override
@SideOnly(Side.CLIENT)
public int getStatusIconIndex() {
Minecraft.getMinecraft().renderEngine.bindTexture(rl);
return super.getStatusIconIndex();
}
static final ResourceLocation rl = new ResourceLocation("thaumcraft","textures/misc/potions.png");
@Override
public void performEffect(EntityLivingBase target, int par2) {
if (target instanceof ITaintedMob) {
target.heal(1);
} else
if (!target.isEntityUndead() && !(target instanceof EntityPlayer))
{
target.attackEntityFrom(DamageSourceThaumcraft.taint, 1);
}
else
if (!target.isEntityUndead() && (target.getMaxHealth() > 1 || (target instanceof EntityPlayer)))
{
target.attackEntityFrom(DamageSourceThaumcraft.taint, 1);
}
}
public boolean isReady(int par1, int par2)
{
int k = 40 >> par2;
return k > 0 ? par1 % k == 0 : true;
}
}
@@ -1,48 +0,0 @@
package thaumcraft.api.potions;
import net.minecraft.client.Minecraft;
import net.minecraft.entity.EntityLivingBase;
import net.minecraft.potion.Potion;
import net.minecraft.util.ResourceLocation;
import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;
public class PotionVisExhaust extends Potion
{
public static PotionVisExhaust instance = null; // will be instantiated at runtime
private int statusIconIndex = -1;
public PotionVisExhaust(int par1, boolean par2, int par3)
{
super(par1,par2,par3);
setIconIndex(0, 0);
}
public static void init()
{
instance.setPotionName("potion.visexhaust");
instance.setIconIndex(5, 1);
instance.setEffectiveness(0.25D);
}
@Override
public boolean isBadEffect() {
return true;
}
@Override
@SideOnly(Side.CLIENT)
public int getStatusIconIndex() {
Minecraft.getMinecraft().renderEngine.bindTexture(rl);
return super.getStatusIconIndex();
}
static final ResourceLocation rl = new ResourceLocation("thaumcraft","textures/misc/potions.png");
@Override
public void performEffect(EntityLivingBase target, int par2) {
}
}
@@ -1,9 +0,0 @@
package thaumcraft.api.research;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.item.ItemStack;
import net.minecraft.world.World;
public interface IScanEventHandler {
ScanResult scanPhenomena(ItemStack stack, World world, EntityPlayer player);
}
@@ -1,101 +0,0 @@
package thaumcraft.api.research;
import java.util.Collection;
import java.util.LinkedHashMap;
import net.minecraft.util.ResourceLocation;
import net.minecraft.util.StatCollector;
import org.apache.logging.log4j.Level;
import cpw.mods.fml.common.FMLLog;
public class ResearchCategories {
//Research
public static LinkedHashMap <String, ResearchCategoryList> researchCategories = new LinkedHashMap <String,ResearchCategoryList>();
/**
* @param key
* @return the research item linked to this key
*/
public static ResearchCategoryList getResearchList(String key) {
return researchCategories.get(key);
}
/**
* @param key
* @return the name of the research category linked to this key.
* Must be stored as localization information in the LanguageRegistry.
*/
public static String getCategoryName(String key) {
return StatCollector.translateToLocal("tc.research_category."+key);
}
/**
* @param key the research key
* @return the ResearchItem object.
*/
public static ResearchItem getResearch(String key) {
Collection rc = researchCategories.values();
for (Object cat:rc) {
Collection rl = ((ResearchCategoryList)cat).research.values();
for (Object ri:rl) {
if ((((ResearchItem)ri).key).equals(key)) return (ResearchItem)ri;
}
}
return null;
}
/**
* This should only be done at the PostInit stage
* @param key the key used for this category
* @param icon the icon to be used for the research category tab
* @param background the resource location of the background image to use for this category
* @return the name of the research linked to this key
*/
public static void registerCategory(String key, ResourceLocation icon, ResourceLocation background) {
if (getResearchList(key)==null) {
ResearchCategoryList rl = new ResearchCategoryList(icon, background);
researchCategories.put(key, rl);
}
}
public static void addResearch(ResearchItem ri) {
ResearchCategoryList rl = getResearchList(ri.category);
if (rl!=null && !rl.research.containsKey(ri.key)) {
if (!ri.isVirtual()) {
for (ResearchItem rr:rl.research.values()) {
if (rr.displayColumn == ri.displayColumn && rr.displayRow == ri.displayRow) {
FMLLog.log(Level.FATAL, "[Thaumcraft] Research ["+ri.getName()+"] not added as it overlaps with existing research ["+rr.getName()+"]");
return;
}
}
}
rl.research.put(ri.key, ri);
if (ri.displayColumn < rl.minDisplayColumn)
{
rl.minDisplayColumn = ri.displayColumn;
}
if (ri.displayRow < rl.minDisplayRow)
{
rl.minDisplayRow = ri.displayRow;
}
if (ri.displayColumn > rl.maxDisplayColumn)
{
rl.maxDisplayColumn = ri.displayColumn;
}
if (ri.displayRow > rl.maxDisplayRow)
{
rl.maxDisplayRow = ri.displayRow;
}
}
}
}
@@ -1,37 +0,0 @@
package thaumcraft.api.research;
import java.util.HashMap;
import java.util.Map;
import net.minecraft.util.ResourceLocation;
public class ResearchCategoryList {
/** Is the smallest column used on the GUI. */
public int minDisplayColumn;
/** Is the smallest row used on the GUI. */
public int minDisplayRow;
/** Is the biggest column used on the GUI. */
public int maxDisplayColumn;
/** Is the biggest row used on the GUI. */
public int maxDisplayRow;
/** display variables **/
public ResourceLocation icon;
public ResourceLocation background;
public ResearchCategoryList(ResourceLocation icon, ResourceLocation background) {
this.icon = icon;
this.background = background;
}
//Research
public Map<String, ResearchItem> research = new HashMap<String,ResearchItem>();
}
@@ -1,369 +0,0 @@
package thaumcraft.api.research;
import net.minecraft.item.ItemStack;
import net.minecraft.util.ResourceLocation;
import net.minecraft.util.StatCollector;
import thaumcraft.api.aspects.Aspect;
import thaumcraft.api.aspects.AspectList;
public class ResearchItem
{
/**
* A short string used as a key for this research. Must be unique
*/
public final String key;
/**
* A short string used as a reference to the research category to which this must be added.
*/
public final String category;
/**
* The aspect tags and their values required to complete this research
*/
public final AspectList tags;
/**
* This links to any research that needs to be completed before this research can be discovered or learnt.
*/
public String[] parents = null;
/**
* Like parent above, but a line will not be displayed in the thaumonomicon linking them. Just used to prevent clutter.
*/
public String[] parentsHidden = null;
/**
* any research linked to this that will be unlocked automatically when this research is complete
*/
public String[] siblings = null;
/**
* the horizontal position of the research icon
*/
public final int displayColumn;
/**
* the vertical position of the research icon
*/
public final int displayRow;
/**
* the icon to be used for this research
*/
public final ItemStack icon_item;
/**
* the icon to be used for this research
*/
public final ResourceLocation icon_resource;
/**
* How large the research grid is. Valid values are 1 to 3.
*/
private int complexity;
/**
* Special research has a spiky border. Used for important research milestones.
*/
private boolean isSpecial;
/**
* Research that can be directly purchased with RP in normal research difficulty.
*/
private boolean isSecondary;
/**
* This indicates if the research should use a circular icon border. Usually used for "passive" research
* that doesn't have recipes and grants passive effects, or that unlock automatically.
*/
private boolean isRound;
/**
* Stub research cannot be discovered by normal means, but can be unlocked via the sibling system.
*/
private boolean isStub;
/**
* This indicated that the research is completely hidden and cannot be discovered by any
* player-controlled means. The recipes will never show up in the thaumonomicon.
* Usually used to unlock "hidden" recipes via sibling unlocking, like
* the various cap and rod combos for wands.
*/
private boolean isVirtual;
/**
* Concealed research does not display in the thaumonomicon until parent researches are discovered.
*/
private boolean isConcealed;
/**
* Hidden research can only be discovered via scanning or knowledge fragments
*/
private boolean isHidden;
/**
* This is the same as isHidden, except it cannot be discovered with knowledge fragments, only scanning.
*/
private boolean isLost;
/**
* These research items will automatically unlock for all players on game start
*/
private boolean isAutoUnlock;
/**
* Scanning these items will have a chance of revealing hidden knowledge in the thaumonomicon
*/
private ItemStack[] itemTriggers;
/**
* Scanning these entities will have a chance of revealing hidden knowledge in the thaumonomicon
*/
private String[] entityTriggers;
/**
* Scanning things with these aspects will have a chance of revealing hidden knowledge in the thaumonomicon
*/
private Aspect[] aspectTriggers;
private ResearchPage[] pages = null;
public ResearchItem(String key, String category)
{
this.key = key;
this.category = category;
this.tags = new AspectList();
this.icon_resource = null;
this.icon_item = null;
this.displayColumn = 0;
this.displayRow = 0;
this.setVirtual();
}
public ResearchItem(String key, String category, AspectList tags, int col, int row, int complex, ResourceLocation icon)
{
this.key = key;
this.category = category;
this.tags = tags;
this.icon_resource = icon;
this.icon_item = null;
this.displayColumn = col;
this.displayRow = row;
this.complexity = complex;
if (complexity < 1) this.complexity = 1;
if (complexity > 3) this.complexity = 3;
}
public ResearchItem(String key, String category, AspectList tags, int col, int row, int complex, ItemStack icon)
{
this.key = key;
this.category = category;
this.tags = tags;
this.icon_item = icon;
this.icon_resource = null;
this.displayColumn = col;
this.displayRow = row;
this.complexity = complex;
if (complexity < 1) this.complexity = 1;
if (complexity > 3) this.complexity = 3;
}
public ResearchItem setSpecial()
{
this.isSpecial = true;
return this;
}
public ResearchItem setStub()
{
this.isStub = true;
return this;
}
public ResearchItem setLost()
{
this.isLost = true;
return this;
}
public ResearchItem setConcealed()
{
this.isConcealed = true;
return this;
}
public ResearchItem setHidden()
{
this.isHidden = true;
return this;
}
public ResearchItem setVirtual()
{
this.isVirtual = true;
return this;
}
public ResearchItem setParents(String... par)
{
this.parents = par;
return this;
}
public ResearchItem setParentsHidden(String... par)
{
this.parentsHidden = par;
return this;
}
public ResearchItem setSiblings(String... sib)
{
this.siblings = sib;
return this;
}
public ResearchItem setPages(ResearchPage... par)
{
this.pages = par;
return this;
}
public ResearchPage[] getPages() {
return pages;
}
public ResearchItem setItemTriggers(ItemStack... par)
{
this.itemTriggers = par;
return this;
}
public ResearchItem setEntityTriggers(String... par)
{
this.entityTriggers = par;
return this;
}
public ResearchItem setAspectTriggers(Aspect... par)
{
this.aspectTriggers = par;
return this;
}
public ItemStack[] getItemTriggers() {
return itemTriggers;
}
public String[] getEntityTriggers() {
return entityTriggers;
}
public Aspect[] getAspectTriggers() {
return aspectTriggers;
}
public ResearchItem registerResearchItem()
{
ResearchCategories.addResearch(this);
return this;
}
public String getName()
{
return StatCollector.translateToLocal("tc.research_name."+key);
}
public String getText()
{
return StatCollector.translateToLocal("tc.research_text."+key);
}
public boolean isSpecial()
{
return this.isSpecial;
}
public boolean isStub()
{
return this.isStub;
}
public boolean isLost()
{
return this.isLost;
}
public boolean isConcealed()
{
return this.isConcealed;
}
public boolean isHidden()
{
return this.isHidden;
}
public boolean isVirtual()
{
return this.isVirtual;
}
public boolean isAutoUnlock() {
return isAutoUnlock;
}
public ResearchItem setAutoUnlock()
{
this.isAutoUnlock = true;
return this;
}
public boolean isRound() {
return isRound;
}
public ResearchItem setRound() {
this.isRound = true;
return this;
}
public boolean isSecondary() {
return isSecondary;
}
public ResearchItem setSecondary() {
this.isSecondary = true;
return this;
}
public int getComplexity() {
return complexity;
}
public ResearchItem setComplexity(int complexity) {
this.complexity = complexity;
return this;
}
/**
* @return the aspect aspects ordinal with the highest value. Used to determine scroll color and similar things
*/
public Aspect getResearchPrimaryTag() {
Aspect aspect=null;
int highest=0;
if (tags!=null)
for (Aspect tag:tags.getAspects()) {
if (tags.getAmount(tag)>highest) {
aspect=tag;
highest=tags.getAmount(tag);
};
}
return aspect;
}
}
@@ -1,193 +0,0 @@
package thaumcraft.api.research;
import java.util.List;
import net.minecraft.item.ItemStack;
import net.minecraft.item.crafting.FurnaceRecipes;
import net.minecraft.item.crafting.IRecipe;
import net.minecraft.util.ResourceLocation;
import net.minecraft.util.StatCollector;
import thaumcraft.api.aspects.AspectList;
import thaumcraft.api.crafting.CrucibleRecipe;
import thaumcraft.api.crafting.IArcaneRecipe;
import thaumcraft.api.crafting.InfusionEnchantmentRecipe;
import thaumcraft.api.crafting.InfusionRecipe;
public class ResearchPage {
public static enum PageType
{
TEXT,
TEXT_CONCEALED,
IMAGE,
CRUCIBLE_CRAFTING,
ARCANE_CRAFTING,
ASPECTS,
NORMAL_CRAFTING,
INFUSION_CRAFTING,
COMPOUND_CRAFTING,
INFUSION_ENCHANTMENT,
SMELTING
}
public PageType type = PageType.TEXT;
public String text=null;
public String research=null;
public ResourceLocation image=null;
public AspectList aspects=null;
public Object recipe=null;
public ItemStack recipeOutput=null;
/**
* @param text this can (but does not have to) be a reference to a localization variable, not the actual text.
*/
public ResearchPage(String text) {
this.type = PageType.TEXT;
this.text = text;
}
/**
* @param research this page will only be displayed if the player has discovered this research
* @param text this can (but does not have to) be a reference to a localization variable, not the actual text.
*/
public ResearchPage(String research, String text) {
this.type = PageType.TEXT_CONCEALED;
this.research = research;
this.text = text;
}
/**
* @param recipe a vanilla crafting recipe.
*/
public ResearchPage(IRecipe recipe) {
this.type = PageType.NORMAL_CRAFTING;
this.recipe = recipe;
this.recipeOutput = recipe.getRecipeOutput();
}
/**
* @param recipe a collection of vanilla crafting recipes.
*/
public ResearchPage(IRecipe[] recipe) {
this.type = PageType.NORMAL_CRAFTING;
this.recipe = recipe;
}
/**
* @param recipe a collection of arcane crafting recipes.
*/
public ResearchPage(IArcaneRecipe[] recipe) {
this.type = PageType.ARCANE_CRAFTING;
this.recipe = recipe;
}
/**
* @param recipe a collection of arcane crafting recipes.
*/
public ResearchPage(CrucibleRecipe[] recipe) {
this.type = PageType.CRUCIBLE_CRAFTING;
this.recipe = recipe;
}
/**
* @param recipe a collection of infusion crafting recipes.
*/
public ResearchPage(InfusionRecipe[] recipe) {
this.type = PageType.INFUSION_CRAFTING;
this.recipe = recipe;
}
/**
* @param recipe a compound crafting recipe.
*/
public ResearchPage(List recipe) {
this.type = PageType.COMPOUND_CRAFTING;
this.recipe = recipe;
}
/**
* @param recipe an arcane worktable crafting recipe.
*/
public ResearchPage(IArcaneRecipe recipe) {
this.type = PageType.ARCANE_CRAFTING;
this.recipe = recipe;
this.recipeOutput = recipe.getRecipeOutput();
}
/**
* @param recipe an alchemy crafting recipe.
*/
public ResearchPage(CrucibleRecipe recipe) {
this.type = PageType.CRUCIBLE_CRAFTING;
this.recipe = recipe;
this.recipeOutput = recipe.getRecipeOutput();
}
/**
* @param recipe a furnace smelting crafting recipe.
*/
public ResearchPage(ItemStack input) {
this.type = PageType.SMELTING;
this.recipe = input;
this.recipeOutput = FurnaceRecipes.smelting().getSmeltingResult(input);
}
/**
* @param recipe an infusion crafting recipe.
*/
public ResearchPage(InfusionRecipe recipe) {
this.type = PageType.INFUSION_CRAFTING;
this.recipe = recipe;
if (recipe.getRecipeOutput() instanceof ItemStack) {
this.recipeOutput = (ItemStack) recipe.getRecipeOutput();
} else {
this.recipeOutput = recipe.getRecipeInput();
}
}
/**
* @param recipe an infusion crafting recipe.
*/
public ResearchPage(InfusionEnchantmentRecipe recipe) {
this.type = PageType.INFUSION_ENCHANTMENT;
this.recipe = recipe;
// if (recipe.recipeOutput instanceof ItemStack) {
// this.recipeOutput = (ItemStack) recipe.recipeOutput;
// } else {
// this.recipeOutput = recipe.recipeInput;
// }
}
/**
* @param image
* @param caption this can (but does not have to) be a reference to a localization variable, not the actual text.
*/
public ResearchPage(ResourceLocation image, String caption) {
this.type = PageType.IMAGE;
this.image = image;
this.text = caption;
}
/**
* This function should really not be called directly - used internally
*/
public ResearchPage(AspectList as) {
this.type = PageType.ASPECTS;
this.aspects = as;
}
/**
* returns a localized text of the text field (if one exists). Returns the text field itself otherwise.
* @return
*/
public String getTranslatedText() {
String ret="";
if (text != null) {
ret = StatCollector.translateToLocal(text);
if (ret.isEmpty()) ret = text;
}
return ret;
}
}
@@ -1,39 +0,0 @@
package thaumcraft.api.research;
import net.minecraft.entity.Entity;
public class ScanResult {
public byte type = 0; //1=blocks,2=entities,3=phenomena
public int id;
public int meta;
public Entity entity;
public String phenomena;
public ScanResult(byte type, int blockId, int blockMeta, Entity entity,
String phenomena) {
super();
this.type = type;
this.id = blockId;
this.meta = blockMeta;
this.entity = entity;
this.phenomena = phenomena;
}
@Override
public boolean equals(Object obj) {
if (obj instanceof ScanResult) {
ScanResult sr = (ScanResult) obj;
if (type != sr.type)
return false;
if (type == 1
&& (id != sr.id || meta != sr.meta))
return false;
if (type == 2 && entity.getEntityId() != sr.entity.getEntityId())
return false;
if (type == 3 && !phenomena.equals(sr.phenomena))
return false;
}
return true;
}
}
@@ -1,188 +0,0 @@
package thaumcraft.api.visnet;
import java.lang.ref.WeakReference;
import java.util.ArrayList;
import java.util.HashMap;
import thaumcraft.api.TileThaumcraft;
import thaumcraft.api.WorldCoordinates;
import thaumcraft.api.aspects.Aspect;
/**
* @author Azanor
*
* The tile entity used by nodes in the vis energy network. A node is either a source (like an aura node),
* a transport relay or vis receiver (like the infernal furnace).
*
*/
public abstract class TileVisNode extends TileThaumcraft {
WeakReference<TileVisNode> parent = null;
ArrayList<WeakReference<TileVisNode>> children = new ArrayList<WeakReference<TileVisNode>>();
/**
* @return the WorldCoordinates location of where this node is located
*/
public WorldCoordinates getLocation() {
return new WorldCoordinates(this);
}
/**
* @return the number of blocks away this node will check for parent nodes to connect to.
*/
public abstract int getRange();
/**
* @return true if this is the source or root node of the vis network.
*/
public abstract boolean isSource();
/**
* This method should never be called directly. Use VisNetHandler.drainVis() instead
* @param aspect what aspect to drain
* @param vis how much to drain
* @return how much was actually drained
*/
public int consumeVis(Aspect aspect, int vis) {
if (VisNetHandler.isNodeValid(getParent())) {
int out = getParent().get().consumeVis(aspect, vis);
if (out>0) {
triggerConsumeEffect(aspect);
}
return out;
}
return 0;
}
public void removeThisNode() {
for (WeakReference<TileVisNode> n:getChildren()) {
if (n!=null && n.get()!=null) {
n.get().removeThisNode();
}
}
children = new ArrayList<WeakReference<TileVisNode>>();
if (VisNetHandler.isNodeValid(this.getParent())) {
this.getParent().get().nodeRefresh=true;
}
this.setParent(null);
this.parentChanged();
if (this.isSource()) {
HashMap<WorldCoordinates, WeakReference<TileVisNode>> sourcelist = VisNetHandler.sources.get(worldObj.provider.dimensionId);
if (sourcelist==null) {
sourcelist = new HashMap<WorldCoordinates, WeakReference<TileVisNode>>();
}
sourcelist.remove(getLocation());
VisNetHandler.sources.put( worldObj.provider.dimensionId, sourcelist );
}
worldObj.markBlockForUpdate(xCoord, yCoord, zCoord);
}
@Override
public void invalidate() {
removeThisNode();
super.invalidate();
}
public void triggerConsumeEffect(Aspect aspect) { }
/**
* @return
*/
public WeakReference<TileVisNode> getParent() {
return parent;
}
/**
* @return
*/
public WeakReference<TileVisNode> getRootSource() {
return VisNetHandler.isNodeValid(getParent()) ?
getParent().get().getRootSource() : this.isSource() ?
new WeakReference(this) : null;
}
/**
* @param parent
*/
public void setParent(WeakReference<TileVisNode> parent) {
this.parent = parent;
}
/**
* @return
*/
public ArrayList<WeakReference<TileVisNode>> getChildren() {
return children;
}
@Override
public boolean canUpdate() {
return true;
}
protected int nodeCounter = 0;
private boolean nodeRegged = false;
public boolean nodeRefresh = false;
@Override
public void updateEntity() {
if (!worldObj.isRemote && ((nodeCounter++) % 40==0 || nodeRefresh)) {
//check for changes
if (!nodeRefresh && children.size()>0) {
for (WeakReference<TileVisNode> n:children) {
if (n==null || n.get()==null || !VisNetHandler.canNodeBeSeen(this, n.get())) {
nodeRefresh=true;
break;
}
}
}
//refresh linked nodes
if (nodeRefresh) {
for (WeakReference<TileVisNode> n:children) {
if (n.get()!=null) {
n.get().nodeRefresh=true;
}
}
children.clear();
parent=null;
}
//redo stuff
if (isSource() && !nodeRegged) {
VisNetHandler.addSource(getWorldObj(), this);
nodeRegged = true;
} else
if (!isSource() && !VisNetHandler.isNodeValid(getParent())) {
setParent(VisNetHandler.addNode(getWorldObj(), this));
nodeRefresh=true;
}
if (nodeRefresh) {
worldObj.markBlockForUpdate(xCoord, yCoord, zCoord);
parentChanged();
}
nodeRefresh=false;
}
}
public void parentChanged() { }
/**
* @return the type of shard this is attuned to:
* none -1, air 0, fire 1, water 2, earth 3, order 4, entropy 5
* Should return -1 for most implementations
*/
public byte getAttunement() {
return -1;
}
}
@@ -1,282 +0,0 @@
package thaumcraft.api.visnet;
import java.lang.ref.WeakReference;
import java.util.ArrayList;
import java.util.HashMap;
import net.minecraft.util.MovingObjectPosition;
import net.minecraft.util.MovingObjectPosition.MovingObjectType;
import net.minecraft.util.Vec3;
import net.minecraft.world.World;
import thaumcraft.api.ThaumcraftApi;
import thaumcraft.api.ThaumcraftApiHelper;
import thaumcraft.api.WorldCoordinates;
import thaumcraft.api.aspects.Aspect;
public class VisNetHandler {
// NODE DRAINING
/**
* This method drains vis from a relay or source near the passed in
* location. The amount received can be less than the amount requested so
* take that into account.
*
* @param world
* @param x the x position of the draining block or entity
* @param y the y position of the draining block or entity
* @param z the z position of the draining block or entity
* @param aspect what aspect to drain
* @param amount how much to drain
* @return how much was actually drained
*/
public static int drainVis(World world, int x, int y, int z, Aspect aspect, int amount) {
int drainedAmount = 0;
WorldCoordinates drainer = new WorldCoordinates(x, y, z,
world.provider.dimensionId);
if (!nearbyNodes.containsKey(drainer)) {
calculateNearbyNodes(world, x, y, z);
}
ArrayList<WeakReference<TileVisNode>> nodes = nearbyNodes.get(drainer);
if (nodes!=null && nodes.size()>0)
for (WeakReference<TileVisNode> noderef : nodes) {
TileVisNode node = noderef.get();
if (node == null) continue;
int a = node.consumeVis(aspect, amount);
drainedAmount += a;
amount -= a;
if (a>0) {
int color = Aspect.getPrimalAspects().indexOf(aspect);
generateVisEffect(world.provider.dimensionId, x, y, z, node.xCoord, node.yCoord, node.zCoord, color);
}
if (amount <= 0) {
break;
}
}
return drainedAmount;
}
public static void generateVisEffect(int dim, int x, int y, int z, int x2, int y2, int z2, int color) {
ThaumcraftApi.internalMethods.generateVisEffect(dim, x, y, z, x2, y2, z2, color);
}
public static HashMap<Integer, HashMap<WorldCoordinates, WeakReference<TileVisNode>>> sources = new HashMap<Integer, HashMap<WorldCoordinates, WeakReference<TileVisNode>>>();
public static void addSource(World world, TileVisNode vs) {
HashMap<WorldCoordinates, WeakReference<TileVisNode>> sourcelist = sources
.get(world.provider.dimensionId);
if (sourcelist == null) {
sourcelist = new HashMap<WorldCoordinates, WeakReference<TileVisNode>>();
}
sourcelist.put(vs.getLocation(), new WeakReference(vs));
sources.put(world.provider.dimensionId, sourcelist);
nearbyNodes.clear();
}
public static boolean isNodeValid(WeakReference<TileVisNode> node) {
if (node == null || node.get() == null || node.get().isInvalid())
return false;
return true;
}
public static WeakReference<TileVisNode> addNode(World world, TileVisNode vn) {
WeakReference ref = new WeakReference(vn);
HashMap<WorldCoordinates, WeakReference<TileVisNode>> sourcelist = sources
.get(world.provider.dimensionId);
if (sourcelist == null) {
sourcelist = new HashMap<WorldCoordinates, WeakReference<TileVisNode>>();
return null;
}
ArrayList<Object[]> nearby = new ArrayList<Object[]>();
for (WeakReference<TileVisNode> root : sourcelist.values()) {
if (!isNodeValid(root))
continue;
TileVisNode source = root.get();
float r = inRange(world, vn.getLocation(), source.getLocation(),
vn.getRange());
if (r > 0) {
nearby.add(new Object[] { source, r - vn.getRange() * 2 });
}
nearby = findClosestNodes(vn, source, nearby);
cache.clear();
}
float dist = Float.MAX_VALUE;
TileVisNode closest = null;
if (nearby.size() > 0) {
for (Object[] o : nearby) {
if ((Float) o[1] < dist &&
(vn.getAttunement() == -1 || ((TileVisNode) o[0]).getAttunement() == -1 ||
vn.getAttunement() == ((TileVisNode) o[0]).getAttunement())//) {
&& canNodeBeSeen(vn,(TileVisNode)o[0])) {
dist = (Float) o[1];
closest = (TileVisNode) o[0];
}
}
}
if (closest != null) {
closest.getChildren().add(ref);
nearbyNodes.clear();
return new WeakReference(closest);
}
return null;
}
static ArrayList<WorldCoordinates> cache = new ArrayList<WorldCoordinates>();
public static ArrayList<Object[]> findClosestNodes(TileVisNode target,
TileVisNode parent, ArrayList<Object[]> in) {
if (cache.size() > 512 || cache.contains(new WorldCoordinates(parent))) return in;
cache.add(new WorldCoordinates(parent));
for (WeakReference<TileVisNode> childWR : parent.getChildren()) {
TileVisNode child = childWR.get();
if (child != null && !child.equals(target) && !child.equals(parent)) {
float r2 = inRange(child.getWorldObj(), child.getLocation(),
target.getLocation(), target.getRange());
if (r2 > 0) {
in.add(new Object[] { child, r2 });
}
in = findClosestNodes(target, child, in);
}
}
return in;
}
private static float inRange(World world, WorldCoordinates cc1,
WorldCoordinates cc2, int range) {
float distance = cc1.getDistanceSquaredToWorldCoordinates(cc2);
return distance > range * range ? -1 : distance;
}
private static HashMap<WorldCoordinates, ArrayList<WeakReference<TileVisNode>>> nearbyNodes = new HashMap<WorldCoordinates, ArrayList<WeakReference<TileVisNode>>>();
private static void calculateNearbyNodes(World world, int x, int y, int z) {
HashMap<WorldCoordinates, WeakReference<TileVisNode>> sourcelist = sources
.get(world.provider.dimensionId);
if (sourcelist == null) {
sourcelist = new HashMap<WorldCoordinates, WeakReference<TileVisNode>>();
return;
}
ArrayList<WeakReference<TileVisNode>> cn = new ArrayList<WeakReference<TileVisNode>>();
WorldCoordinates drainer = new WorldCoordinates(x, y, z,
world.provider.dimensionId);
ArrayList<Object[]> nearby = new ArrayList<Object[]>();
for (WeakReference<TileVisNode> root : sourcelist.values()) {
if (!isNodeValid(root))
continue;
TileVisNode source = root.get();
TileVisNode closest = null;
float range = Float.MAX_VALUE;
float r = inRange(world, drainer, source.getLocation(),
source.getRange());
if (r > 0) {
range = r;
closest = source;
}
ArrayList<WeakReference<TileVisNode>> children = new ArrayList<WeakReference<TileVisNode>>();
children = getAllChildren(source,children);
for (WeakReference<TileVisNode> child : children) {
TileVisNode n = child.get();
if (n != null && !n.equals(root)) {
float r2 = inRange(n.getWorldObj(), n.getLocation(),
drainer, n.getRange());
if (r2 > 0 && r2 < range) {
range = r2;
closest = n;
}
}
}
if (closest != null) {
cn.add(new WeakReference(closest));
}
}
nearbyNodes.put(drainer, cn);
}
private static ArrayList<WeakReference<TileVisNode>> getAllChildren(TileVisNode source, ArrayList<WeakReference<TileVisNode>> list) {
for (WeakReference<TileVisNode> child : source.getChildren()) {
TileVisNode n = child.get();
if (n != null && n.getWorldObj()!=null && isChunkLoaded(n.getWorldObj(), n.xCoord, n.zCoord)) {
list.add(child);
list = getAllChildren(n,list);
}
}
return list;
}
public static boolean isChunkLoaded(World world, int x, int z) {
int xx = x >> 4;
int zz = z >> 4;
return world.getChunkProvider().chunkExists(xx, zz);
}
public static boolean canNodeBeSeen(TileVisNode source,TileVisNode target)
{
MovingObjectPosition mop = ThaumcraftApiHelper.rayTraceIgnoringSource(source.getWorldObj(),
Vec3.createVectorHelper(source.xCoord+.5, source.yCoord+.5,source.zCoord+.5),
Vec3.createVectorHelper(target.xCoord+.5, target.yCoord+.5,target.zCoord+.5),
false, true, false);
return mop == null || (mop.typeOfHit==MovingObjectType.BLOCK &&
mop.blockX==target.xCoord && mop.blockY==target.yCoord && mop.blockZ==target.zCoord);
}
// public static HashMap<WorldCoordinates,WeakReference<TileVisNode>>
// noderef = new HashMap<WorldCoordinates,WeakReference<TileVisNode>>();
//
// public static TileVisNode getClosestNodeWithinRadius(World world, int x,
// int y, int z, int radius) {
// TileVisNode out = null;
// WorldCoordinates wc = null;
// float cd = Float.MAX_VALUE;
// for (int sx = x - radius; sx <= x + radius; sx++) {
// for (int sy = y - radius; sy <= y + radius; sy++) {
// for (int sz = z - radius; sz <= z + radius; sz++) {
// wc = new WorldCoordinates(sx,sy,sz,world.provider.dimensionId);
// if (noderef.containsKey(wc)) {
// float d = wc.getDistanceSquared(x, y, z);
// if (d<radius*radius && noderef.get(wc).get()!=null &&
// !noderef.get(wc).get().isReceiver() &&
// isNodeValid(noderef.get(wc).get().getParent())
// ) {
// out = noderef.get(wc).get();
// cd = d;
// }
// }
// }
// }
// }
// return out;
// }
}
@@ -1,114 +0,0 @@
package thaumcraft.api.wands;
import net.minecraft.util.ResourceLocation;
import net.minecraft.util.StatCollector;
import org.apache.logging.log4j.LogManager;
import thaumcraft.api.aspects.Aspect;
import thaumcraft.api.aspects.AspectList;
public class FocusUpgradeType {
public static FocusUpgradeType[] types = new FocusUpgradeType[20];
public short id;
public ResourceLocation icon;
public String name;
public String text;
/**
* What aspects are used to calculate the cost of this upgrade. The amounts given is ignored, just the type is used for the calculation.
*/
public AspectList aspects;
public FocusUpgradeType(int id, ResourceLocation icon, String name, String text, AspectList aspects) {
this.id = (short) id;
this.icon = icon;
this.name = name;
this.text = text;
this.aspects = aspects;
if (id<types.length && types[id]!=null) {
LogManager.getLogger("THAUMCRAFT").fatal("Focus Upgrade id "+id+" already occupied. Ignoring.");
return;
}
// allocate space
if (id>=types.length) {
FocusUpgradeType[] temp = new FocusUpgradeType[id+1];
System.arraycopy(types, 0, temp, 0, types.length);
types = temp;
}
types[id] = this;
}
public String getLocalizedName() {
return StatCollector.translateToLocal(name);
}
public String getLocalizedText() {
return StatCollector.translateToLocal(text);
}
@Override
public boolean equals(Object obj) {
if (obj instanceof FocusUpgradeType) {
return this.id == ((FocusUpgradeType)obj).id;
} else return false;
}
// basic upgrade types
public static FocusUpgradeType potency = new FocusUpgradeType( 0,
new ResourceLocation("thaumcraft", "textures/foci/potency.png"),
"focus.upgrade.potency.name","focus.upgrade.potency.text",
new AspectList().add(Aspect.WEAPON,1));
public static FocusUpgradeType frugal = new FocusUpgradeType( 1,
new ResourceLocation("thaumcraft", "textures/foci/frugal.png"),
"focus.upgrade.frugal.name","focus.upgrade.frugal.text",
new AspectList().add(Aspect.HUNGER,1));
public static FocusUpgradeType treasure = new FocusUpgradeType( 2,
new ResourceLocation("thaumcraft", "textures/foci/treasure.png"),
"focus.upgrade.treasure.name","focus.upgrade.treasure.text",
new AspectList().add(Aspect.GREED,1));
public static FocusUpgradeType enlarge = new FocusUpgradeType( 3,
new ResourceLocation("thaumcraft", "textures/foci/enlarge.png"),
"focus.upgrade.enlarge.name","focus.upgrade.enlarge.text",
new AspectList().add(Aspect.TRAVEL,1));
public static FocusUpgradeType alchemistsfire = new FocusUpgradeType( 4,
new ResourceLocation("thaumcraft", "textures/foci/alchemistsfire.png"),
"focus.upgrade.alchemistsfire.name","focus.upgrade.alchemistsfire.text",
new AspectList().add(Aspect.ENERGY,1).add(Aspect.SLIME,1));
public static FocusUpgradeType alchemistsfrost = new FocusUpgradeType( 5,
new ResourceLocation("thaumcraft", "textures/foci/alchemistsfrost.png"),
"focus.upgrade.alchemistsfrost.name","focus.upgrade.alchemistsfrost.text",
new AspectList().add(Aspect.COLD,1).add(Aspect.TRAP,1));
public static FocusUpgradeType architect = new FocusUpgradeType( 6,
new ResourceLocation("thaumcraft", "textures/foci/architect.png"),
"focus.upgrade.architect.name","focus.upgrade.architect.text",
new AspectList().add(Aspect.CRAFT,1));
public static FocusUpgradeType extend = new FocusUpgradeType( 7,
new ResourceLocation("thaumcraft", "textures/foci/extend.png"),
"focus.upgrade.extend.name","focus.upgrade.extend.text",
new AspectList().add(Aspect.EXCHANGE,1));
public static FocusUpgradeType silktouch = new FocusUpgradeType( 8,
new ResourceLocation("thaumcraft", "textures/foci/silktouch.png"),
"focus.upgrade.silktouch.name","focus.upgrade.silktouch.text",
new AspectList().add(Aspect.GREED,1));
}
@@ -1,16 +0,0 @@
package thaumcraft.api.wands;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.item.ItemStack;
/**
*
* @author azanor
*
* Implemented by a class that you wish to be called whenever a wand with this rod performs its
* update tick.
*
*/
public interface IWandRodOnUpdate {
void onUpdate(ItemStack itemstack, EntityPlayer player);
}
@@ -1,15 +0,0 @@
package thaumcraft.api.wands;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.item.ItemStack;
import net.minecraft.world.World;
public interface IWandTriggerManager {
/**
* This class will be called by wands with the proper parameters. It is up to you to decide what to do with them.
*/
public boolean performTrigger(World world, ItemStack wand, EntityPlayer player,
int x, int y, int z, int side, int event);
}
@@ -1,25 +0,0 @@
package thaumcraft.api.wands;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.item.ItemStack;
import net.minecraft.world.World;
/**
*
* @author azanor
*
* Add this to a tile entity that you wish wands to interact with in some way.
*
*/
public interface IWandable {
public int onWandRightClick(World world, ItemStack wandstack, EntityPlayer player, int x, int y, int z, int side, int md);
public ItemStack onWandRightClick(World world, ItemStack wandstack, EntityPlayer player);
public void onUsingWandTick(ItemStack wandstack, EntityPlayer player, int count);
public void onWandStoppedUsing(ItemStack wandstack, World world, EntityPlayer player, int count);
}
@@ -1,276 +0,0 @@
package thaumcraft.api.wands;
import java.text.DecimalFormat;
import java.util.LinkedHashMap;
import java.util.List;
import net.minecraft.entity.Entity;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.item.EnumRarity;
import net.minecraft.item.Item;
import net.minecraft.item.ItemStack;
import net.minecraft.nbt.NBTTagCompound;
import net.minecraft.nbt.NBTTagList;
import net.minecraft.util.EnumChatFormatting;
import net.minecraft.util.IIcon;
import net.minecraft.util.MovingObjectPosition;
import net.minecraft.util.StatCollector;
import net.minecraft.world.World;
import thaumcraft.api.aspects.Aspect;
import thaumcraft.api.aspects.AspectList;
import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;
public class ItemFocusBasic extends Item {
public ItemFocusBasic ()
{
super();
maxStackSize = 1;
canRepair=false;
this.setMaxDamage(0);
}
public IIcon icon;
@SideOnly(Side.CLIENT)
@Override
public IIcon getIconFromDamage(int par1) {
return icon;
}
@Override
public boolean isDamageable() {
return false;
}
@Override
public void addInformation(ItemStack stack,EntityPlayer player, List list, boolean par4) {
AspectList al = this.getVisCost(stack);
if (al!=null && al.size()>0) {
list.add(StatCollector.translateToLocal(isVisCostPerTick(stack)?"item.Focus.cost2":"item.Focus.cost1"));
for (Aspect aspect:al.getAspectsSorted()) {
DecimalFormat myFormatter = new DecimalFormat("#####.##");
String amount = myFormatter.format(al.getAmount(aspect)/100f);
list.add(" \u00A7"+aspect.getChatcolor()+aspect.getName()+"\u00A7r x "+ amount);
}
}
addFocusInformation(stack,player,list,par4);
}
public void addFocusInformation(ItemStack focusstack,EntityPlayer player, List list, boolean par4) {
LinkedHashMap<Short, Integer> map = new LinkedHashMap<Short, Integer>();
for (short id:this.getAppliedUpgrades(focusstack)) {
if (id>=0) {
int amt = 1;
if (map.containsKey(id)) {
amt = map.get(id) + 1;
}
map.put(id, amt);
}
}
for (Short id:map.keySet()) {
list.add(EnumChatFormatting.DARK_PURPLE +FocusUpgradeType.types[id].getLocalizedName()+
(map.get(id)>1?" "+StatCollector.translateToLocal("enchantment.level." + map.get(id)):""));
}
}
/**
* Purely for display on the focus tooltip (see addInformation method above)
*/
public boolean isVisCostPerTick(ItemStack focusstack) {
return false;
}
@Override
public EnumRarity getRarity(ItemStack focusstack)
{
return EnumRarity.rare;
}
/**
* What color will the focus orb be rendered on the held wand
*/
public int getFocusColor(ItemStack focusstack) {
return 0;
}
/**
* Does the focus have ornamentation like the focus of the nine hells. Ornamentation is a standard icon rendered in a cross around the focus
*/
public IIcon getOrnament(ItemStack focusstack) {
// TODO Auto-generated method stub
return null;
}
/**
* An icon to be rendered inside the focus itself
*/
public IIcon getFocusDepthLayerIcon(ItemStack focusstack) {
// TODO Auto-generated method stub
return null;
}
public enum WandFocusAnimation {
WAVE, CHARGE;
}
public WandFocusAnimation getAnimation(ItemStack focusstack) {
return WandFocusAnimation.WAVE;
}
/**
* Just insert two alphanumeric characters before this string in your focus item class
*/
public String getSortingHelper(ItemStack focusstack) {
String out="";
for (short id:this.getAppliedUpgrades(focusstack)) {
out = out + id;
}
return out;
}
/**
* How much vis does this focus consume per activation.
*/
public AspectList getVisCost(ItemStack focusstack) {
return null;
}
/**
* This returns how many milliseconds must pass before the focus can be activated again.
*/
public int getActivationCooldown(ItemStack focusstack) {
return 0;
}
/**
* Used by foci like equal trade to determine their area in artchitect mode
*/
public int getMaxAreaSize(ItemStack focusstack) {
return 1;
}
/**
* What upgrades can be applied to this focus for ranks 1 to 5
*/
public FocusUpgradeType[] getPossibleUpgradesByRank(ItemStack focusstack, int rank) {
return null;
}
/**
* What upgrades does the focus currently have
*/
public short[] getAppliedUpgrades(ItemStack focusstack) {
short[] l = new short[] {-1,-1,-1,-1,-1};
NBTTagList nbttaglist = getFocusUpgradeTagList(focusstack);
if (nbttaglist == null)
{
return l;
}
else
{
for (int j = 0; j < nbttaglist.tagCount(); ++j)
{
if (j>=5) break;
l[j] = nbttaglist.getCompoundTagAt(j).getShort("id");
}
return l;
}
}
public boolean applyUpgrade(ItemStack focusstack, FocusUpgradeType type, int rank) {
short[] upgrades = getAppliedUpgrades(focusstack);
if (upgrades[rank-1]!=-1 || rank<1 || rank>5) {
return false;
}
upgrades[rank-1] = type.id;
setFocusUpgradeTagList(focusstack, upgrades);
return true;
}
/**
* Use this method to define custom logic about which upgrades can be applied. This can be used to set up upgrade "trees"
* that make certain upgrades available only when others are unlocked first, when certain research is completed, or similar logic.
*
*/
public boolean canApplyUpgrade(ItemStack focusstack, EntityPlayer player, FocusUpgradeType type, int rank) {
return true;
}
/**
* Does this focus have the passed upgrade type
*/
public boolean isUpgradedWith(ItemStack focusstack, FocusUpgradeType focusUpgradetype) {
return getUpgradeLevel(focusstack,focusUpgradetype)>0;
}
/**
* What level is the passed upgrade type on the focus. If it is not present it returns 0
*/
public int getUpgradeLevel(ItemStack focusstack, FocusUpgradeType focusUpgradetype) {
short[] list = getAppliedUpgrades(focusstack);
int level=0;
for (short id:list) {
if (id == focusUpgradetype.id)
{
level++;
}
}
return level;
}
public ItemStack onFocusRightClick(ItemStack wandstack, World world,EntityPlayer player, MovingObjectPosition movingobjectposition) {
// TODO Auto-generated method stub
return null;
}
public void onUsingFocusTick(ItemStack wandstack, EntityPlayer player,int count) {
// TODO Auto-generated method stub
}
public void onPlayerStoppedUsingFocus(ItemStack wandstack, World world, EntityPlayer player, int count) {
// TODO Auto-generated method stub
}
public boolean onFocusBlockStartBreak(ItemStack wandstack, int x, int y,int z, EntityPlayer player) {
// TODO Auto-generated method stub
return false;
}
/**
* Internal helper methods
*/
private NBTTagList getFocusUpgradeTagList(ItemStack focusstack)
{
return focusstack.stackTagCompound == null ? null : focusstack.stackTagCompound.getTagList("upgrade", 10);
}
private void setFocusUpgradeTagList(ItemStack focusstack, short[] upgrades) {
if (!focusstack.hasTagCompound())
focusstack.setTagCompound(new NBTTagCompound());
NBTTagCompound nbttagcompound = focusstack.getTagCompound();
NBTTagList tlist = new NBTTagList();
nbttagcompound.setTag("upgrade", tlist);
for (short id : upgrades) {
NBTTagCompound f = new NBTTagCompound();
f.setShort("id", id);
tlist.appendTag(f);
}
}
@Override
public void onUpdate(ItemStack stack, World world, Entity entity, int p_77663_4_, boolean p_77663_5_) {
if (stack.stackTagCompound !=null && stack.stackTagCompound.hasKey("ench")) {
stack.stackTagCompound.removeTag("ench");
}
super.onUpdate(stack, world, entity, p_77663_4_, p_77663_5_);
}
}
@@ -1,48 +0,0 @@
package thaumcraft.api.wands;
import net.minecraft.item.ItemStack;
import net.minecraft.util.ResourceLocation;
/**
*
* @author Azanor
*
* This class is used to keep the material information for the various rods.
* It is also used to generate the wand recipes ingame.
*
*/
public class StaffRod extends WandRod {
boolean runes=false;
public StaffRod(String tag, int capacity, ItemStack item, int craftCost) {
super(tag+"_staff", capacity, item, craftCost);
this.texture = new ResourceLocation("thaumcraft","textures/models/wand_rod_"+tag+".png");
}
public StaffRod(String tag, int capacity, ItemStack item, int craftCost,
IWandRodOnUpdate onUpdate, ResourceLocation texture) {
super(tag+"_staff", capacity, item, craftCost, onUpdate, texture);
}
public StaffRod(String tag, int capacity, ItemStack item, int craftCost,
IWandRodOnUpdate onUpdate) {
super(tag+"_staff", capacity, item, craftCost, onUpdate);
this.texture = new ResourceLocation("thaumcraft","textures/models/wand_rod_"+tag+".png");
}
public StaffRod(String tag, int capacity, ItemStack item, int craftCost,
ResourceLocation texture) {
super(tag+"_staff", capacity, item, craftCost, texture);
}
public boolean hasRunes() {
return runes;
}
public void setRunes(boolean hasRunes) {
this.runes = hasRunes;
}
}
@@ -1,129 +0,0 @@
package thaumcraft.api.wands;
import java.util.LinkedHashMap;
import java.util.List;
import net.minecraft.item.ItemStack;
import net.minecraft.util.ResourceLocation;
import thaumcraft.api.aspects.Aspect;
/**
* This class is used to keep the material information for the various caps.
* It is also used to generate the wand recipes ingame.
* @author Azanor
*
*/
public class WandCap {
private String tag;
/**
* Cost to craft this wand. Combined with the rod cost.
*/
private int craftCost;
/**
* the amount by which all aspect costs are multiplied
*/
float baseCostModifier;
/**
* specifies a list of primal aspects that use the special discount figure instead of the normal discount.
*/
List<Aspect> specialCostModifierAspects;
/**
* the amount by which the specified aspect costs are multiplied
*/
float specialCostModifier;
/**
* The texture that will be used for the ingame wand cap
*/
ResourceLocation texture;
/**
* the actual item that makes up this cap and will be used to generate the wand recipes
*/
ItemStack item;
public static LinkedHashMap<String,WandCap> caps = new LinkedHashMap<String,WandCap>();
public WandCap (String tag, float discount, ItemStack item, int craftCost) {
this.setTag(tag);
this.baseCostModifier = discount;
this.specialCostModifierAspects = null;
texture = new ResourceLocation("thaumcraft","textures/models/wand_cap_"+getTag()+".png");
this.item=item;
this.setCraftCost(craftCost);
caps.put(tag, this);
}
public WandCap (String tag, float discount, List<Aspect> specialAspects, float discountSpecial, ItemStack item, int craftCost) {
this.setTag(tag);
this.baseCostModifier = discount;
this.specialCostModifierAspects = specialAspects;
this.specialCostModifier = discountSpecial;
texture = new ResourceLocation("thaumcraft","textures/models/wand_cap_"+getTag()+".png");
this.item=item;
this.setCraftCost(craftCost);
caps.put(tag, this);
}
public float getBaseCostModifier() {
return baseCostModifier;
}
public List<Aspect> getSpecialCostModifierAspects() {
return specialCostModifierAspects;
}
public float getSpecialCostModifier() {
return specialCostModifier;
}
public ResourceLocation getTexture() {
return texture;
}
public void setTexture(ResourceLocation texture) {
this.texture = texture;
}
public String getTag() {
return tag;
}
public void setTag(String tag) {
this.tag = tag;
}
public ItemStack getItem() {
return item;
}
public void setItem(ItemStack item) {
this.item = item;
}
public int getCraftCost() {
return craftCost;
}
public void setCraftCost(int craftCost) {
this.craftCost = craftCost;
}
/**
* The research a player needs to have finished to be able to craft a wand with this cap.
*/
public String getResearch() {
return "CAP_"+getTag();
}
// Some examples:
// WandCap WAND_CAP_IRON = new WandCap("iron", 1.1f, Arrays.asList(Aspect.ORDER),1, new ItemStack(ConfigItems.itemWandCap,1,0),1);
// WandCap WAND_CAP_GOLD = new WandCap("gold", 1f, new ItemStack(ConfigItems.itemWandCap,1,1),3);
}
@@ -1,158 +0,0 @@
package thaumcraft.api.wands;
import java.util.LinkedHashMap;
import net.minecraft.item.ItemStack;
import net.minecraft.util.ResourceLocation;
/**
*
* @author Azanor
*
* This class is used to keep the material information for the various rods.
* It is also used to generate the wand recipes ingame.
*
*/
public class WandRod {
private String tag;
/**
* Cost to craft this wand. Combined with the rod cost.
*/
private int craftCost;
/**
* The amount of vis that can be stored - this number is actually multiplied
* by 100 for use by the wands internals
*/
int capacity;
/**
* The texture that will be used for the ingame wand rod
*/
protected ResourceLocation texture;
/**
* the actual item that makes up this rod and will be used to generate the wand recipes
*/
ItemStack item;
/**
* A class that will be called whenever the wand onUpdate tick is run
*/
IWandRodOnUpdate onUpdate;
/**
* Does the rod glow in the dark?
*/
boolean glow;
public static LinkedHashMap<String,WandRod> rods = new LinkedHashMap<String,WandRod>();
public WandRod (String tag, int capacity, ItemStack item, int craftCost, ResourceLocation texture) {
this.setTag(tag);
this.capacity = capacity;
this.texture = texture;
this.item=item;
this.setCraftCost(craftCost);
rods.put(tag, this);
}
public WandRod (String tag, int capacity, ItemStack item, int craftCost, IWandRodOnUpdate onUpdate, ResourceLocation texture) {
this.setTag(tag);
this.capacity = capacity;
this.texture = texture;
this.item=item;
this.setCraftCost(craftCost);
rods.put(tag, this);
this.onUpdate = onUpdate;
}
public WandRod (String tag, int capacity, ItemStack item, int craftCost) {
this.setTag(tag);
this.capacity = capacity;
this.texture = new ResourceLocation("thaumcraft","textures/models/wand_rod_"+getTag()+".png");
this.item=item;
this.setCraftCost(craftCost);
rods.put(tag, this);
}
public WandRod (String tag, int capacity, ItemStack item, int craftCost, IWandRodOnUpdate onUpdate) {
this.setTag(tag);
this.capacity = capacity;
this.texture = new ResourceLocation("thaumcraft","textures/models/wand_rod_"+getTag()+".png");
this.item=item;
this.setCraftCost(craftCost);
rods.put(tag, this);
this.onUpdate = onUpdate;
}
public String getTag() {
return tag;
}
public void setTag(String tag) {
this.tag = tag;
}
public int getCapacity() {
return capacity;
}
public void setCapacity(int capacity) {
this.capacity = capacity;
}
public ResourceLocation getTexture() {
return texture;
}
public void setTexture(ResourceLocation texture) {
this.texture = texture;
}
public ItemStack getItem() {
return item;
}
public void setItem(ItemStack item) {
this.item = item;
}
public int getCraftCost() {
return craftCost;
}
public void setCraftCost(int craftCost) {
this.craftCost = craftCost;
}
public IWandRodOnUpdate getOnUpdate() {
return onUpdate;
}
public void setOnUpdate(IWandRodOnUpdate onUpdate) {
this.onUpdate = onUpdate;
}
public boolean isGlowing() {
return glow;
}
public void setGlowing(boolean hasGlow) {
this.glow = hasGlow;
}
/**
* The research a player needs to have finished to be able to craft a wand with this rod.
*/
public String getResearch() {
return "ROD_"+getTag();
}
// Some examples:
// WandRod WAND_ROD_WOOD = new WandRod("wood",25,new ItemStack(Item.stick),1);
// WandRod WAND_ROD_BLAZE = new WandRod("blaze",100,new ItemStack(Item.blazeRod),7,new WandRodBlazeOnUpdate());
}
@@ -1,126 +0,0 @@
package thaumcraft.api.wands;
import java.util.Arrays;
import java.util.HashMap;
import java.util.List;
import net.minecraft.block.Block;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.item.ItemStack;
import net.minecraft.world.World;
/**
* This class serves a similar function to IWandable in that it allows wands to interact
* with object in the world. In this case it is most useful for adding interaction with non-mod
* blocks where you can't control what happens in their code.
* Example where it is used is in crafting the thaumonomicon from a bookshelf and the
* crucible from a cauldron
*
* @author azanor
*
*/
public class WandTriggerRegistry {
private static HashMap<String,HashMap<List,List>> triggers = new HashMap<String,HashMap<List,List>>();
private static final String DEFAULT = "default";
/**
* Registers an action to perform when a casting wand right clicks on a specific block.
* A manager class needs to be created that implements IWandTriggerManager.
* @param manager
* @param event a logical number that you can use to differentiate different events or actions
* @param block
* @param meta send -1 as a wildcard value for all possible meta values
* @param modid a unique identifier. It is best to register your own triggers using your mod id to avoid conflicts with mods that register triggers for the same block
*/
public static void registerWandBlockTrigger(IWandTriggerManager manager, int event, Block block, int meta, String modid) {
if (!triggers.containsKey(modid)) {
triggers.put(modid, new HashMap<List,List>());
}
HashMap<List,List> temp = triggers.get(modid);
temp.put(Arrays.asList(block,meta),Arrays.asList(manager,event));
triggers.put(modid, temp);
}
/**
* for legacy support
*/
public static void registerWandBlockTrigger(IWandTriggerManager manager, int event, Block block, int meta) {
registerWandBlockTrigger(manager, event, block, meta, DEFAULT);
}
/**
* Checks all trigger registries if one exists for the given block and meta
* @param block
* @param meta
* @return
*/
public static boolean hasTrigger(Block block, int meta) {
for (String modid:triggers.keySet()) {
HashMap<List,List> temp = triggers.get(modid);
if (temp.containsKey(Arrays.asList(block,meta)) ||
temp.containsKey(Arrays.asList(block,-1))) return true;
}
return false;
}
/**
* modid sensitive version
*/
public static boolean hasTrigger(Block block, int meta, String modid) {
if (!triggers.containsKey(modid)) return false;
HashMap<List,List> temp = triggers.get(modid);
if (temp.containsKey(Arrays.asList(block,meta)) ||
temp.containsKey(Arrays.asList(block,-1))) return true;
return false;
}
/**
* This is called by the onItemUseFirst function in wands.
* Parameters and return value functions like you would expect for that function.
* @param world
* @param wand
* @param player
* @param x
* @param y
* @param z
* @param side
* @param block
* @param meta
* @return
*/
public static boolean performTrigger(World world, ItemStack wand, EntityPlayer player,
int x, int y, int z, int side, Block block, int meta) {
for (String modid:triggers.keySet()) {
HashMap<List,List> temp = triggers.get(modid);
List l = temp.get(Arrays.asList(block,meta));
if (l==null) l = temp.get(Arrays.asList(block,-1));
if (l==null) continue;
IWandTriggerManager manager = (IWandTriggerManager) l.get(0);
int event = (Integer) l.get(1);
boolean result = manager.performTrigger(world, wand, player, x, y, z, side, event);
if (result) return true;
}
return false;
}
/**
* modid sensitive version
*/
public static boolean performTrigger(World world, ItemStack wand, EntityPlayer player,
int x, int y, int z, int side, Block block, int meta, String modid) {
if (!triggers.containsKey(modid)) return false;
HashMap<List,List> temp = triggers.get(modid);
List l = temp.get(Arrays.asList(block,meta));
if (l==null) l = temp.get(Arrays.asList(block,-1));
if (l==null) return false;
IWandTriggerManager manager = (IWandTriggerManager) l.get(0);
int event = (Integer) l.get(1);
return manager.performTrigger(world, wand, player, x, y, z, side, event);
}
}
-13
View File
@@ -1,13 +0,0 @@
# NEI Access Transformer configuration file
public net.minecraft.client.gui.inventory.GuiContainer field_146999_f #xSize
public net.minecraft.client.gui.inventory.GuiContainer field_147000_g #ySize
public net.minecraft.client.gui.inventory.GuiContainer field_147003_i #guiLeft
public net.minecraft.client.gui.inventory.GuiContainer field_147009_r #guiTop
public net.minecraft.client.gui.inventory.GuiContainer field_147007_t #spreading
public net.minecraft.client.gui.inventory.GuiContainer field_147008_s #spreadingSlots
public net.minecraft.client.gui.inventory.GuiContainer func_146975_c(II)Lnet/minecraft/inventory/Slot; #getSlotAtPosition
public net.minecraft.client.gui.GuiScreen field_146292_n #buttonList
public net.minecraft.entity.EntityList field_75624_e #classToIDMapping
public net.minecraft.client.renderer.Tessellator field_78415_z #isDrawing
public net.minecraft.client.multiplayer.PlayerControllerMP field_78779_k #currentGameType
@@ -2,6 +2,6 @@ package com.cricketcraft.chisel.api;
public class ChiselAPIProps {
public static final String VERSION = "0.1.0";
public static String MOD_ID = null; // Set by Chisel
public static final String VERSION = "0.1.1";
public static String MOD_ID = null; // Set by Chisel
}
@@ -0,0 +1,65 @@
package com.cricketcraft.chisel.api;
import net.minecraft.creativetab.CreativeTabs;
import net.minecraft.item.Item;
import net.minecraft.item.ItemStack;
import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;
public class ChiselTabs {
public static class CustomCreativeTab extends CreativeTabs {
private boolean search;
private ItemStack stack;
public CustomCreativeTab(String label, boolean searchbar) {
super(label);
this.search = searchbar;
}
@Override
public Item getTabIconItem() {
return stack.getItem();
}
public void setTabIconItemStack(ItemStack stack) {
this.stack = stack;
}
@Override
public ItemStack getIconItemStack() {
return stack;
}
@Override
@SideOnly(Side.CLIENT)
public String getBackgroundImageName() {
return search ? "item_search.png" : super.getBackgroundImageName();
}
@Override
public int getSearchbarWidth() {
return 89;
}
@Override
public boolean hasSearchBar() {
return search;
}
}
public static final CustomCreativeTab tabChisel = new CustomCreativeTab("tabChisel", false);
public static final CustomCreativeTab tabStoneChiselBlocks = new CustomCreativeTab("tabStoneChiselBlocks", true);
public static final CustomCreativeTab tabWoodChiselBlocks = new CustomCreativeTab("tabWoodChiselBlocks", true);
public static final CustomCreativeTab tabMetalChiselBlocks = new CustomCreativeTab("tabMetalChiselBlocks", true);
public static final CustomCreativeTab tabOtherChiselBlocks = new CustomCreativeTab("tabOtherChiselBlocks", true);
public static final CustomCreativeTab tabModdedChiselBlocks = new CustomCreativeTab("tabModdedChiselBlocks", true);
public static final CustomCreativeTab tabStairChiselBlocks = new CustomCreativeTab("tabStairChiselBlocks", true);
}
@@ -2,21 +2,22 @@ package com.cricketcraft.chisel.api;
import net.minecraft.block.Block;
import net.minecraft.item.ItemStack;
import cpw.mods.fml.common.event.FMLInterModComms;
public class FMPIMC {
public static void registerFMP(Block block) {
registerFMP(block, 0, 15);
}
public static void registerFMP(Block block) {
registerFMP(block, 0, 15);
}
public static void registerFMP(Block block, int minMeta, int maxMeta) {
for (int c = minMeta; c <= maxMeta; c++) {
registerFMP(block, c);
}
}
public static void registerFMP(Block block, int minMeta, int maxMeta) {
for (int c = minMeta; c <= maxMeta; c++) {
registerFMP(block, c);
}
}
public static void registerFMP(Block block, int meta) {
FMLInterModComms.sendMessage("ForgeMicroblock", "microMaterial", new ItemStack(block, 1, meta));
}
public static void registerFMP(Block block, int meta) {
FMLInterModComms.sendMessage("ForgeMicroblock", "microMaterial", new ItemStack(block, 1, meta));
}
}
@@ -9,25 +9,21 @@ import com.cricketcraft.chisel.api.carving.IChiselMode;
*/
public interface IAdvancedChisel {
/**
* Gets the next mode the button in the GUI should switch to given the current mode.
*
* @param stack
* The {@link ItemStack} representing the chisel
* @param current
* The {@link IChiselMode} that is currently active
* @return The next {@link IChiselMode} in the loop
*/
public IChiselMode getNextMode(ItemStack stack, IChiselMode current);
/**
* Gets the next mode the button in the GUI should switch to given the current mode.
*
* @param stack The {@link ItemStack} representing the chisel
* @param current The {@link IChiselMode} that is currently active
* @return The next {@link IChiselMode} in the loop
*/
public IChiselMode getNextMode(ItemStack stack, IChiselMode current);
/**
* Gets an {@link IChiselMode} instance from a String name
*
* @param chisel
* The {@link ItemStack} representing the chisel
* @param name
* The name of the {@link IChiselMode mode}
* @return An {@link IChiselMode} that has the name {@code name}
*/
public IChiselMode getMode(ItemStack chisel, String name);
/**
* Gets an {@link IChiselMode} instance from a String name
*
* @param chisel The {@link ItemStack} representing the chisel
* @param name The name of the {@link IChiselMode mode}
* @return An {@link IChiselMode} that has the name {@code name}
*/
public IChiselMode getMode(ItemStack chisel, String name);
}
@@ -4,41 +4,39 @@ import net.minecraft.world.IBlockAccess;
import com.cricketcraft.chisel.api.carving.CarvableHelper;
import com.cricketcraft.chisel.api.carving.IVariationInfo;
import com.cricketcraft.ctmlib.ICTMBlock;
import com.cricketcraft.ctmlib.ISubmapManager;
import team.chisel.ctmlib.ICTMBlock;
import team.chisel.ctmlib.ISubmapManager;
/**
* To be implemented on blocks that can be chiseled and need advanced metadata to variation mapping. Currently not very usable without internal classes.
* To be implemented on blocks that can be chiseled and need advanced metadata to variation mapping. Currently not very
* usable without internal classes.
*/
public interface ICarvable extends ICTMBlock<IVariationInfo> {
/**
* Gets a {@link ISubmapManager} from this block, based on metadata.
* <p>
* Typically you can refer this method to {@link CarvableHelper#getVariation(int)} but this method is provided for more complex metadata handling.
*
* @param metadata
* The metadata of the block
* @param world
* {@link IBlockAccess} object, usually a world. Use of {@link IBlockAccess} Is necessary due to this method's use in rendering.
* @param x
* X coord of the block
* @param y
* Y coord of the block
* @param z
* Z coord of the block
* @param metadata
* The metadata of the block
* @return The {@link ISubmapManager} that represents this block in the world.
*/
@Override
public IVariationInfo getManager(IBlockAccess world, int x, int y, int z, int metadata);
/**
* Gets a {@link ISubmapManager} from this block, based on metadata.
* <p>
* Typically you can refer this method to {@link CarvableHelper#getVariation(int)} but this method is provided for
* more complex metadata handling.
*
* @param metadata The metadata of the block
* @param world {@link IBlockAccess} object, usually a world. Use of {@link IBlockAccess} Is necessary due to
* this method's use in rendering.
* @param x X coord of the block
* @param y Y coord of the block
* @param z Z coord of the block
* @param metadata The metadata of the block
* @return The {@link ISubmapManager} that represents this block in the world.
*/
@Override
public IVariationInfo getManager(IBlockAccess world, int x, int y, int z, int metadata);
/**
* Gets the {@link ISubmapManager} for this block when it is in item form.
*
* @return A {@link ISubmapManager}
*/
@Override
public IVariationInfo getManager(int meta);
/**
* Gets the {@link ISubmapManager} for this block when it is in item form.
*
* @return A {@link ISubmapManager}
*/
@Override
public IVariationInfo getManager(int meta);
}
@@ -12,74 +12,60 @@ import com.cricketcraft.chisel.api.carving.ICarvingVariation;
*/
public interface IChiselItem {
/**
* Checks whether the chisel can have its GUI opened
*
* @param world
* {@link World} object
* @param player
* The player holding the chisel. It can always be assumed that the player's current item will be this.
* @param chisel
* The {@link ItemStack} representing your chisel
* @return True if the GUI should open. False otherwise.
*/
boolean canOpenGui(World world, EntityPlayer player, ItemStack chisel);
/**
* Checks whether the chisel can have its GUI opened
*
* @param world {@link World} object
* @param player The player holding the chisel. It can always be assumed that the player's current item will be
* this.
* @param chisel The {@link ItemStack} representing your chisel
* @return True if the GUI should open. False otherwise.
*/
boolean canOpenGui(World world, EntityPlayer player, ItemStack chisel);
/**
* Called when an item is chiseled using this chisel
*
* @param world
* {@link World} object
* @param chisel
* The {@link ItemStack} representing the chisel
* @param target
* The {@link ICarvingVariation} representing the target item
* @return True if the chisel should be damaged. False otherwise.
*/
boolean onChisel(World world, ItemStack chisel, ICarvingVariation target);
/**
* Called when an item is chiseled using this chisel
*
* @param world {@link World} object
* @param chisel The {@link ItemStack} representing the chisel
* @param target The {@link ICarvingVariation} representing the target item
* @return True if the chisel should be damaged. False otherwise.
*/
boolean onChisel(World world, ItemStack chisel, ICarvingVariation target);
/**
* Called to check if this {@link ItemStack} can be chiseled in this chisel. If not, there will be no possible variants displayed in the GUI.
* <p>
* It is not necessary to take into account whether this item <i>has</i> any variants, this method will only be called after that check.
*
* @param world
* {@link World} object
* @param chisel
* The {@link ItemStack} representing the chisel
* @param target
* The {@link ICarvingVariation} representing the target item
* @return True if the current target can be chiseled into anything. False otherwise.
*/
boolean canChisel(World world, ItemStack chisel, ICarvingVariation target);
/**
* Called to check if this {@link ItemStack} can be chiseled in this chisel. If not, there will be no possible
* variants displayed in the GUI.
* <p>
* It is not necessary to take into account whether this item <i>has</i> any variants, this method will only be
* called after that check.
*
* @param world {@link World} object
* @param chisel The {@link ItemStack} representing the chisel
* @param target The {@link ICarvingVariation} representing the target item
* @return True if the current target can be chiseled into anything. False otherwise.
*/
boolean canChisel(World world, ItemStack chisel, ICarvingVariation target);
/**
* Allows you to control if your item can chisel this block in the world.
*
* @param world
* World object
* @param player
* {@link EntityPlayer The player} holding the chisel.
* @param x
* X coord of the block being chiseled
* @param y
* Y coord of the block being chiseled
* @param z
* Z coord of the block being chiseled
* @param block
* The {@link Block} being chiseled
* @param metadata
* The blocks' metadata
* @return True if the chiseling should take place. False otherwise.
*/
boolean canChiselBlock(World world, EntityPlayer player, int x, int y, int z, Block block, int metadata);
/**
* Allows you to control if your item can chisel this block in the world.
*
* @param world World object
* @param player {@link EntityPlayer The player} holding the chisel.
* @param x X coord of the block being chiseled
* @param y Y coord of the block being chiseled
* @param z Z coord of the block being chiseled
* @param block The {@link Block} being chiseled
* @param metadata The blocks' metadata
* @return True if the chiseling should take place. False otherwise.
*/
boolean canChiselBlock(World world, EntityPlayer player, int x, int y, int z, Block block, int metadata);
/**
* Allows you to control if your item has chiseling modes.
*
* @param chisel
* The {@link ItemStack} representing the chisel.
* @return True if the chisel supports modes. False otherwise.
*/
boolean hasModes(ItemStack chisel);
/**
* Allows you to control if your item has chiseling modes.
*
* @param chisel The {@link ItemStack} representing the chisel.
* @return True if the chisel supports modes. False otherwise.
*/
boolean hasModes(ItemStack chisel);
}
@@ -7,20 +7,16 @@ import net.minecraft.world.IBlockAccess;
*/
public interface IConnectable {
/**
* Determines whether other CTM blocks can connect to this one.
*
* @param world
* @param x
* The X position of the block that is connecting to this one. NOT the position of your block.
* @param y
* The Y position of the block that is connecting to this one. NOT the position of your block.
* @param z
* The Z position of the block that is connecting to this one. NOT the position of your block.
* @param side
* The side being drawn.
* @return True if a block can connect to this one from the given direction. False otherwise.
*/
boolean canConnectCTM(IBlockAccess world, int x, int y, int z, int side);
/**
* Determines whether other CTM blocks can connect to this one.
*
* @param world
* @param x The X position of the block that is connecting to this one. NOT the position of your block.
* @param y The Y position of the block that is connecting to this one. NOT the position of your block.
* @param z The Z position of the block that is connecting to this one. NOT the position of your block.
* @param side The side being drawn.
* @return True if a block can connect to this one from the given direction. False otherwise.
*/
boolean canConnectCTM(IBlockAccess world, int x, int y, int z, int side);
}
@@ -9,41 +9,31 @@ import net.minecraft.world.World;
*/
public interface IFacade {
/**
* Gets the block this facade is acting as.
*
* @param world
* {@link World}
* @param x
* X coord of your block
* @param y
* Y coord of your block
* @param z
* Z coord of your block
* @param side
* The side being rendered, NOT the side being connected from.
* <p>
* This value can be -1 if no side is specified. Please handle this appropriately.
* @return The block inside of your facade block.
*/
Block getFacade(IBlockAccess world, int x, int y, int z, int side);
/**
* Gets the block this facade is acting as.
*
* @param world {@link World}
* @param x X coord of your block
* @param y Y coord of your block
* @param z Z coord of your block
* @param side The side being rendered, NOT the side being connected from.
* <p>
* This value can be -1 if no side is specified. Please handle this appropriately.
* @return The block inside of your facade block.
*/
Block getFacade(IBlockAccess world, int x, int y, int z, int side);
/**
* Gets the metadata of the block that this facade is acting as.
*
* @param world
* {@link World}
* @param x
* X coord of your block
* @param y
* Y coord of your block
* @param z
* Z coord of your block
* @param side
* The side being rendered, NOT the side being connected from.
* <p>
* This value can be -1 if no side is specified. Please handle this appropriately.
* @return The metadata of your facade block.
*/
int getFacadeMetadata(IBlockAccess world, int x, int y, int z, int side);
}
/**
* Gets the metadata of the block that this facade is acting as.
*
* @param world {@link World}
* @param x X coord of your block
* @param y Y coord of your block
* @param z Z coord of your block
* @param side The side being rendered, NOT the side being connected from.
* <p>
* This value can be -1 if no side is specified. Please handle this appropriately.
* @return The metadata of your facade block.
*/
int getFacadeMetadata(IBlockAccess world, int x, int y, int z, int side);
}
@@ -1,64 +1,69 @@
package com.cricketcraft.chisel.api;
/**
* Use the enum constants (using {@link #key} or calling {@link #toString()}) in this class as keys for IMC messages sent to chisel
* Use the enum constants (using {@link #key} or calling {@link #toString()}) in this class as keys for IMC messages
* sent to chisel
* <p>
* It is also acceptable to copy the Strings in this class to avoid referencing this API.
*/
public enum IMC {
/**
* Adds a variation to a group.
*
* Use this to add a variation to a group. String syntax:
* <p>
* groupname|blockname|meta
* <p>
* An example would be {@code "mygroup|minecraft:dirt|1"} and this will add the vanilla dirt block with metadata 1 to the "mygroup" group, creating that group if need be.
*/
ADD_VARIATION("variation:add"),
/**
* Adds a variation to a group.
*
* Use this to add a variation to a group. String syntax:
* <p>
* groupname|blockname|meta
* <p>
* An example would be {@code "mygroup|minecraft:dirt|1"} and this will add the vanilla dirt block with metadata 1
* to the "mygroup" group, creating that group if need be.
*/
ADD_VARIATION("variation:add"),
/**
* Removes a variation from a group.
*
* Use this to remove a variation from a group. String syntax:
* <p>
* groupname|blockname|meta
* <p>
* An example would be {@code "mygroup|minecraft:dirt|1"} and this will add the vanilla dirt block with metadata 1 to the "mygroup" group, creating that group if need be.
*/
REMOVE_VARIATION("variation:remove"),
/**
* Removes a variation from a group.
*
* Use this to remove a variation from a group. String syntax:
* <p>
* groupname|blockname|meta
* <p>
* An example would be {@code "mygroup|minecraft:dirt|1"} and this will add the vanilla dirt block with metadata 1
* to the "mygroup" group, creating that group if need be.
*/
REMOVE_VARIATION("variation:remove"),
/**
* Registers an oredict name to a group. This can be used to automatically add all blocks with this oredict name to a group. String syntax:
* <p>
* groupname|oredictname
* <p>
* An example would be {@code "mygroup|plankWood"} which will add all blocks registered in the oredict as "plankWood" to your group called "mygroup".
*/
REGISTER_GROUP_ORE("group:ore");
/**
* Registers an oredict name to a group. This can be used to automatically add all blocks with this oredict name to
* a group. String syntax:
* <p>
* groupname|oredictname
* <p>
* An example would be {@code "mygroup|plankWood"} which will add all blocks registered in the oredict as
* "plankWood" to your group called "mygroup".
*/
REGISTER_GROUP_ORE("group:ore");
/**
* The IMC message key for this message type.
*/
public final String key;
/**
* The IMC message key for this message type.
*/
public final String key;
IMC(String key) {
this.key = key;
}
IMC(String key) {
this.key = key;
}
@Override
public String toString() {
return key;
}
@Override
public String toString() {
return key;
}
/**
* The modid of Chisel so you can easily send IMC to this mod.
*/
@Deprecated
public static final String CHISEL_MODID = "chisel";
/**
* The modid of Chisel so you can easily send IMC to this mod.
*/
@Deprecated
public static final String CHISEL_MODID = "chisel";
public static final String getModid() {
return ChiselAPIProps.MOD_ID;
}
public static final String getModid() {
return ChiselAPIProps.MOD_ID;
}
}
@@ -6,10 +6,12 @@ import net.minecraft.util.ChatComponentTranslation;
public class Statistics {
public static StatBase blocksChiseled = (new StatBasic("stat.blockChiseled", new ChatComponentTranslation("stat.blockChiseled", new Object[0])));
public static StatBase blocksChiseled = (new StatBasic(
"stat.blockChiseled",
new ChatComponentTranslation("stat.blockChiseled", new Object[0])));
public static void init() {
blocksChiseled.initIndependentStat();
blocksChiseled.registerStat();
}
public static void init() {
blocksChiseled.initIndependentStat();
blocksChiseled.registerStat();
}
}
@@ -18,202 +18,225 @@ import net.minecraftforge.oredict.OreDictionary;
import com.cricketcraft.chisel.api.ChiselAPIProps;
import com.cricketcraft.chisel.api.FMPIMC;
import com.cricketcraft.chisel.api.rendering.TextureType;
import com.cricketcraft.ctmlib.ISubmapManager;
import cpw.mods.fml.common.FMLCommonHandler;
import cpw.mods.fml.common.Loader;
import cpw.mods.fml.common.registry.GameRegistry;
import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;
import team.chisel.block.BlockCarvableGlowie;
import team.chisel.compat.fmp.FMPCompat;
import team.chisel.ctmlib.ISubmapManager;
public class CarvableHelper {
public static Class<? extends ItemBlock> itemCarvableClass = null;
public static Class<? extends ItemBlock> itemCarvableClass = null;
private Block theBlock;
private Block theBlock;
public ArrayList<IVariationInfo> infoList = new ArrayList<IVariationInfo>();
IVariationInfo[] infoMap = new IVariationInfo[16];
public boolean forbidChiseling = false;
public ArrayList<IVariationInfo> infoList = new ArrayList<IVariationInfo>();
IVariationInfo[] infoMap = new IVariationInfo[16];
public boolean forbidChiseling = false;
public CarvableHelper(Block block) {
this.theBlock = block;
}
public CarvableHelper(Block block) {
this.theBlock = block;
}
public void addVariation(String description, int metadata, ISubmapManager manager) {
addVariation(description, metadata, null, manager);
}
public void addVariation(String description, int metadata, ISubmapManager manager) {
addVariation(description, metadata, null, manager);
}
public void addVariation(String description, int metadata, Block bb) {
addVariation(description, metadata, null, bb, 0, ChiselAPIProps.MOD_ID);
}
public void addVariation(String description, int metadata, Block bb) {
addVariation(description, metadata, null, bb, 0, ChiselAPIProps.MOD_ID);
}
public void addVariation(String description, int metadata, Block bb, int blockMeta) {
addVariation(description, metadata, null, bb, blockMeta, ChiselAPIProps.MOD_ID);
}
public void addVariation(String description, int metadata, Block bb, int blockMeta) {
addVariation(description, metadata, null, bb, blockMeta, ChiselAPIProps.MOD_ID);
}
public void addVariation(String description, int metadata, Block bb, int blockMeta, Material material) {
addVariation(description, metadata, null, bb, blockMeta, ChiselAPIProps.MOD_ID);
}
public void addVariation(String description, int metadata, Block bb, int blockMeta, Material material) {
addVariation(description, metadata, null, bb, blockMeta, ChiselAPIProps.MOD_ID);
}
public void addVariation(String description, int metadata, String texture) {
addVariation(description, metadata, texture, (ISubmapManager) null);
}
public void addVariation(String description, int metadata, String texture) {
addVariation(description, metadata, texture, (ISubmapManager) null);
}
public void addVariation(String description, int metadata, String texture, ISubmapManager manager) {
addVariation(description, metadata, texture, null, 0, ChiselAPIProps.MOD_ID, manager, metadata);
}
public void addVariation(String description, int metadata, String texture, ISubmapManager manager) {
addVariation(description, metadata, texture, null, 0, ChiselAPIProps.MOD_ID, manager, metadata);
}
public void addVariation(String description, int metadata, Block bb, String modid) {
addVariation(description, metadata, null, bb, 0, modid);
}
public void addVariation(String description, int metadata, Block bb, String modid) {
addVariation(description, metadata, null, bb, 0, modid);
}
public void addVariation(String description, int metadata, Block bb, int blockMeta, String modid) {
addVariation(description, metadata, null, bb, blockMeta, modid);
}
public void addVariation(String description, int metadata, Block bb, int blockMeta, String modid) {
addVariation(description, metadata, null, bb, blockMeta, modid);
}
public void addVariation(String description, int metadata, Block bb, int blockMeta, Material material, String modid) {
addVariation(description, metadata, null, bb, blockMeta, modid);
}
public void addVariation(String description, int metadata, Block bb, int blockMeta, Material material,
String modid) {
addVariation(description, metadata, null, bb, blockMeta, modid);
}
public void addVariation(String description, int metadata, String texture, String modid) {
addVariation(description, metadata, texture, null, 0, modid);
}
public void addVariation(String description, int metadata, String texture, String modid) {
addVariation(description, metadata, texture, null, 0, modid);
}
public void addVariation(String description, int metadata, String texture, Block block, int blockMeta, String modid) {
addVariation(description, metadata, texture, block, blockMeta, modid, null, metadata);
}
public void addVariation(String description, int metadata, String texture, Block block, int blockMeta,
String modid) {
addVariation(description, metadata, texture, block, blockMeta, modid, null, metadata);
}
public void addVariation(String description, int metadata, String texture, int order) {
addVariation(description, metadata, texture, null, 0, ChiselAPIProps.MOD_ID, (ISubmapManager) null, order);
}
public void addVariation(String description, int metadata, String texture, int order) {
addVariation(description, metadata, texture, null, 0, ChiselAPIProps.MOD_ID, (ISubmapManager) null, order);
}
public void addVariation(String description, int metadata, String texture, Block block, int blockMeta, String modid, ISubmapManager customManager, int order) {
public void addVariation(String description, int metadata, String texture, Block block, int blockMeta, String modid,
ISubmapManager customManager, int order) {
if (infoList.size() >= 16)
return;
if (infoList.size() >= 16) return;
IVariationInfo info = FMLCommonHandler.instance().getSide().isClient() ? getClientInfo(modid, texture, description, metadata, block, blockMeta, customManager, order) : getServerInfo(modid,
texture, description, metadata, block, blockMeta, customManager, order);
IVariationInfo info = FMLCommonHandler.instance()
.getSide()
.isClient() ? getClientInfo(modid, texture, description, metadata, block, blockMeta, customManager, order)
: getServerInfo(modid, texture, description, metadata, block, blockMeta, customManager, order);
infoList.add(info);
infoMap[metadata] = info;
}
infoList.add(info);
infoMap[metadata] = info;
}
private IVariationInfo getClientInfo(String modid, String texture, String description, int metadata, Block block, int blockMeta, ISubmapManager customManager, int order) {
ICarvingVariation var = CarvingUtils.getDefaultVariationFor(theBlock, metadata, order);
TextureType type = TextureType.getTypeFor(this, modid, texture);
if (type == TextureType.CUSTOM && customManager == null && block == null) {
throw new IllegalArgumentException(String.format("Could not find texture %s, and no custom texture manager was provided.", texture));
}
private IVariationInfo getClientInfo(String modid, String texture, String description, int metadata, Block block,
int blockMeta, ISubmapManager customManager, int order) {
ICarvingVariation var = CarvingUtils.getDefaultVariationFor(getBlock(), metadata, order);
TextureType type = TextureType.getTypeFor(this, modid, texture);
if (type == TextureType.CUSTOM && customManager == null && block == null) {
throw new IllegalArgumentException(
String.format("Could not find texture %s, and no custom texture manager was provided.", texture));
}
ISubmapManager manager;
if (customManager != null) {
manager = customManager;
} else if (block != null) {
manager = type.createManagerFor(var, block, blockMeta);
} else {
manager = type.createManagerFor(var, texture);
}
return new VariationInfoBase(var, description, manager, type);
}
ISubmapManager manager;
if (customManager != null) {
manager = customManager;
} else if (block != null) {
manager = type.createManagerFor(var, block, blockMeta);
} else {
manager = type.createManagerFor(var, texture);
}
return new VariationInfoBase(var, description, manager, type);
}
private IVariationInfo getServerInfo(String modid, String texture, String description, int metadata, Block block, int blockMeta, ISubmapManager customManager, int order) {
ICarvingVariation var = CarvingUtils.getDefaultVariationFor(theBlock, metadata, order);
return new VariationInfoBase(var, description, null);
}
private IVariationInfo getServerInfo(String modid, String texture, String description, int metadata, Block block,
int blockMeta, ISubmapManager customManager, int order) {
ICarvingVariation var = CarvingUtils.getDefaultVariationFor(getBlock(), metadata, order);
return new VariationInfoBase(var, description, null);
}
public IVariationInfo getVariation(int metadata) {
if (metadata < 0 || metadata > 15)
metadata = 0;
public IVariationInfo getVariation(int metadata) {
if (metadata < 0 || metadata > 15) metadata = 0;
IVariationInfo info = infoMap[metadata];
if (info == null)
return null;
IVariationInfo info = infoMap[metadata];
if (info == null) return null;
return info;
}
return info;
}
public IIcon getIcon(int side, int metadata) {
if (metadata < 0 || metadata > 15)
metadata = 0;
public IIcon getIcon(int side, int metadata) {
if (metadata < 0 || metadata > 15) metadata = 0;
IVariationInfo info = infoMap[metadata];
if (info == null)
return getMissingIcon();
IVariationInfo info = infoMap[metadata];
if (info == null) return getMissingIcon();
return info.getIcon(side, metadata);
}
return info.getIcon(side, metadata);
}
public IIcon getIcon(IBlockAccess world, int x, int y, int z, int side) {
int metadata = world.getBlockMetadata(x, y, z);
public IIcon getIcon(IBlockAccess world, int x, int y, int z, int side) {
int metadata = world.getBlockMetadata(x, y, z);
if (metadata < 0 || metadata > 15)
metadata = 0;
if (metadata < 0 || metadata > 15) metadata = 0;
IVariationInfo info = infoMap[metadata];
if (info == null)
return getMissingIcon();
IVariationInfo info = infoMap[metadata];
if (info == null) return getMissingIcon();
return info.getIcon(world, x, y, z, side);
}
return info.getIcon(world, x, y, z, side);
}
public void registerAll(Block block, String name) {
registerAll(block, name, itemCarvableClass);
}
public void registerAll(Block block, String name) {
registerAll(block, name, itemCarvableClass);
}
public void registerBlock(Block block, String name) {
registerBlock(block, name, itemCarvableClass);
}
public void registerBlock(Block block, String name) {
registerBlock(block, name, itemCarvableClass);
}
void registerBlock(Block block, String name, Class<? extends ItemBlock> cl) {
block.setBlockName("chisel." + name);
GameRegistry.registerBlock(block, cl, name);
}
void registerBlock(Block block, String name, Class<? extends ItemBlock> cl) {
block.setBlockName("chisel." + name);
GameRegistry.registerBlock(block, cl, name);
}
public void registerAll(Block block, String name, Class<? extends ItemBlock> cl) {
registerBlock(block, name, cl);
registerVariations(name);
}
public void registerAll(Block block, String name, Class<? extends ItemBlock> cl) {
registerBlock(block, name, cl);
registerVariations(name);
}
public void registerVariations(String name) {
for (IVariationInfo info : infoList) {
registerVariation(name, info);
}
}
public void registerVariations(String name) {
for (IVariationInfo info : infoList) {
registerVariation(name, info);
}
}
public void registerVariation(String name, IVariationInfo info) {
public void registerVariation(String name, IVariationInfo info) {
Block block = info.getVariation().getBlock();
Block block = info.getVariation()
.getBlock();
if (block.renderAsNormalBlock() || block.isOpaqueCube() || block.isNormalCube()) {
FMPIMC.registerFMP(block, info.getVariation().getBlockMeta());
}
if (Loader.isModLoaded("ForgeMultipart") && block instanceof BlockCarvableGlowie) {
FMPCompat.registerGlowieVariation(info, block);
} else {
if (block.renderAsNormalBlock() || block.isOpaqueCube() || block.isNormalCube()) {
FMPIMC.registerFMP(
block,
info.getVariation()
.getBlockMeta());
}
}
if (forbidChiseling)
return;
if (forbidChiseling) return;
CarvingUtils.getChiselRegistry().addVariation(name, info.getVariation());
}
CarvingUtils.getChiselRegistry()
.addVariation(name, info.getVariation());
}
@SideOnly(Side.CLIENT)
public void registerBlockIcons(String modName, Block block, IIconRegister register) {
for (IVariationInfo info : infoList) {
info.registerIcons(modName, block, register);
}
}
@SideOnly(Side.CLIENT)
public void registerBlockIcons(String modName, Block block, IIconRegister register) {
for (IVariationInfo info : infoList) {
info.registerIcons(modName, block, register);
}
}
public void registerSubBlocks(Block block, CreativeTabs tabs, List<ItemStack> list) {
for (IVariationInfo info : infoList) {
list.add(new ItemStack(block, 1, info.getVariation().getItemMeta()));
}
}
public void registerSubBlocks(Block block, CreativeTabs tabs, List<ItemStack> list) {
for (IVariationInfo info : infoList) {
list.add(
new ItemStack(
block,
1,
info.getVariation()
.getItemMeta()));
}
}
public void registerOre(String ore) {
OreDictionary.registerOre(ore, theBlock);
}
public void registerOre(String ore) {
OreDictionary.registerOre(ore, getBlock());
}
@SideOnly(Side.CLIENT)
public IIcon getMissingIcon() {
return ((TextureMap) Minecraft.getMinecraft().getTextureManager().getTexture(TextureMap.locationBlocksTexture)).getAtlasSprite("missingno");
}
@SideOnly(Side.CLIENT)
public IIcon getMissingIcon() {
return ((TextureMap) Minecraft.getMinecraft()
.getTextureManager()
.getTexture(TextureMap.locationBlocksTexture)).getAtlasSprite("missingno");
}
public Block getBlock() {
return theBlock;
}
}
@@ -11,166 +11,163 @@ import com.google.common.collect.Lists;
public class CarvingUtils {
/**
* A simple way to compare two {@link ICarvingVariation} objects based on the {@link ICarvingVariation#getOrder() getOrder()} method.
*
* @param v1
* The first {@link ICarvingVariation variation}.
* @param v2
* The second {@link ICarvingVariation variation}.
* @return A positive integer if the first's order is greater, a negative integer if the second's is greater, and 0 if they are equal.
*/
public static int compare(ICarvingVariation v1, ICarvingVariation v2) {
return v1.getOrder() - v2.getOrder();
}
/**
* A simple way to compare two {@link ICarvingVariation} objects based on the {@link ICarvingVariation#getOrder()
* getOrder()} method.
*
* @param v1 The first {@link ICarvingVariation variation}.
* @param v2 The second {@link ICarvingVariation variation}.
* @return A positive integer if the first's order is greater, a negative integer if the second's is greater, and 0
* if they are equal.
*/
public static int compare(ICarvingVariation v1, ICarvingVariation v2) {
return v1.getOrder() - v2.getOrder();
}
/**
* Gets an {@link ItemStack} representing the passed {@link ICarvingVariation}.
*
* @param variation
* An {@link ICarvingVariation}
* @return An {@link ItemStack}
*/
public static ItemStack getStack(ICarvingVariation variation) {
return new ItemStack(variation.getBlock(), 1, variation.getItemMeta());
}
/**
* Gets an {@link ItemStack} representing the passed {@link ICarvingVariation}.
*
* @param variation An {@link ICarvingVariation}
* @return An {@link ItemStack}
*/
public static ItemStack getStack(ICarvingVariation variation) {
return new ItemStack(variation.getBlock(), 1, variation.getItemMeta());
}
public static ICarvingRegistry chisel;
public static ICarvingRegistry chisel;
/**
* @return The instance of the chisel carving registry from the chisel mod.
* <p>
* If chisel is not installed this will return null.
*/
public static ICarvingRegistry getChiselRegistry() {
return chisel;
}
/**
* @return The instance of the chisel carving registry from the chisel mod.
* <p>
* If chisel is not installed this will return null.
*/
public static ICarvingRegistry getChiselRegistry() {
return chisel;
}
/**
* Creates a standard {@link ICarvingVariation} for the given data. Use this if you do not need any custom behavior in your own variation.
*
* @param block
* The block of the variation
* @param metadata
* The metadata of both the block and item
* @param order
* The sorting order.
* @return A standard {@link ICarvingVariation} instance.
*/
public static ICarvingVariation getDefaultVariationFor(Block block, int metadata, int order) {
return new SimpleCarvingVariation(block, metadata, order);
}
/**
* Creates a standard {@link ICarvingVariation} for the given data. Use this if you do not need any custom behavior
* in your own variation.
*
* @param block The block of the variation
* @param metadata The metadata of both the block and item
* @param order The sorting order.
* @return A standard {@link ICarvingVariation} instance.
*/
public static ICarvingVariation getDefaultVariationFor(Block block, int metadata, int order) {
return new SimpleCarvingVariation(block, metadata, order);
}
/**
* Creates a standard {@link ICarvingGroup} for the given name. Use this if you do not need any custom behavior in your own group.
*
* @param name
* The name of the group.
* @return A standard {@link ICarvingGroup} instance.
*/
public static ICarvingGroup getDefaultGroupFor(String name) {
return new SimpleCarvingGroup(name);
}
/**
* Creates a standard {@link ICarvingGroup} for the given name. Use this if you do not need any custom behavior in
* your own group.
*
* @param name The name of the group.
* @return A standard {@link ICarvingGroup} instance.
*/
public static ICarvingGroup getDefaultGroupFor(String name) {
return new SimpleCarvingGroup(name);
}
public static class SimpleCarvingVariation implements ICarvingVariation {
public static class SimpleCarvingVariation implements ICarvingVariation {
private int order;
private Block block;
private int meta;
private int damage;
private int order;
private Block block;
private int meta;
private int damage;
public SimpleCarvingVariation(Block block, int metadata, int order) {
this.order = order;
this.block = block;
this.meta = metadata;
this.damage = metadata;
}
public SimpleCarvingVariation(Block block, int metadata, int order) {
this.order = order;
this.block = block;
this.meta = metadata;
this.damage = metadata;
}
@Override
public Block getBlock() {
return block;
}
@Override
public Block getBlock() {
return block;
}
@Override
public int getBlockMeta() {
return meta;
}
@Override
public int getBlockMeta() {
return meta;
}
@Override
public int getItemMeta() {
return damage;
}
@Override
public int getItemMeta() {
return damage;
}
@Override
public int getOrder() {
return order;
}
}
@Override
public int getOrder() {
return order;
}
}
public static class SimpleCarvingGroup implements ICarvingGroup {
public static class SimpleCarvingGroup implements ICarvingGroup {
private String name;
private String sound;
private String oreName;
private String name;
private String sound;
private String oreName;
private List<ICarvingVariation> variations = Lists.newArrayList();
private List<ICarvingVariation> variations = Lists.newArrayList();
public SimpleCarvingGroup(String name) {
this.name = name;
}
public SimpleCarvingGroup(String name) {
this.name = name;
}
@Override
public List<ICarvingVariation> getVariations() {
return Lists.newArrayList(variations);
}
@Override
public List<ICarvingVariation> getVariations() {
return Lists.newArrayList(variations);
}
@Override
public void addVariation(ICarvingVariation variation) {
variations.add(variation);
Collections.sort(variations, new Comparator<ICarvingVariation>() {
@Override
public void addVariation(ICarvingVariation variation) {
variations.add(variation);
Collections.sort(variations, new Comparator<ICarvingVariation>() {
@Override
public int compare(ICarvingVariation o1, ICarvingVariation o2) {
return CarvingUtils.compare(o1, o2);
}
});
}
@Override
public int compare(ICarvingVariation o1, ICarvingVariation o2) {
return CarvingUtils.compare(o1, o2);
}
});
}
@Override
public boolean removeVariation(ICarvingVariation variation) {
ICarvingVariation toRemove = null;
for (ICarvingVariation v : variations) {
if (v.getBlock() == variation.getBlock() && v.getBlockMeta() == variation.getBlockMeta()) {
toRemove = v;
}
}
return toRemove == null ? false : variations.remove(toRemove);
}
@Override
public boolean removeVariation(ICarvingVariation variation) {
ICarvingVariation toRemove = null;
for (ICarvingVariation v : variations) {
if (v.getBlock() == variation.getBlock() && v.getBlockMeta() == variation.getBlockMeta()) {
toRemove = v;
}
}
return toRemove == null ? false : variations.remove(toRemove);
}
@Override
public String getName() {
return name;
}
@Override
public String getName() {
return name;
}
@Override
public String getSound() {
return sound;
}
@Override
public String getSound() {
return sound;
}
@Override
public void setSound(String sound) {
this.sound = sound;
}
@Override
public void setSound(String sound) {
this.sound = sound;
}
@Override
public String getOreName() {
return oreName;
}
@Override
public String getOreName() {
return oreName;
}
@Override
public void setOreName(String oreName) {
this.oreName = oreName;
}
}
@Override
public void setOreName(String oreName) {
this.oreName = oreName;
}
}
}
@@ -5,70 +5,69 @@ import java.util.List;
/**
* Represents a group of chiselable blocks.
* <p>
* This is an object that contains a collection of {@link ICarvingVariation} objects, and keeps them sorted. You may sort them in any way (or not at all), and {@link ICarvingVariation#getOrder()} will
* likely be of use to do so.
* This is an object that contains a collection of {@link ICarvingVariation} objects, and keeps them sorted. You may
* sort them in any way (or not at all), and {@link ICarvingVariation#getOrder()} will likely be of use to do so.
* <p>
* It also defines what sound and oredict name the group as a whole has.
*/
public interface ICarvingGroup {
/**
* The name of this group. Used for internal identification.
*
* @return A string name for the group
*/
String getName();
/**
* The name of this group. Used for internal identification.
*
* @return A string name for the group
*/
String getName();
/**
* Can return null. If null, fallback sound will be used (the standard chisel sound).
*
* @return The string resource path of the sound to use for chiseling items in this group
*/
String getSound();
/**
* Can return null. If null, fallback sound will be used (the standard chisel sound).
*
* @return The string resource path of the sound to use for chiseling items in this group
*/
String getSound();
/**
* Sets the sound of this group
*
* @param sound
* A string resource path for the sound this group makes when chiseled
*/
void setSound(String sound);
/**
* Sets the sound of this group
*
* @param sound A string resource path for the sound this group makes when chiseled
*/
void setSound(String sound);
/**
* The oredict name to match to this group. All items with this oredict name will be assumed to be part of this group.
*
* @return An ore dictionary name
*/
String getOreName();
/**
* The oredict name to match to this group. All items with this oredict name will be assumed to be part of this
* group.
*
* @return An ore dictionary name
*/
String getOreName();
/**
* Sets the oredict name for this group.
*
* @param oreName
* The String oredict name to be associated with this group.
*/
void setOreName(String oreName);
/**
* Sets the oredict name for this group.
*
* @param oreName The String oredict name to be associated with this group.
*/
void setOreName(String oreName);
/**
* Gets all carving variations associated with this group.
*
* @return A {@link List} of {@link ICarvingVariation}s
*/
List<ICarvingVariation> getVariations();
/**
* Gets all carving variations associated with this group.
*
* @return A {@link List} of {@link ICarvingVariation}s
*/
List<ICarvingVariation> getVariations();
/**
* Adds a variation to this group. Do not call this from external code, as it will fail to remove the inverse lookup from the registry.
*
* @param variation
* An {@link ICarvingVariation} to add to this group
*/
void addVariation(ICarvingVariation variation);
/**
* Adds a variation to this group. Do not call this from external code, as it will fail to remove the inverse lookup
* from the registry.
*
* @param variation An {@link ICarvingVariation} to add to this group
*/
void addVariation(ICarvingVariation variation);
/**
* Removes a variation to this group. Do not call this from external code, as it will fail to remove the inverse lookup from the registry.
*
* @param variation
* An {@link ICarvingVariation} to add to this group
*/
boolean removeVariation(ICarvingVariation variation);
/**
* Removes a variation to this group. Do not call this from external code, as it will fail to remove the inverse
* lookup from the registry.
*
* @param variation An {@link ICarvingVariation} to add to this group
*/
boolean removeVariation(ICarvingVariation variation);
}
@@ -14,191 +14,168 @@ import net.minecraft.world.World;
*/
public interface ICarvingRegistry {
/* Getters */
/* Getters */
/**
* Finds the group the block/meta pair belongs to in the registry.
*
* @param block
* The block of the variation
* @param meta
* The metadata of the variation
* @return The {@link ICarvingGroup} that the block/meta pair belongs to
*/
ICarvingGroup getGroup(Block block, int meta);
/**
* Finds the group the block/meta pair belongs to in the registry.
*
* @param block The block of the variation
* @param meta The metadata of the variation
* @return The {@link ICarvingGroup} that the block/meta pair belongs to
*/
ICarvingGroup getGroup(Block block, int meta);
/**
* Gets an {@link ICarvingGroup} by its name.
*
* @param name
* The name of the group
* @return An {@link ICarvingGroup}
*/
ICarvingGroup getGroup(String name);
/**
* Gets an {@link ICarvingGroup} by its name.
*
* @param name The name of the group
* @return An {@link ICarvingGroup}
*/
ICarvingGroup getGroup(String name);
/**
* Gets the {@link ICarvingVariation} instance represented by this block/meta pair.
*
* @param block
* The block of the variatoin
* @param meta
* The metadata of the variation
* @return The {@link ICarvingVariation} containing this block/meta pair
*/
ICarvingVariation getVariation(Block block, int meta);
/**
* Gets the {@link ICarvingVariation} instance represented by this block/meta pair.
*
* @param block The block of the variatoin
* @param meta The metadata of the variation
* @return The {@link ICarvingVariation} containing this block/meta pair
*/
ICarvingVariation getVariation(Block block, int meta);
/**
* Gets the list of {@link ICarvingVariation}s from the group that contains this block/meta pair.
*
* @param block
* The block of the variation
* @param meta
* The metadata of the variation
* @return All of the {@link ICarvingVariation}s in the group that contains this block/meta pair
*/
List<ICarvingVariation> getGroupVariations(Block block, int meta);
/**
* Gets the list of {@link ICarvingVariation}s from the group that contains this block/meta pair.
*
* @param block The block of the variation
* @param meta The metadata of the variation
* @return All of the {@link ICarvingVariation}s in the group that contains this block/meta pair
*/
List<ICarvingVariation> getGroupVariations(Block block, int meta);
/**
* Gets the oredict name for the group that contains this block/meta pair.
*
* @param block
* The block of the variation
* @param meta
* The metadata of the variation
* @return A string oredict name for the group
*/
String getOreName(Block block, int meta);
/**
* Gets the oredict name for the group that contains this block/meta pair.
*
* @param block The block of the variation
* @param meta The metadata of the variation
* @return A string oredict name for the group
*/
String getOreName(Block block, int meta);
/**
* Gets the possible output items for this {@link ItemStack}. To be used for machines/GUIs that chisel items.
*
* @param chiseled
* The {@link ItemStack} being chiseled
* @return A list of stacks that can be chiseled from the passed {@link ItemStack stack}
*/
List<ItemStack> getItemsForChiseling(ItemStack chiseled);
/**
* Gets the possible output items for this {@link ItemStack}. To be used for machines/GUIs that chisel items.
*
* @param chiseled The {@link ItemStack} being chiseled
* @return A list of stacks that can be chiseled from the passed {@link ItemStack stack}
*/
List<ItemStack> getItemsForChiseling(ItemStack chiseled);
/**
* Gets the sound resource string for the group represented by this block/meta pair.
*
* @param block
* The block of the variation
* @param metadata
* The metadata of the variation
* @return The string resource for the sound that can be used in {@link World#playSound(double, double, double, String, float, float, boolean)} and other methods.
*/
public String getVariationSound(Block block, int metadata);
/**
* Gets the sound resource string for the group represented by this block/meta pair.
*
* @param block The block of the variation
* @param metadata The metadata of the variation
* @return The string resource for the sound that can be used in
* {@link World#playSound(double, double, double, String, float, float, boolean)} and other methods.
*/
public String getVariationSound(Block block, int metadata);
/**
* Gets the sound resource string for the group represented by this item/meta pair.
* <p>
* Mostly a convenience for calling {@link #getVariationSound(Block, int)} with {@link Block#getBlockFromItem(Item)}.
*
* @param item
* The item of the variation
* @param metadata
* The metadata of the variation
* @return The string resource for the sound that can be used in {@link World#playSound(double, double, double, String, float, float, boolean)} and other methods.
*/
public String getVariationSound(Item item, int metadata);
/**
* Gets the sound resource string for the group represented by this item/meta pair.
* <p>
* Mostly a convenience for calling {@link #getVariationSound(Block, int)} with
* {@link Block#getBlockFromItem(Item)}.
*
* @param item The item of the variation
* @param metadata The metadata of the variation
* @return The string resource for the sound that can be used in
* {@link World#playSound(double, double, double, String, float, float, boolean)} and other methods.
*/
public String getVariationSound(Item item, int metadata);
/**
* @return A list of all registered group names, sorted alphabetically.
*/
List<String> getSortedGroupNames();
/**
* @return A list of all registered group names, sorted alphabetically.
*/
List<String> getSortedGroupNames();
/* Setters */
/* Setters */
/**
* Adds a variation to the registry.
*
* @param groupName
* The name of the group to add to.
* @param block
* The block of the variation
* @param metadata
* The metadata of the variation
* @param order
* The order of the variation in the list of all variations in the group. Higher numbers are sorted at the end.
*/
void addVariation(String groupName, Block block, int metadata, int order);
/**
* Adds a variation to the registry.
*
* @param groupName The name of the group to add to.
* @param block The block of the variation
* @param metadata The metadata of the variation
* @param order The order of the variation in the list of all variations in the group. Higher numbers are sorted
* at the end.
*/
void addVariation(String groupName, Block block, int metadata, int order);
/**
* Adds a variation to the registry.
*
* @param groupName
* The name of the group to add to
* @param variation
* The {@link ICarvingVariation} to add
*/
void addVariation(String groupName, ICarvingVariation variation);
/**
* Adds a variation to the registry.
*
* @param groupName The name of the group to add to
* @param variation The {@link ICarvingVariation} to add
*/
void addVariation(String groupName, ICarvingVariation variation);
/**
* Adds a group to the registry.
*
* @param group
* The {@link ICarvingGroup} to add.
*/
void addGroup(ICarvingGroup group);
/**
* Adds a group to the registry.
*
* @param group The {@link ICarvingGroup} to add.
*/
void addGroup(ICarvingGroup group);
/**
* Removes a group from the registry.
* <p>
* This in effect removes all variations associated with the group, though they are not explicitly removed from the object. If you maintain a reference to the {@link ICarvingGroup} that is
* removed, it will still contain its variations.
*
* @param groupName
* The name of the group to remove.
* @return The {@link ICarvingGroup} that was removed.
*/
ICarvingGroup removeGroup(String groupName);
/**
* Removes a group from the registry.
* <p>
* This in effect removes all variations associated with the group, though they are not explicitly removed from the
* object. If you maintain a reference to the {@link ICarvingGroup} that is removed, it will still contain its
* variations.
*
* @param groupName The name of the group to remove.
* @return The {@link ICarvingGroup} that was removed.
*/
ICarvingGroup removeGroup(String groupName);
/**
* Removes a varaition with the passed {@link Block} and metadata from the registry. If this variation is registered with mutiple groups, it will remove it from all of them.
*
* @param block
* The {@link Block} of the {@link ICarvingVariation variation}
* @param metadata
* The metadata of the {@link ICarvingVariation variation}
* @return The ICarvingVariation that was removed. Null if nothing was removed.
*/
ICarvingVariation removeVariation(Block block, int metadata);
/**
* Removes a varaition with the passed {@link Block} and metadata from the registry. If this variation is registered
* with mutiple groups, it will remove it from all of them.
*
* @param block The {@link Block} of the {@link ICarvingVariation variation}
* @param metadata The metadata of the {@link ICarvingVariation variation}
* @return The ICarvingVariation that was removed. Null if nothing was removed.
*/
ICarvingVariation removeVariation(Block block, int metadata);
/**
* Removes a varaition with the passed {@link Block} and metadata from the registry, but only from the specified {@link ICarvingGroup} name.
*
* @param block
* The {@link Block} of the {@link ICarvingVariation variation}
* @param metadata
* The metadata of the {@link ICarvingVariation variation}
* @param group
* The name of the group that the variation should be removed from
* @return The ICarvingVariation that was removed. Null if nothing was removed.
*/
ICarvingVariation removeVariation(Block block, int metadata, String group);
/**
* Removes a varaition with the passed {@link Block} and metadata from the registry, but only from the specified
* {@link ICarvingGroup} name.
*
* @param block The {@link Block} of the {@link ICarvingVariation variation}
* @param metadata The metadata of the {@link ICarvingVariation variation}
* @param group The name of the group that the variation should be removed from
* @return The ICarvingVariation that was removed. Null if nothing was removed.
*/
ICarvingVariation removeVariation(Block block, int metadata, String group);
/**
* Registers a group to an oredict name.
* <p>
* Doing this means that all blocks that are registered to this oredict name will act as if they are a part of this group.
*
* @param groupName
* The name of the group
* @param oreName
* The oredict name
*/
void registerOre(String groupName, String oreName);
/**
* Registers a group to an oredict name.
* <p>
* Doing this means that all blocks that are registered to this oredict name will act as if they are a part of this
* group.
*
* @param groupName The name of the group
* @param oreName The oredict name
*/
void registerOre(String groupName, String oreName);
/**
* Sets the sound resource for a group.
* <p>
* This is the sound that is used when a block from this group is chiseled. <br/>
* Does <i>not</i> need to be explicitly set.
*
* @param name
* The name of the group
* @param sound
* The resource string for the sound
*/
void setVariationSound(String name, String sound);
/**
* Sets the sound resource for a group.
* <p>
* This is the sound that is used when a block from this group is chiseled. <br/>
* Does <i>not</i> need to be explicitly set.
*
* @param name The name of the group
* @param sound The resource string for the sound
*/
void setVariationSound(String name, String sound);
}
@@ -8,31 +8,31 @@ import net.minecraft.item.Item;
*/
public interface ICarvingVariation {
/**
* The base block of this variation.
*
* @return A {@link Block} that is the base of this variation
*/
Block getBlock();
/**
* The base block of this variation.
*
* @return A {@link Block} that is the base of this variation
*/
Block getBlock();
/**
* The metadata of this variation
*
* @return An int representing the metadata of this variation's {@link Block} in the world.
*/
int getBlockMeta();
/**
* The metadata of this variation
*
* @return An int representing the metadata of this variation's {@link Block} in the world.
*/
int getBlockMeta();
/**
* The item metadata of this variation
*
* @return An int representing the metadata of this variations's {@link Item}.
*/
int getItemMeta();
/**
* The item metadata of this variation
*
* @return An int representing the metadata of this variations's {@link Item}.
*/
int getItemMeta();
/**
* The "order" of this variation. Represents its position in the list of variations held by a group.
*
* @return An integer to represent the position of this variation in the list of all variations in the group
*/
int getOrder();
/**
* The "order" of this variation. Represents its position in the list of variations held by a group.
*
* @return An integer to represent the position of this variation in the list of all variations in the group
*/
int getOrder();
}
@@ -6,15 +6,17 @@ import net.minecraftforge.common.util.ForgeDirection;
public interface IChiselMode {
/**
* NOTE: This method is responsible for increasing the "Blocks Chiseled" statistic found in the Statistics class.
*/
void chiselAll(EntityPlayer player, World world, int x, int y, int z, ForgeDirection side, ICarvingVariation variation);
/**
* NOTE: This method is responsible for increasing the "Blocks Chiseled" statistic found in the Statistics class.
*/
void chiselAll(EntityPlayer player, World world, int x, int y, int z, ForgeDirection side,
ICarvingVariation variation);
/**
* Implemented implicitly by enums. If your IChiselMode is not an enum constant, this needs to be implemented explicitly.
*
* @return The name of the mode.
*/
String name();
/**
* Implemented implicitly by enums. If your IChiselMode is not an enum constant, this needs to be implemented
* explicitly.
*
* @return The name of the mode.
*/
String name();
}
Loaded 100 of 493 files, more files were not shown because too many files have changed in this diff. Show more