Compare commits

...
84 Commits
Author SHA1 Message Date
Martin Robertz 5b42253d09 update 2025-05-30 20:36:24 +02:00
Martin Robertz 9ea9a2cffb Merge remote-tracking branch 'origin/registry-ordering' into dev 2025-05-30 20:35:47 +02:00
koolkrafter5 237972136d Sort item registration into a more sensible order for display in NEI. 2025-05-30 12:38:23 -04:00
koolkrafter5 49513bded7 Sort block registration into a more sensible order for display in NEI. 2025-05-30 10:46:34 -04:00
koolkrafter5 76526aa85d Formatting 2025-05-30 10:09:39 -04:00
koolkrafter5 5f91f7c008 Remove "'s" from Magician's and Archmage's blood orbs to match the other orbs (this is also how BM for versions like 1.12 has it) 2025-05-30 10:04:38 -04:00
koolkrafter5 3272a06671 Fix typos, mark Fluid Sigil and Sigil of the Assassin as unimplemented, clarify some achievements 2025-05-30 10:03:26 -04:00
koolkrafter5 6ace1a8bba Move "Armour" spelling to British English lang files 2025-05-30 09:53:12 -04:00
Abdiel Kavash 485e462a83 Allow the Orb of Armok to work from within a Blood Altar. (#89)
Adds a new method isFilledForFree to IBloodOrb which is false by default, but may be used by orbs like the Orb of Armok to be filled instantly by the Blood Altar.
2025-05-27 15:53:44 -04:00
koolkrafter5 47f5e1e594 Update Readme (#88) 2025-05-26 17:15:26 +02:00
Maya 1546426f30 update 2025-05-25 18:38:52 -06:00
koolkrafter5andMaya 4acfe14b78 Orchestra of the Phantom Hands Improvements (#85)
Co-authored-by: Maya <[email protected]>
2025-05-25 18:38:01 -06:00
Maya 86d7ea0370 update 2025-05-25 12:58:42 -06:00
koolkrafter5andMaya bbf0e2aeb2 Inscription Tools Refactor (#86)
Co-authored-by: Maya <[email protected]>
2025-05-25 18:53:25 +00:00
koolkrafter5 22f1bd3846 Add an Alchemic Calcinator handler for NEI (#87) 2025-05-25 12:50:55 -06:00
Maya 84545955aa update 2025-05-13 18:49:58 -05:00
koolkrafter5andMaya a6f1919f52 NEI Meteor Handler Revamp (#77)
Co-authored-by: Maya <[email protected]>
2025-05-13 18:49:06 -05:00
Martin Robertz 097c0c62e4 update 2025-05-11 12:58:32 +02:00
c04775398a Polishes Alchemic Calcinator & Belljars (#79)
Co-authored-by: Martin Robertz <[email protected]>
Co-authored-by: Maya <[email protected]>
Co-authored-by: koolkrafter5 <[email protected]>
2025-05-11 01:20:27 -04:00
Srdra 62789ce20b Lil fix for PR #83, shift down Purpura yet another tier (#84) 2025-05-10 10:50:29 -05:00
Srdra 8685e1fd72 Buff the Incenses in the Incense Crucible (#83) 2025-05-09 17:02:10 -05:00
koolkrafter5 6b016444ba Enable Jabel and Generic Injection (#82) 2025-05-07 23:49:37 -04:00
Maya 1552b81459 update 2025-05-07 11:05:13 -05:00
koolkrafter5 5e6c4e848c Migrate StructureLib Blood Altar handler from StructureCompat (#81) 2025-05-07 15:54:48 +00:00
koolkrafter5andMaya 9f2d0b5241 Big item refactor (#73)
Co-authored-by: Maya <[email protected]>
2025-05-07 15:43:45 +00:00
Martin Robertz e75e9f778a update 2025-05-04 12:50:51 +02:00
FourIsTheNumber 6bd083125a Add config to disable potion flask repairability (#80) 2025-05-01 09:33:46 +02:00
Martin Robertz 09fbb5574b update 2025-04-25 13:43:04 +02:00
Guillaume Mercier 559e2439b2 Remove Profanity (#78) 2025-04-25 14:50:10 +08:00
Martin Robertz ef17235ae5 update 2025-04-20 21:45:39 +02:00
ABKQPOandMaya efe1e6044a Fix Mark of the Falling Tower does not check item stack and does not immediately remove entities (#75)
Co-authored-by: Maya <[email protected]>
2025-04-19 14:38:37 +00:00
koolkrafter5andMaya 14a4825e33 More comma-separation (#74)
Co-authored-by: Maya <[email protected]>
2025-04-19 14:31:10 +00:00
koolkrafter5 f5791ff631 Fix rituals not working when doDaylightCycle is set to false. (#72) 2025-04-19 09:28:39 -05:00
Maya ead07b752b Show LP comma-separated with divination sigil (#71) 2025-04-09 01:23:09 -05:00
Maya d821098d4e update 2025-04-08 23:43:52 -05:00
koolkrafter5andMaya 8762c24331 Ritual of Speed bugfix and cleanup (#70)
Co-authored-by: Maya <[email protected]>
2025-04-09 04:42:00 +00:00
koolkrafter5andMaya a1f62e0db6 NEI Meteor Oredict Support (#69)
Co-authored-by: Maya <[email protected]>
2025-04-08 19:57:01 +00:00
koolkrafter5 242312bee5 Config to Allow Altar Components to be Any Block (#68) 2025-04-08 14:52:16 -05:00
Martin Robertz c0b4b797c8 update 2025-01-22 18:39:05 +01:00
koolkrafter5 bd584c6d52 New TypeAdapter for ItemStack (#67) 2025-01-21 23:59:50 -06:00
Martin Robertz ac50cfc691 update 2025-01-21 17:26:09 +01:00
koolkrafter5 7e607b4c58 Misc. interconnected meteor loose ends and code cleanup (#66) 2025-01-21 08:49:56 -06:00
koolkrafter5 e629d04310 GSON Hotfix (#65) 2025-01-18 17:11:06 -06:00
Martin Robertz 52b4415e8c update 2025-01-18 22:28:14 +01:00
koolkrafter5andMartin Robertz 3f9641b861 Make meteor reagents completely configurable and add some new options to their functionality. (#63)
Co-authored-by: Martin Robertz <[email protected]>
2025-01-18 08:04:42 +01:00
Martin Robertz 1fd6ac323b update 2025-01-17 12:08:59 +01:00
Ruling-0 38f2dbb395 Fix ability to int overflow when adding to LP network (#64) 2025-01-17 05:37:09 +00:00
Martin Robertz 84e41cc920 update 2024-12-30 20:23:52 +01:00
glowredman 5bfdabb5f6 Add Localizations (#62) 2024-12-30 12:01:57 -06:00
Maya 2e95450cf0 update 2024-11-23 07:53:02 -06:00
Martin Robertz 8ff0421f55 update 2024-11-22 20:59:50 +01:00
koolkrafter5 ba0a0e3357 Readd Meteor Filler (#60) 2024-11-22 17:38:56 +01:00
FabbozandMartin Robertz 222ad1645e LP Hud fix (#59)
* LP Hud fix

* fix lpHud 2

* Add files via upload

* sa

* update deps

---------

Co-authored-by: Martin Robertz <[email protected]>
2024-10-20 12:08:50 +02:00
Alexdoru 7b48d96988 make static final fields of RitualEffectWellOfSuffering public (#58) 2024-09-13 21:11:38 +02:00
Martin Robertz baa2336b58 update 2024-09-06 23:08:27 +02:00
Jason Mitchell 1341be8f49 Make waila optional (#56)
* Make waila optional
2024-09-06 16:20:45 +00:00
NotAPenguin 89eaa78e51 update gt and fix name (#55) 2024-09-03 11:50:50 +02:00
Lyfts a7d6f8e59b Fix teleposer unable to teleport to the end (#54)
* update deps

* fix teleposer unable to teleport to the end
2024-05-19 12:51:13 +02:00
Martin Robertz 6c18cd1bee update 2024-05-10 11:20:30 +02:00
LyftsGitHub GTNH Actionsgithub-actions[bot]
fcddb56254 Fix client-side crash on servers (#52)
* update deps

* fix client crash on servers

* spotlessApply (#53)

Co-authored-by: GitHub GTNH Actions <>

---------

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2024-05-10 09:36:17 +02:00
Martin Robertz 4a185d64cb update 2024-05-03 19:45:10 +02:00
Guillaume Mercier e14b1f23c9 Add new rune to reduce the delay between crafts (#51)
* add layout.json to gitignore

* Add quickness rune

This rune reduces the delay between consecutive crafts. This is done by essentially scheduling a recipe check every time a recipe completes. Using something like a world accelerator will have no effect on the frequency and the runes themselves do not increase the frequency at which the altar naturally checks for updates.

This commit also addresses a couple other issues with the altar.
- since the altar was using the world time and not the world age, some mechanics were impossible to trigger if you set doDaylightCycle to false.
- For example it was impossible to start a craft if the time wasn't set to a multiple of 100.
2024-05-03 07:09:58 +02:00
Martin Robertz 0b70f3ed51 update 2024-03-25 18:08:13 +01:00
Abdiel Kavash 1c8ceacb7f New formats for meteor config file. (#50) 2024-03-25 16:12:09 +01:00
Raven Szewczyk 3037e0f583 [ci skip] upgraded build system 2024-02-04 19:57:12 +00:00
Martin Robertz 269eff14d3 update bs+deps 2024-01-21 20:31:44 +01:00
Abdiel KavashandMartin Robertz ff2f889c76 Ritual of Gaia's Transformation fixes. (#49)
* Added server->client notification of biome change.

* Fix floating point inaccuracy.

* Replaced inefficient search algorithm.

* Move structure initialization out of a loop. Oops.

* update bs+deps+gardle

* fix wci

* one more

* Always send full 32 bytes with every message.

---------

Co-authored-by: Martin Robertz <[email protected]>
2024-01-21 20:30:57 +01:00
Martin Robertz 3218730853 update deps+bs 2024-01-11 22:58:42 +01:00
Raven Szewczyk e5662ec707 [ci skip] upgraded build system 2024-01-08 21:24:16 +00:00
miozune 6376f78aa5 Fix tooltip for meteor NEI (#48)
* updateBuildScript

* Update dependencies

* Fix warning with AT

* Fix tooltip for meteor NEI
2023-08-08 10:05:01 +02:00
Raven Szewczyk 581d497c9b Only use GTNH CT APIs when GTNH CraftTweaker is present (#46)
* Update buildscript&dependencies

* Only use GTNH CT APIs when GTNH CraftTweaker is present

* Clean up post-rfg migration

* Add warning to the log
2023-07-04 22:11:37 +01:00
Martin Robertz 480e168dc8 bs+sa 2023-04-28 19:35:28 +02:00
chochemandAlastors 748552a3a5 Remove blood frame from BM (reinvented in magic bees) (#45)
* disable blood frame recipe

* Nuking the Blood Frame

* bs+sa

---------

Co-authored-by: Alastors <[email protected]>
2023-04-28 19:29:25 +02:00
Martin Robertz 6d64513e59 Update dependencies.gradle 2023-04-10 18:36:50 +02:00
Martin Robertz 8232130bb2 Update dependencies.gradle 2023-04-10 18:30:35 +02:00
Raphael 3794eaa8bd fix wrong biomeID (#44) 2023-04-10 18:22:16 +02:00
Jason Mitchell b0c07ebfc6 Add waila support (#42)
* Remove pneumaticCraft API

* Add WAILA support.
* Mix of backport from 1.12 + I'm Looking At Blood mod (MIT)
2023-02-13 09:36:54 +01:00
Raven Szewczyk 33f1f1bfef [ci skip] upgraded build system 2023-01-31 09:51:29 +00:00
Raven Szewczyk e36bbb3db3 [ci skip] Add git-blame-ignore-revs for spotlessApply 2023-01-29 10:10:40 +00:00
Raven Szewczyk 202b7ce27a [ci skip] spotlessApply with the new settings 2023-01-29 10:10:39 +00:00
Raven Szewczyk 1cbe6e860c [ci skip] Update buildscript to RetroFuturaGradle 2023-01-29 10:10:34 +00:00
Martin Robertz 1ff37c0e3d Update dependencies.gradle 2023-01-25 22:47:12 +01:00
Raven Szewczyk 045c1ba13a Java 12 compat: don't resize the potion array if already big enough. (#41)
The actual compatible resizing is done in Hodgepodge.
2023-01-25 22:27:27 +01:00
Jason Mitchell 6de78aaa6b be less restrictive; also kill jitpack (#40) 2023-01-15 22:29:24 +01:00
838 changed files with 15785 additions and 15952 deletions

No files matched your search

+2
View File
@@ -0,0 +1,2 @@
# Ignore spotlessApply reformat
202b7ce27a171082d654acd37ce4bdb0893d27b5
-27
View File
@@ -1,27 +0,0 @@
if [[ -d "run/crash-reports" ]]; then
echo "Crash reports detected:"
cat $directory/*
exit 1
fi
if grep --quiet "Fatal errors were detected" server.log; then
echo "Fatal errors detected:"
cat server.log
exit 1
fi
if grep --quiet "The state engine was in incorrect state ERRORED and forced into state SERVER_STOPPED" server.log; then
echo "Server force stopped:"
cat server.log
exit 1
fi
if grep --quiet 'Done .+ For help, type "help" or "?"' server.log; then
echo "Server didn't finish startup:"
cat server.log
exit 1
fi
echo "No crash reports detected"
exit 0
+1
View File
@@ -27,3 +27,4 @@ whitelist.json
*.iws
src/main/resources/mixins.*.json
*.bat
layout.json
+55 -61
View File
@@ -1,117 +1,111 @@
#Blood Magic: Alchemical Wizardry
# Blood Magic: Alchemical Wizardry
###Gruesome? Probably. Worth it? Definitely!
###[Downloads](http://minecraft.curseforge.com/mc-mods/224791-blood-magic/files)
### Gruesome? Probably. Worth it? Definitely!
##Information
## Fork
This mod was forked by the GT:NH Team to continue the development of the 1.7.10 branch.
## Information
Have you ever picked up a magic mod for Minecraft, and thought that it was too tame? Was there not enough danger involved when creating your next high-tech gadget? Bored with all of those peaceful animals just staring at you without a care in the world? Well then, I am glad you came here!
Blood Magic is an arcane art that is practiced by mages who attempt to gather a vast amount of power through utilizing a forbidden material: blood. Even though it does grant a huge amount of power, every single action that is performed with this volatile magic can prove deadly. You have been warned.
##Links
## Upstream Blood Magic Links
* Github: [Blood Magic](https://github.com/WayofTime/BloodMagic)
* Twitter: [@WayofTime](https://twitter.com/WayofTime)
* Wiki: Found at [FTBWiki](http://ftbwiki.org/Blood_Magic)
* Wiki: Found at [FTBWiki](http://ftbwiki.org/Blood_Magic). Most information is still relevant for this fork.
* [Minecraft Forum Thread](http://www.minecraftforum.net/forums/mapping-and-modding/minecraft-mods/1290532-bm)
* [Curseforge](http://minecraft.curseforge.com/mc-mods/224791-blood-magic)
* [Donate](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=J7SNY7L82PQ82)
* [CurseForge](https://www.curseforge.com/minecraft/mc-mods/blood-magic)
* [Donate to WayofTime on Paypal](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=J7SNY7L82PQ82)
* [Donate to WayofTime on Patreon](https://www.patreon.com/BloodMagic)
##Issue Reporting
## GT:NH Links
* Wiki: Hosted on [Miraheze](https://wiki.gtnewhorizons.com/wiki/Blood_Magic). Contains both fork-specific and pack-specific information. It is currently very incomplete, so feel free to contribute!
* [Discord](https://discord.gg/gtnh): Talk to other players about Blood Magic and any other mods present in GT:NH.
* [Releases](https://github.com/GTNewHorizons/BloodMagic/releases)
Please include the following:
## Issue Reporting
* Minecraft version
* Blood Magic version
* Forge version/build
* Versions of any mods potentially related to the issue
* Any relevant screenshots are greatly appreciated.
* For crashes:
* Steps to reproduce
* ForgeModLoader-client-0.log (the FML log) from the root folder of the client
**DO NOT** report issues encountered when running this fork to upstream. Report issues for this mod on [the GT:NH issue tracker](https://github.com/GTNewHorizons/GT-New-Horizons-Modpack/issues/new/choose).
##Development Setup
## Development Setup
1. Fork this project to your own Github repository and clone it to your desktop.
2. Navigate to the directory you cloned to. Open a command window there and run `gradlew setupDevWorkspace` then (if you use Eclipse) `gradlew eclipse` or (if you use IDEA) `gradlew idea`.
3. This process will setup [Forge](http://www.minecraftforge.net/forum/), your workspace, and link [MineTweaker](http://minetweaker3.powerofbytes.com/) as a dependency.
2. Navigate to the directory you cloned to. Open a command window there and run (if you use Eclipse) `gradlew eclipse` or (if you use IDEA) `gradlew idea`.
3. This process will setup [Forge](http://www.minecraftforge.net/forum/), your workspace, and all dependencies.
4. Open the project in your IDE of choice.
5. Set `../src/api/java` as a source directory.
[Setup video](https://www.youtube.com/watch?v=8VEdtQLuLO0&feature=youtu.be) by LexManos. For more information, refer to the [Forge Forums](http://www.minecraftforge.net/forum/index.php/topic,14048.0.html).
##Custom Builds
## Custom Builds
###Custom builds are unsupported. If you have an issue using a build not by me (WayofTime), it is not guaranteed that you will get support.
### Custom builds are unsupported. If you have an issue using a build not by GT:NH, it is not guaranteed that you will get support.
####How to make a custom build:
#### How to make a custom build:
1. Clone directly from this repository to your desktop.
2. Navigate to the directory you cloned to. Open a command window there and run `gradlew build`
3. Once it completes, your new build will be found at `../build/libs/BloodMagic-*.jar`. You can ignore the `deobf`, `sources`, and `javadoc` jars.
3. Once it completes, your new build will be found at `../build/libs/BloodMagic-*.jar`. You can ignore the `api`, `dev`, and `sources` jars.
##License
## License
![CCA4.0](https://licensebuttons.net/l/by/4.0/88x31.png)
Blood Magic: AlchemicalWizardry by WayofTime is licensed under a [Creative Commons Attribution 4.0 International License](http://creativecommons.org/licenses/by/4.0/).
Blood Magic: Alchemical Wizardry by WayofTime is licensed under a [Creative Commons Attribution 4.0 International License](http://creativecommons.org/licenses/by/4.0/).
##Installation Instructions
## Installation Instructions
This mod requires "Minecraft Forge" in order to operate. It is incredibly easy to download and set up, so might as well get to it!
This mod requires "Minecraft Forge" in order to operate. It is incredibly easy to download and set up, so you might as well get to it!
1. Download [Forge](http://files.minecraftforge.net/). Usually "Recommended" is best - you want the "universal", not the source. Forge also has an "install" option now, so all you need to do is launch that program and it will make a lovely Forge profile. If you haven't, look up how to use the installer and the new 1.6.x launcher if you are confused!
1. Download [Forge](https://files.minecraftforge.net/net/minecraftforge/forge/index_1.7.10.html). "Recommended" and "Latest" will both yield the same files. Download "Universal" to install it manually. Forge also has an "Installer" option, so all you need to do is launch that program and it will make a lovely Forge profile.
2. Download the latest version of Blood Magic from the [Releases Page](https://github.com/GTNewHorizons/BloodMagic/releases) (ignore versions that end with `-pre` if you are not looking to test in-development features).
3. Place the mod in the `.minecraft/mods` folder. If you use the official Minecraft launcher from Mojang, check [this page](https://minecraft.wiki/w/.minecraft) on the Minecraft Wiki to find it. If you use a different launcher, check its interface for a "Minecraft Folder" button, "View Mods" button, or something similar.
2. Download the latest version of BloodMagic from [Curseforge](http://minecraft.curseforge.com/mc-mods/224791-blood-magic).
## FAQ
3. Place the mod in the **mods** folder of your .minecraft. If you are unsure of where that is located, it is here: `../Users/you/AppData/roaming/.minecraft`.
**Q**: What has changed in the GT:NH fork compared to the final 1.7.10 version released by WayofTime?
##FAQ
**A**: Many things, including:
* Better configuration for meteors summoned by the Mark of the Falling Tower ritual. Run the mod once and check config/BloodMagic/meteors/README for a guide on how to edit the default ones and create your own. The old ModTweaker system should still work, but this new system is far more powerful and configurable for pack developers.
* [Buffs](https://github.com/GTNewHorizons/BloodMagic/pull/15) to various Blood Altar upgrade runes.
* The [Rune of Quickness](https://github.com/GTNewHorizons/BloodMagic/pull/51), a new rune which lowers the Blood Altar's delay between crafts.
* [Improvements](https://github.com/GTNewHorizons/BloodMagic/pull/85) to the Orchestra of the Phantom Hands.
* [Buffs](https://github.com/GTNewHorizons/BloodMagic/pull/83) to the Incense Crucible.
* NEI Handlers for the [Blood Altar's Structure](https://github.com/GTNewHorizons/BloodMagic/pull/81) (requires [StructureLib](https://github.com/GTNewHorizons/StructureLib) and [BlockRenderer6343](https://github.com/GTNewHorizons/BlockRenderer6343)), [Meteors](https://github.com/GTNewHorizons/BloodMagic/pull/17), and the [Alchemic Calcinator](https://github.com/GTNewHorizons/BloodMagic/pull/87).
* Configurable LP costs for many items and rituals.
* Many other bug fixes, new localizations, and quality of life improvements!
**Q**: My weak blood orb doesn't show my current LP! Fix it please.
**A**: The mechanic for viewing the player's essence has changed due to some issues with mechanics. You now need a Divination Sigil to view a player's essence. It does other things, too, so it is worth it!
**A**: You need a Divination Sigil to view your essence. It does other things, too, so it is worth it!
**Q**: Why am I dying so much?
**A**: It might be a good idea to make sure that you have enough essence to do a task. If you don't have enough essence for, say, an imperfect ritual, it will take it out of your health. If your health reaches 0... Well, you don't have to be a genius to see what would happen.
**A**: It might be a good idea to make sure that you have enough essence to do a task. If you don't have enough essence for, say, an imperfect ritual or a sigil, it will take it out of your health. If your health reaches 0... Well, you don't have to be a genius to see what would happen. Note that Rituals will only stop working and give you nausea, not kill you, so you don't have to worry about them quite as much.
**Q**: Waffles?
**A**: Waffles!
**Q**: Where is x? When I watched spotlight "w," it had an item called x. Don't you need x to make y, before you can create z?
**Q**: Where is x? When I watched spotlight "w", it had an item called x. Don't you need x to make y, before you can create z?
**A**: It might be wise to look at an updated spotlight, or check the changelogs. I'm not evil, so I do document everything that I can. There was most likely some issues with balance with the item, so it may have been removed for those reasons. Or you just grabbed the item from NEI without seeing it was a test item, in which case: shame on you!
**A**: It might be wise to look at a spotlight made for 1.7.10 (especially one for GT:NH), or check the changelogs. Versions of Blood Magic for more recent versions of Minecraft have some very different mechanics, which are not present in this version of the mod.
**Q**: Isn't that armour ...
**A**: Yes, the armour texture is from the mod EE2. Pahimar and I are good friends, and I decided to use it for the armour and tools. He has given me his express permission for it, so need not worry!
[Proof](https://twitter.com/Pahimar/status/453590600689139712).
**A**: Yes, the bound armour and tool textures are from the mod EE2. Pahimar and WayofTime are good friends, and Pahimar has given his express permission for it, so need not worry!
[Proof](https://twitter.com/Pahimar/status/453590600689139712), [Archive](https://web.archive.org/web/20191208030719/https://twitter.com/Pahimar/status/453590600689139712).
**Q**: My game is crashing with the latest TC4!
**Q**: I've just had an amazing idea! Why not add an in-game book just like the Thaumonomicon?
**A**: To help stop this, remove the TC4 API from my Blood Magic zip file (if it is there). It should solve things.
**Q**: But, my Thaumcraft aspects are messed up!
**A**: Once again, remove the TC4 API from the Blood Magic zip file to solve this. Azanor changed some aspect combinations.
**Q**: When will 1.7.2 be released?
**A**: It's out! Go get it!
**Q**: Way, I've just had an amazing idea! Why not add an in-game book just like the Thaumonomicon?
**A**: This has been suggested several times. It I being worked on, and is proceeding quite well. Some framework needs to be completed, but it isn't a priority - ALL of the information you need is on this post, or online.
**A**: The Sanguine Scientiem can be created by dropping a Mail Order Catalogue (craftable with [Guide-API](https://www.curseforge.com/minecraft/mc-mods/guide-api) installed). Some of the formatting is off, and it has not been updated with all the information specific to this fork, so readers beware.
**Q**: Why do I not have a Sacrificial Orb? It's only showing up as a knife!
**A**: This is a config option. The person you saw with an orb had a config that changed the knife to an orb. The orb and knife function exactly the same way, but you can change it in the configs by looking for the "Idontlikefun" option.
**A**: This is a config option. The person you saw with an orb had a config that changed the knife to an orb. The orb and knife function exactly the same way, but you can change the way it looks in the configs by looking for the "IDontLikeFun" option.
**Q**: When I respawn, I come back with the "Soul Fray" potion effect and I don't create as much LP with the Sacrificial Dagger/Orb. What's happening?
**Q**: When I respawn, I appear to only come back with 3 hearts. What's happening?
**A**: This is due to another config option in the "WhimpySettings," which is due to my attempt to combat Zerg Rushing. You can disable this if you really want to, but it shouldn't hurt unduly.
**A**: This is due to the config option "RespawnWithDebuff", which was made to combat Zerg Rushing. Instead of dying and respawning again and again, why not look into making an [Incense Crucible](https://ftbwiki.org/Incense_Crucible) to boost the LP from your self-sacrifices, brewing a [refillable healing potion](https://ftbwiki.org/Potion_Flask_(Blood_Magic)) with the Alchemic Chemistry Set, or finding some villagers to show your [Dagger of Sacrifice](https://ftbwiki.org/Dagger_of_Sacrifice) to?
+2 -1118
View File
File diff suppressed because it is too large. Load diff
+39 -35
View File
@@ -1,40 +1,44 @@
// Add your dependencies here
/*
* Add your dependencies here. Supported configurations:
* - api("group:name:version:classifier"): if you use the types from this dependency in the public API of this mod
* Available at runtime and compiletime for mods depending on this mod
* - implementation("g:n:v:c"): if you need this for internal implementation details of the mod, but none of it is visible via the public API
* Available at runtime but not compiletime for mods depending on this mod
* - compileOnly("g:n:v:c"): if the mod you're building doesn't need this dependency during runtime at all, e.g. for optional mods
* Not available at all for mods depending on this mod, only visible at compiletime for this mod
* - runtimeOnly("g:n:v:c"): if you don't need this at compile time, but want it to be present at runtime
* Available at runtime for mods depending on this mod
* - annotationProcessor("g:n:v:c"): mostly for java compiler plugins, if you know you need this, use it, otherwise don't worry
* - testCONFIG("g:n:v:c") - replace CONFIG by one of the above (except api), same as above but for the test sources instead of main
*
* - shadowImplementation("g:n:v:c"): effectively the same as API, but the dependency is included in your jar under a renamed package name
* Requires you to enable usesShadowedDependencies in gradle.properties
*
* - compile("g:n:v:c"): deprecated, replace with "api" (works like the old "compile") or "implementation" (can be more efficient)
*
* You can exclude transitive dependencies (dependencies of the chosen dependency) by appending { transitive = false } if needed,
* but use this sparingly as it can break using your mod as another mod's dependency if you're not careful.
*
* For more details, see https://docs.gradle.org/7.6/userguide/java_library_plugin.html#sec:java_library_configurations_graph
*/
dependencies {
api("com.github.GTNewHorizons:waila:1.8.7:dev")
api("com.github.GTNewHorizons:NotEnoughItems:2.7.49-GTNH:dev")
compileOnly("com.github.GTNewHorizons:GT5-Unofficial:5.09.40.31:dev") {
transitive = false
}
compileOnly("com.github.GTNewHorizons:Botania:1.9.5-GTNH:api") {
transitive = false
}
compileOnly("com.github.GTNewHorizons:ForestryMC:4.4.4:api") {
transitive = false
}
compileOnly("com.github.GTNewHorizons:ForgeMultipart:1.2.7:dev") {
transitive = false
}
compile("com.github.GTNewHorizons:CodeChickenLib:1.1.5.7:dev")
compileOnly("com.github.GTNewHorizons:NotEnoughItems:2.3.20-GTNH:dev") {
transitive = false
}
compileOnly("com.github.GTNewHorizons:Chisel:2.10.6-GTNH:api") {
transitive = false
}
compileOnly("com.github.GTNewHorizons:ZenScript:1.0.0-GTNH") {
transitive = false
}
compileOnly("com.github.GTNewHorizons:CraftTweaker:3.2.6:dev") {
transitive = false
}
compileOnly("com.github.GTNewHorizons:GT5-Unofficial:5.09.51.324:dev") {transitive = false }
compileOnly("thaumcraft:Thaumcraft:1.7.10-4.2.3.5:dev") {
transitive = false
}
compileOnly("curse.maven:guide-api-228832:2287185") {
transitive = false
}
compileOnly("com.github.GTNewHorizons:Botania:1.12.10-GTNH:api") {transitive = false }
compileOnly("com.github.GTNewHorizons:ForestryMC:4.10.10:api") {transitive = false }
compileOnly("com.github.GTNewHorizons:ForgeMultipart:1.6.3:dev") {transitive = false }
compileOnly("com.github.GTNewHorizons:Chisel:2.16.4-GTNH:api") {transitive = false }
compileOnly("com.github.GTNewHorizons:ZenScript:1.0.0-GTNH") {transitive = false }
compileOnly("com.github.GTNewHorizons:CraftTweaker:3.4.2:dev") {transitive = false }
compileOnly("thaumcraft:Thaumcraft:1.7.10-4.2.3.5:dev") {transitive = false }
compileOnly("curse.maven:guide-api-228832:2287185") {transitive = false }
compileOnly("com.github.GTNewHorizons:StructureLib:1.4.10:dev")
}
+167 -28
View File
@@ -1,64 +1,203 @@
modName = Blood Magic: Alchemical Wizardry
# ExampleMod tag to use as Blowdryer (Spotless, etc.) settings version, leave empty to disable.
# LOCAL to test local config updates.
gtnh.settings.blowdryerTag = 0.2.0
# This is a case-sensitive string to identify your mod. Convention is to use lower case.
# Human-readable mod name, available for mcmod.info population.
modName = Blood Magic\: Alchemical Wizardry
# Case-sensitive identifier string, available for mcmod.info population and used for automatic mixin JSON generation.
# Conventionally lowercase.
modId = AWWayofTime
# Root package of the mod, used to find various classes in other properties,
# mcmod.info substitution, enabling assertions in run tasks, etc.
modGroup = WayofTime.alchemicalWizardry
# 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/
# Whether to use modGroup as the maven publishing group.
# When false, com.github.GTNewHorizons is used.
useModGroupForPublishing = false
# Will update your build.gradle automatically whenever an update is available
# Updates your build.gradle and settings.gradle automatically whenever an update is available.
autoUpdateBuildScript = false
# Version of Minecraft to target
minecraftVersion = 1.7.10
# Version of Minecraft Forge to target
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"
# Specify an MCP channel for dependency deobfuscation and the deobfParams task.
channel = stable
# 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 = AlchemicalWizardry.java
# Specify an MCP mappings version for dependency deobfuscation and the deobfParams task.
mappingsVersion = 12
# Defines other MCP mappings for dependency deobfuscation.
remoteMappings = https\://raw.githubusercontent.com/MinecraftForge/FML/1.7.10/conf/
# Select a default username for testing your mod. You can always override this per-run by running
# `./gradlew runClient --username=AnotherPlayer`, or configuring this command in your IDE.
developmentEnvironmentUserName = Developer
# Enables using modern Java syntax (up to version 17) via Jabel, while still targeting JVM 8.
# See https://github.com/bsideup/jabel for details on how this works.
enableModernJavaSyntax = true
# Enables injecting missing generics into the decompiled source code for a better coding experience.
# Turns most publicly visible List, Map, etc. into proper List<E>, Map<K, V> types.
enableGenericInjection = true
# Generate a class with a String field for the mod version named as defined below.
# If generateGradleTokenClass is empty or not missing, no such class will be generated.
# If gradleTokenVersion is empty or missing, the field will not be present in the class.
generateGradleTokenClass = WayofTime.alchemicalWizardry.Tags
# Name of the token containing the project's current version to generate/replace.
gradleTokenVersion = VERSION
# [DEPRECATED] Mod ID replacement token.
gradleTokenModId =
# [DEPRECATED] Mod name replacement token.
gradleTokenModName =
gradleTokenVersion = GRADLETOKEN_VERSION
# [DEPRECATED] Mod Group replacement token.
gradleTokenGroupName =
# In case your mod provides an API for other mods to implement you may declare its package here. Otherwise you can
# [DEPRECATED]
# Multiple source files can be defined here by providing a comma-separated list: Class1.java,Class2.java,Class3.java
# public static final String VERSION = "GRADLETOKEN_VERSION";
# The string's content will be replaced with your mod's 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 =
# 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
# 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 =
# Specify the configuration file for Forge's access transformers here. It must be placed into /src/main/resources/META-INF/
# There can be multiple files in a space-separated list.
# Example value: mymodid_at.cfg nei_at.cfg
accessTransformersFile = NEI_at.cfg
# Provides setup for Mixins if enabled. If you don't know what mixins are: Keep it disabled!
usesMixins = false
# Set to a non-empty string to configure mixins in a separate source set under src/VALUE, instead of src/main.
# This can speed up compile times thanks to not running the mixin annotation processor on all input sources.
# Mixin classes will have access to "main" classes, but not the other way around.
separateMixinSourceSet =
# Adds some debug arguments like verbose output and class export.
usesMixinDebug = 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
# This parameter is for legacy compatibility 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.
# Enables Mixins even if this mod doesn't use them, useful if one of the dependencies uses mixins.
forceEnableMixins = false
# If enabled, you may use 'shadowCompile' for dependencies. They will be integrated into your jar. It is your
# responsibility to check the license and request permission for distribution if required.
usesShadowedDependencies = false
# Optional parameter to customize the produced artifacts. Use this to preserver artifact naming when migrating older
# If disabled, won't remove unused classes from shadowed dependencies. Some libraries use reflection to access
# their own classes, making the minimization unreliable.
minimizeShadowedDependencies = true
# If disabled, won't rename the shadowed classes.
relocateShadowedDependencies = true
# Adds CurseMaven, Modrinth, and some more well-known 1.7.10 repositories.
includeWellKnownRepositories = true
# A list of repositories to exclude from the includeWellKnownRepositories setting. Should be a space separated
# list of strings, with the acceptable keys being(case does not matter):
# cursemaven
# modrinth
excludeWellKnownRepositories =
# Change these to your Maven coordinates if you want to publish to a custom Maven repository instead of the default GTNH Maven.
# Authenticate with the MAVEN_USER and MAVEN_PASSWORD environment variables.
# If you need a more complex setup disable maven publishing here and add a publishing repository to addon.gradle.
usesMavenPublishing = true
# Maven repository to publish the mod to.
# mavenPublishUrl = https\://nexus.gtnewhorizons.com/repository/releases/
# Publishing to Modrinth requires you to set the MODRINTH_TOKEN environment variable to your current Modrinth API token.
#
# The project's ID on Modrinth. Can be either the slug or the ID.
# Leave this empty if you don't want to publish to Modrinth.
modrinthProjectId =
# The project's relations on Modrinth. You can use this to refer to other projects on Modrinth.
# Syntax: scope1-type1:name1;scope2-type2:name2;...
# Where scope can be one of [required, optional, incompatible, embedded],
# type can be one of [project, version],
# and the name is the Modrinth project or version slug/id of the other mod.
# Example: required-project:fplib;optional-project:gasstation;incompatible-project:gregtech
# Note: GTNH Mixins is automatically set as a required dependency if usesMixins = true
modrinthRelations =
# Publishing to CurseForge requires you to set the CURSEFORGE_TOKEN environment variable to one of your CurseForge API tokens.
#
# The project's numeric ID on CurseForge. You can find this in the About Project box.
# Leave this empty if you don't want to publish on CurseForge.
curseForgeProjectId =
# The project's relations on CurseForge. You can use this to refer to other projects on CurseForge.
# Syntax: type1:name1;type2:name2;...
# Where type can be one of [requiredDependency, embeddedLibrary, optionalDependency, tool, incompatible],
# and the name is the CurseForge project slug of the other mod.
# Example: requiredDependency:railcraft;embeddedLibrary:cofhlib;incompatible:buildcraft
# Note: UniMixins is automatically set as a required dependency if usesMixins = true.
curseForgeRelations =
# Optional parameter to customize the produced artifacts. Use this to preserve artifact naming when migrating older
# projects. New projects should not use this parameter.
customArchiveBaseName = BloodMagic
# Optional parameter to have the build automatically fail if an illegal version is used.
# This can be useful if you e.g. only want to allow versions in the form of '1.1.xxx'.
# The check is ONLY performed if the version is a git tag.
# Note: the specified string must be escaped, so e.g. 1\\.1\\.\\d+ instead of 1\.1\.\d+
# versionPattern =
# Uncomment to prevent the source code from being published.
# noPublishedSources = true
# Uncomment this to disable Spotless checks.
# This should only be uncommented to keep it easier to sync with upstream/other forks.
# That is, if there is no other active fork/upstream, NEVER change this.
# disableSpotless = true
# Uncomment this to disable Checkstyle checks (currently wildcard import check).
disableCheckstyle = true
# Override the IDEA build type. Valid values are: "" (leave blank, do not override), "idea" (force use native IDEA build), "gradle"
# (force use delegated build).
# This is meant to be set in $HOME/.gradle/gradle.properties.
# e.g. add "systemProp.org.gradle.project.ideaOverrideBuildType=idea" will override the build type to be native build.
# WARNING: If you do use this option, it will overwrite whatever you have in your existing projects. This might not be what you want!
# Usually there is no need to uncomment this here as other developers do not necessarily use the same build type as you.
# ideaOverrideBuildType = idea
# Whether IDEA should run spotless checks when pressing the Build button.
# This is meant to be set in $HOME/.gradle/gradle.properties.
# ideaCheckSpotlessOnBuild = true
Binary file not shown.
+3 -1
View File
@@ -1,5 +1,7 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-6.9.1-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.13-bin.zip
networkTimeout=10000
validateDistributionUrl=true
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
Vendored
+180 -117
View File
@@ -1,7 +1,7 @@
#!/usr/bin/env sh
#!/bin/sh
#
# Copyright 2015 the original author or authors.
# 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.
@@ -15,80 +15,115 @@
# See the License for the specific language governing permissions and
# limitations under the License.
#
# SPDX-License-Identifier: Apache-2.0
#
##############################################################################
##
## 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/platforms/jvm/plugins-application/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt
# within the Gradle project.
#
# You can find Gradle at https://github.com/gradle/gradle/.
#
##############################################################################
# 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
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
SAVED="`pwd`"
cd "`dirname \"$PRG\"`/" >/dev/null
APP_HOME="`pwd -P`"
cd "$SAVED" >/dev/null
APP_NAME="Gradle"
APP_BASE_NAME=`basename "$0"`
# 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"'
# This is normally unused
# shellcheck disable=SC2034
APP_BASE_NAME=${0##*/}
# Discard cd standard output in case $CDPATH is set (https://github.com/gradle/gradle/issues/25036)
APP_HOME=$( cd -P "${APP_HOME:-./}" > /dev/null && printf '%s\n' "$PWD" ) || exit
# Use the maximum available, or set MAX_FD != -1 to use that value.
MAX_FD="maximum"
MAX_FD=maximum
warn () {
echo "$*"
}
} >&2
die () {
echo
echo "$*"
echo
exit 1
}
} >&2
# OS specific support (must be 'true' or 'false').
cygwin=false
msys=false
darwin=false
nonstop=false
case "`uname`" in
CYGWIN* )
cygwin=true
;;
Darwin* )
darwin=true
;;
MINGW* )
msys=true
;;
NONSTOP* )
nonstop=true
;;
case "$( uname )" in #(
CYGWIN* ) cygwin=true ;; #(
Darwin* ) darwin=true ;; #(
MSYS* | MINGW* ) msys=true ;; #(
NONSTOP* ) nonstop=true ;;
esac
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
@@ -97,92 +132,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" -a "$nonstop" = "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 or MSYS, switch paths to Windows format before running java
if [ "$cygwin" = "true" -o "$msys" = "true" ] ; then
APP_HOME=`cygpath --path --mixed "$APP_HOME"`
CLASSPATH=`cygpath --path --mixed "$CLASSPATH"`
JAVACMD=`cygpath --unix "$JAVACMD"`
# 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=SC2039,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=SC2039,SC3045
ulimit -n "$MAX_FD" ||
warn "Could not set maximum file descriptor limit to $MAX_FD"
esac
fi
# Escape application args
save () {
for i do printf %s\\n "$i" | sed "s/'/'\\\\''/g;1s/^/'/;\$s/\$/' \\\\/" ; done
echo " "
}
APP_ARGS=$(save "$@")
# 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.
# Collect all arguments for the java command, following the shell quoting and substitution rules
eval set -- $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS "\"-Dorg.gradle.appname=$APP_BASE_NAME\"" -classpath "\"$CLASSPATH\"" org.gradle.wrapper.GradleWrapperMain "$APP_ARGS"
# 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" )
# by default we should be in the correct project dir, but when run from Finder on Mac, the cwd is wrong
if [ "$(uname)" = "Darwin" ] && [ "$HOME" = "$PWD" ]; then
cd "$(dirname "$0")"
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 optsEnvironmentVar are not allowed to contain shell fragments,
# and any embedded shellness will be escaped.
# * For example: A user cannot expect ${Hostname} to be expanded, as it is an environment variable and will be
# treated as '${Hostname}' itself on the command line.
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
+27 -33
View File
@@ -13,8 +13,10 @@
@rem See the License for the specific language governing permissions and
@rem limitations under the License.
@rem
@rem SPDX-License-Identifier: Apache-2.0
@rem
@if "%DEBUG%" == "" @echo off
@if "%DEBUG%"=="" @echo off
@rem ##########################################################################
@rem
@rem Gradle startup script for Windows
@@ -25,10 +27,14 @@
if "%OS%"=="Windows_NT" setlocal
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"
@@ -37,13 +43,13 @@ 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.
echo.
echo Please set the JAVA_HOME variable in your environment to match the
echo location of your Java installation.
echo. 1>&2
echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. 1>&2
echo. 1>&2
echo Please set the JAVA_HOME variable in your environment to match the 1>&2
echo location of your Java installation. 1>&2
goto fail
@@ -51,48 +57,36 @@ 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%
echo.
echo Please set the JAVA_HOME variable in your environment to match the
echo location of your Java installation.
echo. 1>&2
echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% 1>&2
echo. 1>&2
echo Please set the JAVA_HOME variable in your environment to match the 1>&2
echo location of your Java installation. 1>&2
goto fail
:init
@rem Get command-line arguments, handling Windows variants
if not "%OS%" == "Windows_NT" goto win9xME_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=%*
: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
-10
View File
@@ -1,14 +1,4 @@
// Add any additional repositories for your dependencies here
repositories {
maven {
name = "GTNH Maven"
url = "http://jenkins.usrv.eu:8081/nexus/content/groups/public/"
}
maven {
url "https://cursemaven.com"
}
maven {
url = "https://jitpack.io"
}
}
+19 -6
View File
@@ -1,10 +1,23 @@
pluginManagement {
repositories {
maven {
// RetroFuturaGradle
name "GTNH Maven"
url "https://nexus.gtnewhorizons.com/repository/public/"
mavenContent {
includeGroup("com.gtnewhorizons")
includeGroupByRegex("com\\.gtnewhorizons\\..+")
}
}
gradlePluginPortal()
mavenCentral()
mavenLocal()
}
}
plugins {
id 'com.diffplug.blowdryerSetup' version '1.6.0'
id 'com.gtnewhorizons.gtnhsettingsconvention' version '1.0.38'
}
apply plugin: 'com.diffplug.blowdryerSetup'
blowdryerSetup {
github('GTNewHorizons/ExampleMod1.7.10', 'tag', '0.1.5')
//devLocal '.' // Use this when testing config updates locally
}
@@ -1,76 +0,0 @@
package pneumaticCraft.api;
import net.minecraft.nbt.NBTTagCompound;
import net.minecraft.world.World;
import net.minecraftforge.common.util.ForgeDirection;
/**
* DO NOT IMPLEMENT THIS CLASS YOURSELF! Use PneumaticRegistry.getInstance().getHeatExchangerLogic() !
* @author MineMaarten
* www.minemaarten.com
*/
public interface IHeatExchangerLogic {
/**
* Call this to tick this logic, and make the heat disperse itself.
*/
public void update();
/**
* When called (preferably on tile entity load and neighbor block/tile entity change) this will add all IHeatExchanger neighbor TileEntities as connected heat exchangers.
* It will also take care of blocks like Lava.
*
* You don't _have_ to call this method, if this heat exchanger is not connected to the outside world (for example the heat of the liquid
* plastic in the Plastic Mixer).
* @param world
* @param x
* @param y
* @param z
* @param validSides Can be left out as vararg, meaning every side can be connected. When one or more sides are specified this will constrain
* this heat exchanger to only connect to other heat exchangers on these sides.
*/
public void initializeAsHull(World world, int x, int y, int z, ForgeDirection... validSides);
/**
* When called, this will connect these two heat exchangers. You should only call this on one of the two heat exchangers.
* @param exchanger
*/
public void addConnectedExchanger(IHeatExchangerLogic exchanger);
public void removeConnectedExchanger(IHeatExchangerLogic exchanger);
/**
* A heat exchanger starts with 295 degrees Kelvin (20 degrees Celcius) by default.
* @param temperature in degrees Kelvin
*/
public void setTemperature(double temperature);
public double getTemperature();
/**
* The higher the thermal resistance, the slower the heat disperses.
* @param thermalResistance By default it's 1.
*/
public void setThermalResistance(double thermalResistance);
public double getThermalResistance();
/**
* The higher the capacity, the more heat can be 'stored'. This means that an object with a high capacity can heat up an object with a lower
* capacity without losing any significant amount of temperature.
* @param capacity
*/
public void setThermalCapacity(double capacity);
public double getThermalCapacity();
public void writeToNBT(NBTTagCompound tag);
public void readFromNBT(NBTTagCompound tag);
/**
* Adds heat (= deltaT * Thermal Capacity) to this exchanger. negative values will remove heat.
* @param amount
*/
public void addHeat(double amount);
}
@@ -1,157 +0,0 @@
package pneumaticCraft.api;
import java.util.List;
import net.minecraft.block.Block;
import net.minecraft.entity.Entity;
import net.minecraft.entity.EntityCreature;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.item.ItemStack;
import net.minecraft.world.World;
import net.minecraftforge.fluids.Fluid;
import pneumaticCraft.api.client.pneumaticHelmet.IBlockTrackEntry;
import pneumaticCraft.api.client.pneumaticHelmet.IEntityTrackEntry;
import pneumaticCraft.api.client.pneumaticHelmet.IHackableBlock;
import pneumaticCraft.api.client.pneumaticHelmet.IHackableEntity;
import pneumaticCraft.api.drone.ICustomBlockInteract;
import pneumaticCraft.api.drone.IPathfindHandler;
import pneumaticCraft.api.item.IInventoryItem;
/**
* This class can be used to register and access various things to and from the mod.
*/
public class PneumaticRegistry {
/**
* This field, which is initialized in PneumaticCraft's preInit, will give you access to various registration and access options.
* @deprecated This field isn't going to be removed, but it'll be marked private. use getInstance().
*/
@Deprecated
public static IPneumaticCraftInterface instance;
public static IPneumaticCraftInterface getInstance() {
return instance;
}
public static void init(IPneumaticCraftInterface inter) {
if (instance == null) instance = inter; // only allow initialization once; by PneumaticCraft
}
public static interface IPneumaticCraftInterface {
/*
* ------------- Pneumatic Helmet --------------
*/
public void registerEntityTrackEntry(Class<? extends IEntityTrackEntry> entry);
public void registerBlockTrackEntry(IBlockTrackEntry entry);
public void addHackable(Class<? extends Entity> entityClazz, Class<? extends IHackableEntity> iHackable);
public void addHackable(Block block, Class<? extends IHackableBlock> iHackable);
/**
* Returns a list of all current successful hacks of a given entity. This is used for example in Enderman hacking, so the user
* can only hack an enderman once (more times wouldn't have any effect). This is mostly used for display purposes.
* @param entity
* @return empty list if no hacks.
*/
public List<IHackableEntity> getCurrentEntityHacks(Entity entity);
/*
* ------------- Drones --------------
*/
/**
* Normally drones will pathfind through any block that doesn't have any collisions (Block#getBlocksMovement returns true).
* With this method you can register custom blocks to allow the drone to pathfind through them. If the block requires any special
* handling, like allow pathfinding on certain conditions, you can pass a IPathFindHandler with the registry.
* @param block
* @param handler can be null, to always allow pathfinding through this block.
*/
public void addPathfindableBlock(Block block, IPathfindHandler handler);
/**
* This will add a puzzle piece that has only a Area white- and blacklist parameter (similar to a GoTo piece).
* It will do the specified behaviour. This can be used to create energy import/export widgets.
* @param interactor
*/
public void registerCustomBlockInteractor(ICustomBlockInteract interactor);
/**
* Will spawn in a Drone a distance away from the given coordinate. The drone is programmed to travel to go to 5 blocks above the specified
* y level, and drop the deliveredStacks. When there isn't a clear path for the items to fall these 5 blocks the Drone will deliver at a
* y level above the specified y that _is_ clear. If no clear blocks can be found (when there are only solid blocks), the Drone will
* drop the items very high up in the air instead, and drop them there.
*
* When the Drone is tried to be catched by a player (by wrenching it), the drone will only the drop the items that it was delivering (or
* none if it dropped those items already). The Drone itself never will be dropped.
*
* @param x
* @param y
* @param z
* @param deliveredStacks stacks that are delivered by the drone. When no stacks, or more than 65 stacks are given, this will generate a IllegalArgumentException.
* @return the drone. You can use this to set a custom name for example (defaults to "Amazon Delivery Drone").
*/
public EntityCreature deliverItemsAmazonStyle(World world, int x, int y, int z, ItemStack... deliveredStacks);
/*
* --------------- Items -------------------
*/
/**
* See {@link pneumaticCraft.api.item.IInventoryItem}
* @param handler
*/
public void registerInventoryItem(IInventoryItem handler);
/*
* ----------------- Heat System --------------
*/
public IHeatExchangerLogic getHeatExchangerLogic();
public void registerBlockExchanger(Block block, double temperature, double thermalResistance);
/*
* ---------------- Power Generation -----------
*/
/**
* Adds a burnable liquid to the Liquid Compressor's available burnable fuels.
* @param fluid
* @param mLPerBucket the amount of mL generated for 1000mB of the fuel. As comparison, one piece of coal generates 16000mL in an Air Compressor.
*/
public void registerFuel(Fluid fluid, int mLPerBucket);
/*
* --------------- Misc -------------------
*/
/**
* Returns the amount of Security Stations that disallow interaction with the given coordinate for the given player.
* Usually you'd disallow interaction when this returns > 0.
* @param world
* @param x
* @param y
* @param z
* @param player
* @param showRangeLines When true, any Security Station that prevents interaction will show the line grid (server --> client update is handled internally).
* @return The amount of Security Stations that disallow interaction for the given player.
* This method throws an IllegalArgumentException when tried to be called from the client side!
*/
public int getProtectingSecurityStations(
World world, int x, int y, int z, EntityPlayer player, boolean showRangeLines);
/**
* Use this to register ISimpleBlockRenderHandler render id's of full blocks, those of which should be able to be used for the Pneumatic Door Base camouflage.
* @param id
*/
public void registerConcealableRenderId(int id);
/**
* Used to register a liquid that represents liquid XP (like MFR mob essence, OpenBlocks liquid XP).
* This is used in the Aerial Interface to pump XP in/out of the player.
* @param fluid
* @param liquidToPointRatio The amount of liquid (in mB) used to get one XP point. In OpenBlocks this is 20 (mB/point).
*/
public void registerXPLiquid(Fluid fluid, int liquidToPointRatio);
}
}
@@ -1,31 +0,0 @@
package pneumaticCraft.api.actuator;
import java.util.List;
import net.minecraft.tileentity.TileEntity;
public interface IActuator {
/**
* Same as {@link pneumaticCraft.api.universalSensor.ISensorSetting#getSensorPath()}
* @return
*/
public String getSensorPath();
/**
* When returned true, the GUI will enable the textbox writing, otherwise not.
* @return
*/
public boolean needsTextBox();
/**
* Should return the description of this sensor displayed in the GUI stat. Information should at least include
* when this sensor emits redstone and how (analog (1 through 15), or digital).
* @return
*/
public List<String> getDescription();
/**
*
* @param universalActuator
*/
public void actuate(TileEntity universalActuator);
}
@@ -1,77 +0,0 @@
package pneumaticCraft.api.block;
import cpw.mods.fml.common.registry.GameRegistry;
import net.minecraft.block.Block;
public class BlockSupplier {
// private static Class blockClass;
/**
* @param blockName
* @return
*/
public static Block getBlock(String blockName) {
return GameRegistry.findBlock("PneumaticCraft", blockName);
/*try {
if(blockClass == null) blockClass = Class.forName("pneumaticCraft.common.block.Blockss");
return (Block)blockClass.getField(blockName).get(null);
} catch(Exception e) {
System.err.println("[PneumaticCraft API] Block supply failed for block: " + blockName);
return null;
}*/
}
/*
The following is a list of all the block names that can be passed as argument in getBlock(String) to get a PneumaticCraft block.
pressureTube meta = tube type
airCompressor
airCannon
pressureChamberWall meta < 6 ? wall : window
pressureChamberValve
pressureChamberInterface
squidPlant
fireFlower
creeperPlant
slimePlant
rainPlant
enderPlant
lightningPlant
adrenalinePlant
burstPlant
potionPlant
repulsionPlant
heliumPlant
flyingFlower
musicPlant
propulsionPlant
chopperPlant
chargingStation
elevatorBase
elevatorFrame
vacuumPump
pneumaticDoorBase
pneumaticDoor
assemblyPlatform
assemblyIOUnit
assemblyDrill
assemblyLaser
assemblyController
advancedPressureTube meta = tube type (like 'pressureTube')
compressedIron
uvLightBox
etchingAcid
securityStation
universalSensor
pneumaticGenerator
electricCompressor
pneumaticEngine
kineticCompressor
aerialInterface
electrostaticCompressor
aphorismTile
omnidirectionalHopper
*/
}
@@ -1,14 +0,0 @@
package pneumaticCraft.api.block;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.world.World;
import net.minecraftforge.common.util.ForgeDirection;
/**
* Should be implemented by any block that allows to be rotated by a Pneumatic Wrench. It uses almost the same
* rotate method as the Vanilla (Forge) method. However it uses energy to rotate (when rotateBlock() return true).
*/
public interface IPneumaticWrenchable {
public boolean rotateBlock(World world, EntityPlayer player, int x, int y, int z, ForgeDirection side);
}
@@ -1,53 +0,0 @@
package pneumaticCraft.api.client;
import net.minecraft.client.gui.GuiScreen;
import net.minecraft.item.ItemStack;
/**
* With this class you can retrieve new instances of the PneumaticCraft's IGuiAnimatedStat implementation. You can use these in Gui's as
* well as anywhere you like. When you use these in Gui's you need to pass a valid GuiScreen instance, if you don't you can just pass
* null.
*/
public class GuiAnimatedStatSupplier {
private static Class animatedStatClass;
public static IGuiAnimatedStat getAnimatedStat(GuiScreen gui, int backgroundColor) {
return getAnimatedStat(new Class[] {GuiScreen.class, int.class}, gui, backgroundColor);
}
/**
* Returns a GuiAnimatedStat which uses an itemstack as static icon.
* @param gui
* @param iconStack
* @param backgroundColor
* @return
*/
public static IGuiAnimatedStat getAnimatedStat(GuiScreen gui, ItemStack iconStack, int backgroundColor) {
return getAnimatedStat(
new Class[] {GuiScreen.class, int.class, ItemStack.class}, gui, backgroundColor, iconStack);
}
/**
* Returns a GuiAnimatedStat which uses a texture location as static icon.
* @param gui
* @param iconTexture / text
* @param backgroundColor
* @return
*/
public static IGuiAnimatedStat getAnimatedStat(GuiScreen gui, String iconTexture, int backgroundColor) {
return getAnimatedStat(
new Class[] {GuiScreen.class, int.class, String.class}, gui, backgroundColor, iconTexture);
}
private static IGuiAnimatedStat getAnimatedStat(Class[] constructorClasses, Object... constructorParameters) {
try {
if (animatedStatClass == null)
animatedStatClass = Class.forName("pneumaticCraft.client.gui.widget.GuiAnimatedStat");
return (IGuiAnimatedStat)
animatedStatClass.getConstructor(constructorClasses).newInstance(constructorParameters);
} catch (Exception e) {
System.err.println("Failed to retrieve an GuiAnimatedStat instance from PneumaticCraft.");
}
return null;
}
}
@@ -1,61 +0,0 @@
package pneumaticCraft.api.client;
import java.lang.reflect.Method;
import net.minecraft.client.gui.FontRenderer;
public class GuiElementRenderer {
private static Method drawGaugeMethod;
/**
* Draws a Pressure Gauge, the same which is also used in many PneumaticCraft applications.
* @param fontRenderer fontrenderer used to draw the numbers of the pressure gauge.
* @param minPressure The minimal pressure that needs to be displayed (this is -1 in most applications).
* @param maxPressure The maximal pressure that needs to be rendererd (this is 7 for tier one machines, and 25 for tier two).
* @param dangerPressure The transition pressure from green to red (this is 5 for tier one, and 29 for tier two machines).
* @param minWorkingPressure The transition pressure from yellow to green (variates per machine).
* @param currentPressure The pressure that the needle should point to.
* @param xPos x position of the gauge.
* @param yPos y position of the gauge.
* @param zLevel z position of the gauge (Gui#zLevel, -90, for in normal GUI's).
*/
public static void drawPressureGauge(
FontRenderer fontRenderer,
float minPressure,
float maxPressure,
float dangerPressure,
float minWorkingPressure,
float currentPressure,
int xPos,
int yPos,
float zLevel) {
try {
if (drawGaugeMethod == null) {
drawGaugeMethod = Class.forName("pneumaticCraft.client.gui.GuiUtils")
.getMethod(
"drawPressureGauge",
FontRenderer.class,
float.class,
float.class,
float.class,
float.class,
float.class,
int.class,
int.class,
float.class);
}
drawGaugeMethod.invoke(
null,
fontRenderer,
minPressure,
maxPressure,
dangerPressure,
minWorkingPressure,
currentPressure,
xPos,
yPos,
zLevel);
} catch (Exception e) {
System.err.println("Failed to render a Pressure Gauge from PneumaticCraft.");
}
}
}
@@ -1,177 +0,0 @@
package pneumaticCraft.api.client;
import java.awt.Rectangle;
import java.util.List;
/**
* This interface doesn't have to be implemented. In PneumaticCraft there already is one class which implements this interface
* which is used many times in PneumaticCraft (GUI stats, Pneumatic Helmet 2D and 3D stats). You can get an instance of this
* class as well. Information about this you can find in GuiAnimatedStatSupplier.java. Implementing your own version of
* animated stats can be implemented as well via this interface, and they will interact with the PneumaticCraft GuiAnimatedStats
* if you implement it correctly.
*/
public interface IGuiAnimatedStat {
/**
* When you call this method with a set of coordinates representing the button location and dimensions, you'll get
* these parameters back scaled to the GuiAnimatedStat's scale.
* @param origX Button start X.
* @param origY Button start Y.
* @param width Button width.
* @param height Button height.
* @return rectangle containing the new location and dimensions.
*/
public Rectangle getButtonScaledRectangle(int origX, int origY, int width, int height);
/**
* When passed 0.5F for example, the text of the stat will be half as big (so more text can fit into a certain area).
* @param scale
*/
public void scaleTextSize(float scale);
/**
* Returns true if the statistic expands to the left.
* @return
*/
public boolean isLeftSided();
/**
* Returns true if the statistic is done with expanding (when text will be displayed).
* @return
*/
public boolean isDoneExpanding();
/**
* Pass true if the statistic should expand to the left, otherwise false.
* @param leftSided
*/
public void setLeftSided(boolean leftSided);
/**
* Sets the main text of this stat. Every line should be stored in a seperate list element. Upon rendering,
* EnumChatFormattings will be respected. When you call this method, Too long lines will be divided into multiple shorter ones
* to fit in the GUI.
* @param text
* @return this, so you can chain calls.
*/
public IGuiAnimatedStat setText(List<String> text);
/**
* Sets the line to a single line. Upon rendering,
* EnumChatFormattings will be respected. When you call this method, Too long lines will be divided into multiple shorter ones
* to fit in the GUI.
* @param text
* @return this, so you can chain calls.
*/
public IGuiAnimatedStat setText(String text);
/**
* Sets the main text of this stat. Every line should be stored in a seperate list element. Upon rendering,
* EnumChatFormattings will be respected. This version of the text setting doesn't handle too long lines.
* @param text
*/
public void setTextWithoutCuttingString(List<String> text);
/**
* Sets the title of this stat. It will automatically get the yellow color assigned.
* @param title
*/
public void setTitle(String title);
/**
* Returns the title of this stat (obviously without color prefix).
* @return
*/
public String getTitle();
/**
* Defines what dimensions the stat should have when it is not expanded (default 17x17) and resets the stat to these dimensions.
* Used in PneumaticCraft by the block/entity tracker stats, they are 0x0 when not expanded so it looks like they expand
* (and appear) from nothing.
* @param minWidth
* @param minHeight
*/
public void setMinDimensionsAndReset(int minWidth, int minHeight);
/**
* When this stat gets a parent stat assigned, the y of this stat will be the same as the parent's plus this stat's
* baseY. This will cause this stat to move up and down when the parent's stat expands/moves.
* @param stat
*/
public void setParentStat(IGuiAnimatedStat stat);
/**
* Sets the x location of this stat.
* @param x
*/
public void setBaseX(int x);
/**
* Sets the base Y of this stat.
* @param y
*/
public void setBaseY(int y);
/**
* Returns the real Y of this stat. This is the same as getBaseY when there is no parent stat, but if there is this method
* returns the value described in setParentStat(IGuiAnimatedStat stat).
* @return
*/
public int getAffectedY();
public int getBaseX();
public int getBaseY();
/**
* Returns the Y size of this stat.
* @return
*/
public int getHeight();
/**
* Returns the X size of this stat.
* @return
*/
public int getWidth();
public Rectangle getBounds();
/**
* This method should be called every game tick to update the logic of the stat (expanding of the stat).
*/
public void update();
/**
* Should be called every render tick when and where you want to render the stat.
* @param mouseX
* @param mouseY
* @param partialTicks
*/
public void render(int mouseX, int mouseY, float partialTicks);
/**
* This method will handle mouse clicks. This will handle open/closing of the stat when the mouse clicks it.
* @param x
* @param y
* @param button
* @return
*/
public void onMouseClicked(int x, int y, int button);
/**
* Forces the stat to close.
*/
public void closeWindow();
/**
* Forces the stat to expand.
*/
public void openWindow();
/**
* Returns true if the stat is expanding.
* @return
*/
public boolean isClicked();
}
@@ -1,54 +0,0 @@
package pneumaticCraft.api.client.assemblymachine;
import java.util.HashMap;
import net.minecraft.block.Block;
import net.minecraft.item.Item;
import net.minecraft.item.ItemStack;
public class AssemblyRenderOverriding {
public static final HashMap<Integer, IAssemblyRenderOverriding> renderOverrides =
new HashMap<Integer, IAssemblyRenderOverriding>();
public static void addRenderOverride(Block block, IAssemblyRenderOverriding renderOverride) {
renderOverrides.put(Block.getIdFromBlock(block), renderOverride);
}
public static void addRenderOverride(Item item, IAssemblyRenderOverriding renderOverride) {
renderOverrides.put(Item.getIdFromItem(item), renderOverride);
}
public static interface IAssemblyRenderOverriding {
/**
* This method will be called just before the IO Unit's held stack is being rendered. You can insert GL11 calls here to
* rotate the model for example. push and pop matrices are not needed, this is done for you.
* You can also choose to do the whole rendering yourself, you'll need to return false then to indicate that
* PneumaticCraft shouldn't render the item.
* @param renderedStack itemStack that is being rendered
* @return true if PneumaticCraft should render the item (after your changes), or false to cancel rendering.
*/
public boolean applyRenderChangeIOUnit(ItemStack renderedStack);
/**
* Same deal as with the applyRenderChangeIOUnit(), but now for the Assembly Platform.
* @param renderedStack itemStack that is being rendered
* @return true if PneumaticCraft should render the item (after your changes), or false to cancel rendering.
*/
public boolean applyRenderChangePlatform(ItemStack renderedStack);
/**
* Should return the distance the claw travels before it is gripped to the stack.
* By default it's 0.0875F for items and 0.00625F for blocks, 0.09375 when the claw is completely closed.
* @param renderedStack
* @return
*/
public float getIOUnitClawShift(ItemStack renderedStack);
/**
* Should return the distance the claw travels before it is gripped to the stack.
* By default it's 0.0875F for items and 0.00625F for blocks, 0.09375 when the claw is completely closed.
* @param renderedStack
* @return
*/
public float getPlatformClawShift(ItemStack renderedStack);
}
}
@@ -1,79 +0,0 @@
package pneumaticCraft.api.client.pneumaticHelmet;
import java.util.List;
import net.minecraft.block.Block;
import net.minecraft.tileentity.TileEntity;
import net.minecraft.world.IBlockAccess;
import net.minecraft.world.World;
public interface IBlockTrackEntry {
/**
* This method should return true if the coordinate checked is one that
* should be tracked. Most entries will just return true when the blockID is
* the one that they track.
*
* @param world
* The world that is examined.
* @param x
* The x coordinate of the block examined.
* @param y
* The y coordinate of the block examined.
* @param z
* The z coordinate of the block examined.
* @param block
* The block of the current coordinate. This will save you a
* call to World.getBlock().
* @param te The TileEntity at this x,y,z.
* @return true if the coordinate should be tracked by this BlockTrackEntry.
*/
public boolean shouldTrackWithThisEntry(IBlockAccess world, int x, int y, int z, Block block, TileEntity te);
/**
* This method defines if the block should be updated by the server (each 5
* seconds). This is specifically aimed at Tile Entities, as the server will
* send an NBT packet. This method returns true at for instance Chests and
* Mob Spawners, to get the inventory at the client side and the time to the
* next spawn respectively.
* @param te The TileEntity at the currently checked location.
*
* @return true if the Tile Entity should be updated, or false when it
* doesn't have to.
*/
public boolean shouldBeUpdatedFromServer(TileEntity te);
/**
* The return of this method defines at how many tracked blocks of this type
* the HUD should stop displaying text at the tracked blocks of this type.
*
* @return amount of blocks the HUD should stop displaying the block info.
*/
public int spamThreshold();
/**
* This method is called each render tick to retrieve the blocks additional
* information. The method behaves the same as the addInformation method in
* the Item class. This method only will be called if
* shouldTrackWithThisEntry() returned true and the player hovers over the
* coordinate.
*
* @param world
* The world the block is in.
* @param x
* The x coordinate the block is at.
* @param y
* The y coordinate the block is at.
* @param z
* The z coordinate the block is at.
* @param te The TileEntity at the x,y,z.
* @param infoList
* The list of lines to display.
*/
public void addInformation(World world, int x, int y, int z, TileEntity te, List<String> infoList);
/**
* This method is called when displaying the currently tracked blocks.
* Will be tried to be mapped to the localization file first.
* @return the name of the group of this entry.
*/
public String getEntryName();
}
@@ -1,48 +0,0 @@
package pneumaticCraft.api.client.pneumaticHelmet;
import java.util.List;
import net.minecraft.entity.Entity;
/**
* Implement this class and register it by adding it to the entityTrackEntries class.
* There needs to be a parameterless constructor. For every entity that's applicable for this definition, an instance is created.
*/
public interface IEntityTrackEntry {
/**
* Return true if you want to add a tooltip for the given entity.
* @param entity
* @return
*/
public boolean isApplicable(Entity entity);
/**
* Add info to the tab. This is only called when isApplicable returned true.
* @param entity
* @param curInfo
*/
public void addInfo(Entity entity, List<String> curInfo);
/**
* Update is called every (client) tick, and can be used to update something like a timer (used for the Creeper countdown).
* @param entity
*/
public void update(Entity entity);
/**
* Called every render tick, this method can be used to render additional info. Used for Drone AI visualisation.
* @param entity
* @param partialTicks TODO
*/
public void render(Entity entity, float partialTicks);
/**
* Just a basic implementation class that can be used if an update and render method isn't needed.
*/
public abstract static class EntityTrackEntry implements IEntityTrackEntry {
@Override
public void update(Entity entity) {}
@Override
public void render(Entity entity, float partialTicks) {}
}
}
@@ -1,14 +0,0 @@
package pneumaticCraft.api.client.pneumaticHelmet;
import java.util.List;
import net.minecraft.client.gui.FontRenderer;
/**
* Just an interface to give access to GuiSreen#buttonList and GuiScreen#fontRenderer. An instance of this class can
* safely be casted to GuiSreen if needed.
*/
public interface IGuiScreen {
public List getButtonList();
public FontRenderer getFontRenderer();
}
@@ -1,68 +0,0 @@
package pneumaticCraft.api.client.pneumaticHelmet;
import java.util.List;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.world.IBlockAccess;
import net.minecraft.world.World;
/**
* Use this interface to specify any hackable block. When it's your block, you can simply implement this interface in the
* block's class. If you don't have access to the class (vanilla blocks), you can implement this interface in a separate class
* and register it using PneumaticRegistry.registry.addHackable(blockClass, IHackableBlockClass). With the former way there will be one instance only per type. In the latter, there will
* be an IHackableBlock instance for every block.
*/
public interface IHackableBlock {
/**
* Should return a unique id to represent this hackable. Used in NBT saving to be able to trigger the afterHackTime after a server restart.
* Null is a valid return: afterHackTick will not be triggered at all in that case.
*
* CURRENTLY THIS ISN'T IMPLEMENTED.
* @return
*/
public String getId();
/**
* Returning true will allow the player to hack this block. This can be used to only allow hacking on certain conditions.
*/
public boolean canHack(IBlockAccess world, int x, int y, int z, EntityPlayer player);
/**
* Add info that is displayed on the tracker tooltip here. Text like "Hack to explode" can be added.
* This method is only called when canHack(World, int, int, int) returned true.
* The added lines automatically will be tried to get localized.
*/
public void addInfo(World world, int x, int y, int z, List<String> curInfo, EntityPlayer player);
/**
* Add info that is being displayed after hacking, as long as 'afterHackTick' is returning true.
* Things like "Neutralized".
* The added lines automatically will be tried to get localized.
* @param entity
* @param curInfo
* @param player
*/
public void addPostHackInfo(World world, int x, int y, int z, List<String> curInfo, EntityPlayer player);
/**
* Return the time it takes to hack this block in ticks. For more powerful hacks, a longer required hacking time is adviced.
*/
public int getHackTime(IBlockAccess world, int x, int y, int z, EntityPlayer player);
/**
* When the player hacked the block for getHackTime(World, int, int, int) ticks this will be called on both server and client side.
*/
public void onHackFinished(World world, int x, int y, int z, EntityPlayer player);
/**
* Called every tick after the hacking finished (on both server and client side). Returning true will keep this going (for mob spawners, to keep them neutralized),
* or false to stop ticking (for door/lever hacking).
*
* CURRENTLY THIS METHOD WILL STOP GETTING INVOKED AFTER A SERVER RESTART!
* @param world
* @param x
* @param y
* @param z
* @return
*/
public boolean afterHackTick(World world, int x, int y, int z);
}
@@ -1,58 +0,0 @@
package pneumaticCraft.api.client.pneumaticHelmet;
import java.util.List;
import net.minecraft.entity.Entity;
import net.minecraft.entity.player.EntityPlayer;
/**
* Use this interface to specify any hackable entity. When it's your entity, you can simply implement this interface in the
* entity's class. If you don't have access to the class (vanilla entities), you can implement this interface in a separate class
* and register it using PneumaticRegistry.registry.addHackable(entityClass, IHackableEntityClass). In both ways there will be an IHackableEntity instance for every entity.
*/
public interface IHackableEntity {
/**
* Should return a unique id to represent this hackable. Used in NBT saving to be able to trigger the afterHackTime after a server restart.
* Null is a valid return: afterHackTick will not be triggered at all in that case.
* @return
*/
public String getId();
/**
* Returning true will allow the player to hack this entity. This can be used to only allow hacking on certain conditions.
*/
public boolean canHack(Entity entity, EntityPlayer player);
/**
* Add info that is displayed on the tracker tooltip here. Text like "Hack to explode" can be added.
* This method is only called when canHack(Entity) returned true.
* The added lines automatically will be tried to get localized.
*/
public void addInfo(Entity entity, List<String> curInfo, EntityPlayer player);
/**
* Add info that is being displayed after hacking, as long as 'afterHackTick' is returning true.
* Things like "Neutralized".
* The added lines automatically will be tried to get localized.
* @param entity
* @param curInfo
* @param player
*/
public void addPostHackInfo(Entity entity, List<String> curInfo, EntityPlayer player);
/**
* Return the time it takes to hack this entity in ticks. For more powerful hacks, a longer required hacking time is adviced.
*/
public int getHackTime(Entity entity, EntityPlayer player);
/**
* When the player hacked the entity for getHackTime(Entity) ticks this will be called on both client and server side.
*/
public void onHackFinished(Entity entity, EntityPlayer player);
/**
* Called every tick after the hacking finished. Returning true will keep this going (for mob spawners, to keep them neutralized),
* or false to stop ticking (for door/lever hacking).
*/
public boolean afterHackTick(Entity entity);
}
@@ -1,46 +0,0 @@
package pneumaticCraft.api.client.pneumaticHelmet;
import net.minecraft.client.gui.GuiButton;
import net.minecraft.client.gui.GuiScreen;
/**
* The Option Page is the page you see when you press 'F' (by default) with a Pneumatic Helmet equipped. You can register this class
* by returning a new instance of this class at {@link IUpgradeRenderHandler#getGuiOptionsPage()}
*/
public interface IOptionPage {
/**
* This string is used in the text of the button of this page.
* @return
*/
public String getPageName();
/**
* Here you can initialize your buttons and stuff like with a GuiScreen. For buttons, don't use button id 100 and up, as they
* will be used as selection buttons for other option pages in the main GuiScreen.
* @param gui
*/
public void initGui(IGuiScreen gui);
/**
* Same as GuiScreen#actionPerformed(GuiButton).
* @param button
*/
public void actionPerformed(GuiButton button);
/**
* Same as {@link GuiScreen#drawScreen(int, int, float)}
* Here you can render additional things like text.
* @param x
* @param y
* @param partialTicks
*/
public void drawScreen(int x, int y, float partialTicks);
/**
* Same as GuiScreen#keyTyped(char, int).
* @param ch
* @param key
*/
public void keyTyped(char ch, int key);
}
@@ -1,92 +0,0 @@
package pneumaticCraft.api.client.pneumaticHelmet;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.item.ItemStack;
import net.minecraftforge.common.config.Configuration;
import pneumaticCraft.api.client.IGuiAnimatedStat;
/**
* To add upgrades for in the Pneumatic Helmet implement this interface. You can add members to this class, however these can only
* be client sided members as this class will be used as singleton. Therefore, only one of these instances exist at the server side
* so any member that is used server side will affect every player.
*
*/
public interface IUpgradeRenderHandler {
/**
* Return here the name of the upgrade. This is displayed in the formatting [upgradeName] + " " + "found"/"not found" on
* initialization of the helmet.
* @return
*/
public String getUpgradeName();
/**
* Being called from PneumaticCraft's config handler, you can use this method to read settings like stat positions
* @param config PneumaticCraft's config file.
*/
public void initConfig(Configuration config);
/**
* When called this should save the settings to the config file. Called when changed a setting. When you want to use
* PneumaticCraft's config file, save a reference of it somewhere in this class when the config gets passed in the
* initConfig() method (this always will be called first).
*/
public void saveToConfig();
/**
* This method will be called every client tick, and should be used to update logic like the tracking and velocities of stuff.
* @param player
* @param rangeUpgrades amount of range upgrades installed in the helmet.
*/
public void update(EntityPlayer player, int rangeUpgrades);
/**
* Called in the 3D render stage (renderWorldLastEvent)
* @param partialTicks
*/
public void render3D(float partialTicks);
/**
* Called in the 2D render stage (Render Tick Handler)
* @param partialTicks
* @param helmetEnabled is true when isEnabled() returned true earlier. Can be used to close AnimatedStats for instance.
* However this is already handled if you return an AnimatedStat in getAnimatedStat().
*/
public void render2D(float partialTicks, boolean helmetEnabled);
/**
* You can return a GuiAnimatedStat here, that the HUDHandler will pick up and render. It also automatically opens and closes
* the stat when needed. The GuiMoveStat uses this method to retrieve the to be moved stat.
* @return null if no stat used.
*/
public IGuiAnimatedStat getAnimatedStat();
/**
* Should return true if this upgrade handler is enabled for the given stacks placed in the helmet.
* @param upgradeStacks
* @return
*/
public boolean isEnabled(ItemStack[] upgradeStacks);
/**
* Returns the usage in mL/tick when this upgrade handler is enabled.
* @param rangeUpgrades amount of range upgrades installed in the helmet.
* @param player
* @return usage in mL/tick
*/
public float getEnergyUsage(int rangeUpgrades, EntityPlayer player);
/**
* Called when (re-)equipped the helmet this method should be used to clear information like current tracked entities.
* So clearing lists and other references as this handler should re-acquire when reinstalled.
*/
public void reset();
/**
* When you have some options for your upgrade handler you could return a new instance of an IOptionsPage.
* When you do so, it will automatically get picked up by the options handler, and it will be added to the
* options GUI when this upgrade returns true when calling isEnabled(). Returning null is valid.
* @return
*/
public IOptionPage getGuiOptionsPage();
}
@@ -1,10 +0,0 @@
package pneumaticCraft.api.client.pneumaticHelmet;
import java.util.List;
public class RenderHandlerRegistry {
/**
* With this field you can register your render handlers. This field is initialized in the PreInit phase of PneumaticCraft's loading phase.
*/
public static List<IUpgradeRenderHandler> renderHandlers;
}
@@ -1,11 +0,0 @@
package pneumaticCraft.api.drone;
import cpw.mods.fml.common.eventhandler.Event;
public class DroneConstructingEvent extends Event {
public IDrone drone;
public DroneConstructingEvent(IDrone drone) {
this.drone = drone;
}
}
@@ -1,25 +0,0 @@
package pneumaticCraft.api.drone;
/**
* DON'T IMPLEMENT, just use
*/
public interface IBlockInteractHandler {
/**
* Returns a boolean[6] of all sides. when true, this side is accessible
* @return
*/
public boolean[] getSides();
public boolean useCount();
public void decreaseCount(int count);
public int getRemainingCount();
/**
* When invoked, the drone will abort searching the area. Could be used to abort early when full of RF energy for example, when importing RF.
* (It's useless to search any further)
*/
public void abort();
}
@@ -1,45 +0,0 @@
package pneumaticCraft.api.drone;
import net.minecraft.util.ResourceLocation;
import net.minecraft.world.ChunkPosition;
/**
* Implement this and register it to PneumaticRegistry.registerCustomBlockInteractor().
* This will add a puzzle piece that has only a Area white- and blacklist parameter (similar to a GoTo piece).
* It will do the specified behaviour. This can be used to create energy import/export widgets.
*/
public interface ICustomBlockInteract {
/**
* Should return a unique Id, used in NBT saving and localization.
*/
public String getName();
/**
* Should return the puzzle piece texture. Should be a multiple of 80x64 (width x height). I'd recommend starting out with copying the Go To widget texture.
* @return
*/
public ResourceLocation getTexture();
/**
* The actual interaction.
*
* For every position in the selected area the drone will visit every block (ordered from closest to furthest). It will call this method with 'simulate = true'. If this method returns true, the drone will navigate to this location, and call this method again with 'simulate = false' It will keep doing this until this method returns false.
*
* When interactHandler.useCount() returns true:
* In the interface of the puzzle piece users can specify a 'use count' and fill in the maximum count they want to use. When not simulating, you should only import/export up to interactHandler.getRemainingCount(), and you should notify the removed/added count by doing interactHandler.decreaseCount(int count).
*
* @param pos current visited location
* @param drone
* @param interactHandler object you can use to use to get accessible sides and give feedback about counts.
* @param simulate will be true when trying to figure out whether or not the drone should navigate to this block, false when next to this block.
* @return
*/
public boolean doInteract(ChunkPosition pos, IDrone drone, IBlockInteractHandler interactHandler, boolean simulate);
/**
* Used for crafting, categorizes the puzzle piece.
* @return
*/
public int getCraftingColorIndex();
}
@@ -1,61 +0,0 @@
package pneumaticCraft.api.drone;
import net.minecraft.entity.Entity;
import net.minecraft.entity.ai.EntityAITasks;
import net.minecraft.entity.item.EntityItem;
import net.minecraft.entity.player.EntityPlayerMP;
import net.minecraft.inventory.IInventory;
import net.minecraft.item.ItemStack;
import net.minecraft.util.Vec3;
import net.minecraft.world.World;
import net.minecraftforge.common.IExtendedEntityProperties;
import net.minecraftforge.common.util.ForgeDirection;
import net.minecraftforge.fluids.IFluidTank;
import pneumaticCraft.api.item.IPressurizable;
public interface IDrone extends IPressurizable {
/**
*
* @param upgradeIndex metadata value of the upgrade item
* @return amount of inserted upgrades in the drone
*/
public int getUpgrades(int upgradeIndex);
public World getWorld();
public IFluidTank getTank();
public IInventory getInventory();
public Vec3 getPosition();
public IPathNavigator getPathNavigator();
public void sendWireframeToClient(int x, int y, int z);
public EntityPlayerMP getFakePlayer();
public boolean isBlockValidPathfindBlock(int x, int y, int z);
public void dropItem(ItemStack stack);
public void setDugBlock(int x, int y, int z);
public EntityAITasks getTargetAI();
public IExtendedEntityProperties getProperty(String key);
public void setProperty(String key, IExtendedEntityProperties property);
public void setEmittingRedstone(ForgeDirection orientation, int emittingRedstone);
public void setName(String string);
public void setCarryingEntity(Entity entity);
public Entity getCarryingEntity();
public boolean isAIOverriden();
public void onItemPickupEvent(EntityItem curPickingUpEntity, int stackSize);
}
@@ -1,11 +0,0 @@
package pneumaticCraft.api.drone;
import net.minecraft.entity.Entity;
public interface IPathNavigator {
public boolean moveToXYZ(double x, double y, double z);
public boolean moveToEntity(Entity entity);
public boolean hasNoPath();
}
@@ -1,26 +0,0 @@
package pneumaticCraft.api.drone;
import net.minecraft.world.World;
public interface IPathfindHandler {
/**
* When returned true, the drone can pathfind through this block. When false it can't.
* @param world
* @param x
* @param y
* @param z
* @return
*/
public boolean canPathfindThrough(World world, int x, int y, int z);
/**
* CURRENTLY NOT IMPLEMENTED!
* Will be called every tick as long as the drone is < 1 block away from the given coordinate.
* can be used to open a door for a drone for example.
* @param world
* @param x
* @param y
* @param z
*/
public void onPathingThrough(World world, int x, int y, int z);
}
@@ -1,59 +0,0 @@
package pneumaticCraft.api.drone;
import cpw.mods.fml.common.eventhandler.Event;
import net.minecraft.item.ItemStack;
import net.minecraft.world.ChunkPosition;
/**
* Fired when a Drone is trying to get a special coordinate, by accessing a variable with '$' prefix.
* These event are posted on the MinecraftForge.EVENT_BUS.
*/
public abstract class SpecialVariableRetrievalEvent extends Event {
/**
* The special variable name, with the '$' stripped away.
*/
public final String specialVarName;
/**
* The returning coordinate
*/
public SpecialVariableRetrievalEvent(String specialVarName) {
this.specialVarName = specialVarName;
}
public abstract static class CoordinateVariable extends SpecialVariableRetrievalEvent {
public ChunkPosition coordinate;
public CoordinateVariable(String specialVarName) {
super(specialVarName);
}
public static class Drone extends CoordinateVariable {
public final IDrone drone;
public Drone(IDrone drone, String specialVarName) {
super(specialVarName);
this.drone = drone;
}
}
}
public abstract static class ItemVariable extends SpecialVariableRetrievalEvent {
public ItemStack item;
public ItemVariable(String specialVarName) {
super(specialVarName);
}
public static class Drone extends ItemVariable {
public final IDrone drone;
public Drone(IDrone drone, String specialVarName) {
super(specialVarName);
this.drone = drone;
}
}
}
}
@@ -1,19 +0,0 @@
package pneumaticCraft.api.item;
import java.util.List;
import net.minecraft.item.ItemStack;
/**
* Implement this interface for your items that have an inventory. When you don't have access to the item, just create any old class
* that implements this interface and register an instance of it in PneumaticRegistry.
* This will then will be used in the Pneumatic Helmet's item search.
*
*/
public interface IInventoryItem {
/**
* @parm stack: Item that potentially has an inventory.
* @parm curStacks: List of all currently added stacks for this item. Add more stacks in here in your implementation when found the right item.
*/
public void getStacksInItem(ItemStack stack, List<ItemStack> curStacks);
}
@@ -1,35 +0,0 @@
package pneumaticCraft.api.item;
import net.minecraft.item.ItemStack;
/**
* Any item implementing this interface will be able to (dis)charge in a Charging Station.
*/
public interface IPressurizable {
/**
* This method should return the current pressure of the ItemStack given.
*
* @param iStack Stack the pressure is asked from.
* @return Pressure in bar.
*/
public float getPressure(ItemStack iStack);
/**
* this method is used to charge or discharge a pneumatic item. when the
* value is negative the item should be discharging
*
* @param iStack the ItemStack which has to be (dis)charged.
* @param amount amount in mL that the item is (dis)charging.
*/
public void addAir(ItemStack iStack, int amount);
/**
* This method should return the maximum pressure of a pneumatic item. If it
* has reached this maximum, it won't explode, but it wouldn't (try to)
* charge either.
*
* @param iStack the stack from which the maximum pressure is asked.
* @return maximum pressure in bar.
*/
public float maxPressure(ItemStack iStack);
}
@@ -1,33 +0,0 @@
package pneumaticCraft.api.item;
import net.minecraft.item.ItemStack;
/**
* Implement this for items that can get programmed in a Programmer.
* For now the only thing you can do with this is make program storages, later more interaction with programming puzzles is planned.
* Puzzle pieces will be written onto the implementer's itemstack NBT, using the "progWidget" tag.
*/
public interface IProgrammable {
/**
* When returned true, this stack is allowed to be programmed.
* Used to allow certain damage values to be programmed while others can't.
* @param stack
* @return
*/
public boolean canProgram(ItemStack stack);
/**
* When returned true, Programming Puzzles are needed to program this item. When returned false, it's free to program.
* Drones and Network API's return true in PneumaticCraft, Network Storages return false.
* @param stack
* @return
*/
public boolean usesPieces(ItemStack stack);
/**
* When returned true, the implementing item will get a tooltip added of the summary of puzzles used in the stored program.
* @return
*/
public boolean showProgramTooltip();
}
@@ -1,47 +0,0 @@
package pneumaticCraft.api.item;
import cpw.mods.fml.common.registry.GameRegistry;
import net.minecraft.item.Item;
public class ItemSupplier {
public static Item getItem(String itemName) {
return GameRegistry.findItem("PneumaticCraft", itemName);
}
/*
The following is a list of all the item names that can be passed as argument in getItem(String) to get a PneumaticCraft item.
GPSTool Currently tracked coordinated is stored in NBT, with 'x', 'y', 'z' being the tag names for the x,y and z positions respectively.
machineUpgrade damage value = upgrade type.
ingotIronCompressed
pressureGauge
stoneBase
cannonBarrel
turbineBlade
plasticPlant damage value = plant type. Mapped the same as Vanilla dye in terms of color.
plastic damage value = plastic type. Mapped the same as Vanilla dye in terms of color.
airCanister implements IPressurizable
vortexCannon implements IPressurizable
pneumaticCylinder
pneumaticHelmet implements IPressurizable
manometer implements IPressurizable
turbineRotor
assemblyProgram damage value = program type.
emptyPCB
unassembledPCB
PCBBlueprint
bucketEtchingAcid
transistor
capacitor
printedCircuitBoard
failedPCB
networkComponent damage value = network component type.
stopWorm
nukeVirus
compressedIronGear
pneumaticWrench implements IPressurizable
*/
}
@@ -1,4 +0,0 @@
@API(apiVersion = "1.0", owner = "PneumaticCraft", provides = "PneumaticCraftApi")
package pneumaticCraft.api;
import cpw.mods.fml.common.API;
@@ -1,47 +0,0 @@
package pneumaticCraft.api.recipe;
import java.util.ArrayList;
import java.util.List;
import net.minecraft.block.Block;
import net.minecraft.item.Item;
import net.minecraft.item.ItemStack;
public class AssemblyRecipe {
public static List<AssemblyRecipe> drillRecipes = new ArrayList<AssemblyRecipe>();
public static List<AssemblyRecipe> laserRecipes = new ArrayList<AssemblyRecipe>();
public static List<AssemblyRecipe> drillLaserRecipes = new ArrayList<AssemblyRecipe>();
private final ItemStack input;
private final ItemStack output;
public AssemblyRecipe(ItemStack input, ItemStack output) {
this.input = input;
this.output = output;
}
public ItemStack getInput() {
return input;
}
public ItemStack getOutput() {
return output;
}
public static void addDrillRecipe(Object input, Object output) {
drillRecipes.add(new AssemblyRecipe(getStackFromObject(input), getStackFromObject(output)));
}
public static void addLaserRecipe(Object input, Object output) {
laserRecipes.add(new AssemblyRecipe(getStackFromObject(input), getStackFromObject(output)));
}
private static ItemStack getStackFromObject(Object object) {
if (object instanceof Block) {
return new ItemStack((Block) object);
} else if (object instanceof Item) {
return new ItemStack((Item) object);
} else {
return (ItemStack) object;
}
}
}
@@ -1,34 +0,0 @@
package pneumaticCraft.api.recipe;
import net.minecraft.item.ItemStack;
public interface IPressureChamberRecipe {
/**
* Returns the threshold which is minimal to craft the recipe. Negative pressures also work.
* @return threshold pressure
*/
public float getCraftingPressure();
/**
* This method should return the used items in the recipe when the right items are provided to craft this recipe.
* @param inputStacks
* @return usedStacks, return null when the inputStacks aren't valid for this recipe.
*/
public ItemStack[] isValidRecipe(ItemStack[] inputStacks);
/**
* When returned true, only the exact same references of the stacks returned by isValidRecipe() will be removed. This is useful
* to remove stacks with a certain NBT value (like Enchanted Books). Return false for normal behaviour.
* @return true if exact stacks should be removed only.
*/
public boolean shouldRemoveExactStacks();
/**
* This method will be called when the recipe should output its items. the stacks the recipe output, may be dependent on the input stacks.
* @param removedStacks same reference to the stacks returned by isValidRecipe.
* @param inputStacks. These stacks can be modified (like adding/removing NBT data eg.)
* @return outputStacks. Stacks that will pop 'out of the chamber'
*/
public ItemStack[] craftRecipe(ItemStack[] inputStacks, ItemStack[] removedStacks);
}
@@ -1,22 +0,0 @@
package pneumaticCraft.api.recipe;
import java.util.ArrayList;
import java.util.List;
import net.minecraft.item.ItemStack;
public class PressureChamberRecipe {
public static List<PressureChamberRecipe> chamberRecipes = new ArrayList<PressureChamberRecipe>();
public static List<IPressureChamberRecipe> specialRecipes = new ArrayList<IPressureChamberRecipe>();
public final ItemStack[] input;
public final ItemStack[] output;
public final float pressure;
public final boolean outputAsBlock;
public PressureChamberRecipe(ItemStack[] input, float pressureRequired, ItemStack[] output, boolean outputAsBlock) {
this.input = input;
this.output = output;
pressure = pressureRequired;
this.outputAsBlock = outputAsBlock;
}
}
@@ -1,53 +0,0 @@
package pneumaticCraft.api.tileentity;
import java.lang.reflect.Constructor;
public class AirHandlerSupplier {
private static Constructor airHandlerConstructor;
public static IAirHandler getTierOneAirHandler(int volume) {
return getAirHandler(5F, 7F, volume);
}
public static IAirHandler getTierTwoAirHandler(int volume) {
return getAirHandler(20F, 25F, volume);
}
/**
* Returns a new instance of an IAirHandler. This handler handles everything pressurized air related: Air dispersion,
* blowing up when the pressure gets too high, providing a method for releasing air into the atmosphere...
* PROVIDED THAT THE FOLLOWING METHODS ARE FORWARDED TO THIS INSTANCE:
* {@link net.minecraft.tileentity.TileEntity#updateEntity()},
* {@link net.minecraft.tileentity.TileEntity#writeToNBT(net.minecraft.nbt.NBTTagCompound)}
* {@link net.minecraft.tileentity.TileEntity#readFromNBT(net.minecraft.nbt.NBTTagCompound)}
* {@link net.minecraft.tileentity.TileEntity#validate()}
* @param dangerPressure minimal pressure on which this machine can explode (the yellow to red transition)
* @param criticalPressure the absolute maximum pressure the machine can take 7 bar in tier 1 machines.
* @param maxFlow maximum mL/tick that this machine can disperse. Tier one machines do 50mL/tick while Tier two have 200mL/tick.
* @param volume Volume of the machine's internal storage. These vary from 1000mL for small machines to 10,000mL for the big ones.
* The higher the volume the slower the machine will charge/discharge.
* @return
*/
public static IAirHandler getAirHandler(float dangerPressure, float criticalPressure, int volume) {
IAirHandler airHandler = null;
try {
if (airHandlerConstructor == null)
airHandlerConstructor = Class.forName("pneumaticCraft.common.tileentity.TileEntityPneumaticBase")
.getConstructor(float.class, float.class, int.class);
airHandler = (IAirHandler) airHandlerConstructor.newInstance(dangerPressure, criticalPressure, volume);
} catch (Exception e) {
System.err.println(
"[PneumaticCraft API] An error has occured whilst trying to get an AirHandler. Here's a stacktrace:");
e.printStackTrace();
}
return airHandler;
}
/**
* Use the version with integer parameters
*/
@Deprecated
public static IAirHandler getAirHandler(float dangerPressure, float criticalPressure, float maxFlow, float volume) {
return getAirHandler(dangerPressure, criticalPressure, (int) volume);
}
}
@@ -1,110 +0,0 @@
package pneumaticCraft.api.tileentity;
import java.util.List;
import net.minecraft.nbt.NBTTagCompound;
import net.minecraft.tileentity.TileEntity;
import net.minecraftforge.common.util.ForgeDirection;
import org.apache.commons.lang3.tuple.Pair;
/**
* A way for you to access about everything you need from a pneumatic machine.
* DO NOT IMPLEMENT THIS YOURSELF! Use AirHandlerSupplier to get an instance for your TileEntity, and implement IPneumaticMachine instead.
*/
public interface IAirHandler extends IManoMeasurable {
/**
* -----------Needs to be forwarded by the implementing TileEntity's updateEntity() method.
* Updates the pneumatic machine's logic like air dispersion and checking if it needs to explode.
*/
public void updateEntityI();
/**
* -----------Needs to be forwarded by the implementing TileEntity.
* @param nbt
*/
public void readFromNBTI(NBTTagCompound nbt);
/**
* -----------Needs to be forwarded by the implementing TileEntity.
* @param nbt
*/
public void writeToNBTI(NBTTagCompound nbt);
/**
* -----------Needs to be forwarded by the implementing TileEntity with itself as parameter.
* @param parent TileEntity that is referencing this air handler.
*/
public void validateI(TileEntity parent);
/**
* Method to release air in the air. It takes air from a specific side, plays a sound effect, and spawns smoke particles.
* It automatically detects if it needs to release air (when under pressure), suck air (when in vacuum) or do nothing.
* @param side
*/
public void airLeak(ForgeDirection side);
/**
* Returns a list of all the connecting pneumatics. It takes sides in account.
*/
public List<Pair<ForgeDirection, IPneumaticMachine>> getConnectedPneumatics();
/**
* Adds air to the tank of the given side of this TE. It also updates clients where needed (when they have a GUI opened).
* Deprecated: use the version with the integer parameter now.
* @param amount
* @param side
*/
@Deprecated
public void addAir(float amount, ForgeDirection side);
public void addAir(int amount, ForgeDirection side);
/**
* Sets the volume of this TE's air tank. When the volume decreases the pressure will remain the same, meaning air will
* be lost. When the volume increases, the air remains the same, meaning the pressure will drop.
* Used in the Volume Upgrade calculations.
* Deprecated: use the version with the integer parameter now.
* @param newVolume
*/
@Deprecated
public void setVolume(float newVolume);
public void setVolume(int newVolume);
public int getVolume();
/**
* Returns the pressure at which this TE will explode.
* @return
*/
public float getMaxPressure();
public float getPressure(ForgeDirection sideRequested);
/**
* Returns the amount of air (that has a relation to the pressure: air = pressure * volume)
* @param sideRequested
* @return
*/
public int getCurrentAir(ForgeDirection sideRequested);
/**
* When your TileEntity is implementing IInventory and has slots that accept PneumaticCraft upgrades, register these slots
* to the air handler by calling this method once on initialization of the TileEntity. Then they'll automatically be used to get Volume/Security upgrades.
* @param upgradeSlots all upgrade slots stored in an array.
*/
public void setUpgradeSlots(int... upgradeSlots);
public int[] getUpgradeSlots();
public int getXCoord();
public int getYCoord();
public int getZCoord();
/**
* Needs to be forwarded from the implementing _Block_! Forward the Block's "onNeighborChange" method to this handler.
*/
public void onNeighborChange();
}
@@ -1,23 +0,0 @@
package pneumaticCraft.api.tileentity;
import net.minecraftforge.common.util.ForgeDirection;
import pneumaticCraft.api.IHeatExchangerLogic;
/**
* Implemented by TileEntities or Blocks which transport heat. Keep in mind that when a Block is implementing it you only can give off a constant
* resistance/temperature (like Lava and Ice).
* @author MineMaarten
* www.minemaarten.com
*/
public interface IHeatExchanger {
/**
* Get an instance of IHeatExchangerLogic from PneumaticRegistry.getInstance().getHeatExchangerLogic() and keep a global reference.
* Then return it in this method. You can return different exchanger logics for different sides. Keep in mind that when you change
* a returned logic, you need to create a neighbor block change to notify the differences. You can return null to indicate no heat can
* be exchanged on that side.
* @param side
* @return
*/
public IHeatExchangerLogic getHeatExchangerLogic(ForgeDirection side);
}
@@ -1,13 +0,0 @@
package pneumaticCraft.api.tileentity;
import java.util.List;
import net.minecraft.entity.player.EntityPlayer;
public interface IManoMeasurable {
/**
* This method is invoked by the Manometer when a player right-clicks a TE or Entity with this interface implemented.
* @param player that rightclicks the measurable TE, and therefore needs to get the message
* @param curInfo list you can append info to. If you don't append any info no air will be used.
*/
public void printManometerMessage(EntityPlayer player, List<String> curInfo);
}
@@ -1,30 +0,0 @@
package pneumaticCraft.api.tileentity;
import net.minecraftforge.common.util.ForgeDirection;
public interface IPneumaticMachine {
/**
* In your TileEntity class which is implementing this interface you should keep a reference of an IAirHandler.
* You can retrieve one by calling {@link AirHandlerSupplier#getAirHandler(net.minecraft.tileentity.TileEntity, float, float, float, float)}.
* Do this when your TileEntity is initialized, i.e. xCoord,yCoord,zCoord and worldObj have a value.
* In this method you need to return this reference.
*
* IMPORTANT: You need to forward the {@link net.minecraft.tileentity.TileEntity#updateEntity()},
* {@link net.minecraft.tileentity.TileEntity#writeToNBT(net.minecraft.nbt.NBTTagCompound)} ,
* {@link net.minecraft.tileentity.TileEntity#readFromNBT(net.minecraft.nbt.NBTTagCompound)} and
* {@link net.minecraft.tileentity.TileEntity#validate()} (with the implementing TileEntity as additional parameter)
* to the IAirHandler.
* Apart from that you'll need to forward {@link net.minecraft.block.Block#onNeighborChange(net.minecraft.world.IBlockAccess, int, int, int, int, int, int)}
* from the implementing block to the IAirHandler.
* @return
*/
public IAirHandler getAirHandler();
/**
* Returns true if the pneumatic logic is connected to the given side.
* @param side
* @return
*/
public boolean isConnectedTo(ForgeDirection side);
}
@@ -1,35 +0,0 @@
package pneumaticCraft.api.universalSensor;
import java.util.List;
import net.minecraft.entity.Entity;
import net.minecraft.util.AxisAlignedBB;
import net.minecraft.world.World;
public abstract class EntityPollSensor implements IPollSensorSetting {
@Override
public String getSensorPath() {
return "entityTracker";
}
@Override
public int getPollFrequency() {
return 1;
}
@Override
public int getRedstoneValue(World world, int x, int y, int z, int sensorRange, String textBoxText) {
AxisAlignedBB aabb = AxisAlignedBB.getBoundingBox(
x - sensorRange,
y - sensorRange,
z - sensorRange,
x + 1 + sensorRange,
y + 1 + sensorRange,
z + 1 + sensorRange);
return getRedstoneValue(world.getEntitiesWithinAABB(getEntityTracked(), aabb), textBoxText);
}
public abstract Class getEntityTracked();
public abstract int getRedstoneValue(List<Entity> entities, String textBoxText);
}
@@ -1,56 +0,0 @@
package pneumaticCraft.api.universalSensor;
import cpw.mods.fml.common.eventhandler.Event;
import java.util.List;
import net.minecraft.client.gui.FontRenderer;
import net.minecraft.tileentity.TileEntity;
import org.lwjgl.util.Rectangle;
public interface IBlockAndCoordinateEventSensor {
/**
* See {@link ISensorSetting#getSensorPath()}
* @return
*/
public String getSensorPath();
/**
* Extended version of the normal emitRedstoneOnEvent. This method will only invoke with a valid GPS tool, and when the coordinate is within range.
* @param event
* @param sensor
* @param range
* @param toolX
* @param toolY
* @param toolZ
* @return
*/
public int emitRedstoneOnEvent(Event event, TileEntity sensor, int range, int toolX, int toolY, int toolZ);
/**
* See {@link IEventSensorSetting#getRedstonePulseLength()}
* @return
*/
public int getRedstonePulseLength();
/**
* See {@link ISensorSetting#needsTextBox()}
* @return
*/
public boolean needsTextBox();
/**
* See {@link ISensorSetting#needsSlot()}
*/
public Rectangle needsSlot();
/**
* See {@link ISensorSetting#getDescription()}
* @return
*/
public List<String> getDescription();
/**
* Called by GuiScreen#drawScreen this method can be used to render additional things like status/info text.
* @param fontRenderer
*/
public void drawAdditionalInfo(FontRenderer fontRenderer);
}
@@ -1,61 +0,0 @@
package pneumaticCraft.api.universalSensor;
import java.util.List;
import net.minecraft.client.gui.FontRenderer;
import net.minecraft.world.World;
import org.lwjgl.util.Rectangle;
public interface IBlockAndCoordinatePollSensor {
/**
* See {@link ISensorSetting#getSensorPath()}
* @return
*/
public String getSensorPath();
/**
* See {@link ISensorSetting#needsTextBox()}
* @return
*/
public boolean needsTextBox();
/**
* See {@link ISensorSetting#needsSlot()}
* @return
*/
public Rectangle needsSlot();
/**
* See {@link ISensorSetting#getDescription()}
* @return
*/
public List<String> getDescription();
/**
* See {@link IPollSensorSetting#getRedstoneValue(World, int, int, int, int, String)} , but this has the GPS tracked coordinates
* as extra parameters. This method will only be called when the coordinate is within the Universal Sensor's range.
* @param world
* @param x
* @param y
* @param z
* @param sensorRange
* @param textBoxText
* @param toolX
* @param toolY
* @param toolZ
* @return
*/
public int getRedstoneValue(
World world, int x, int y, int z, int sensorRange, String textBoxText, int toolX, int toolY, int toolZ);
/**
* See {@link IPollSensorSetting#getPollFrequency()}
* @return
*/
public int getPollFrequency();
/**
* Called by GuiScreen#drawScreen this method can be used to render additional things like status/info text.
* @param fontRenderer
*/
public void drawAdditionalInfo(FontRenderer fontRenderer);
}
@@ -1,23 +0,0 @@
package pneumaticCraft.api.universalSensor;
import cpw.mods.fml.common.eventhandler.Event;
import net.minecraft.tileentity.TileEntity;
public interface IEventSensorSetting extends ISensorSetting {
/**
* This method is only invoked when a subscribed event is triggered.
* @param event
* @param sensor
* @param range
* @param textboxText
* @return Redstone strength for the given event.
*/
public int emitRedstoneOnEvent(Event event, TileEntity sensor, int range, String textboxText);
/**
* Should return how long a pulse should hold in ticks. By default this is 5 ticks (1/4 second).
* @return
*/
public int getRedstonePulseLength();
}
@@ -1,26 +0,0 @@
package pneumaticCraft.api.universalSensor;
import net.minecraft.world.World;
public interface IPollSensorSetting extends ISensorSetting {
/**
* The value returned here is the interval between every check in ticks (the interval of calling getRedstoneValue()).
* Consider increasing the interval when your sensor method is resource intensive.
* @return
*/
public int getPollFrequency();
/**
* The base method. This method should return the outputted redstone value 0-15 of this sensor. When this sensor is
* digital, just return 0 or 15.
* @param world
* @param x
* @param y
* @param z
* @param sensorRange Range of the sensor, based on the amount of Range Upgrades inserted in the Universal Sensor.
* @param textBoxText The text typed in the textbox of the Universal Sensor.
* @return
*/
public int getRedstoneValue(World world, int x, int y, int z, int sensorRange, String textBoxText);
}
@@ -1,57 +0,0 @@
package pneumaticCraft.api.universalSensor;
import java.util.List;
import net.minecraft.client.gui.FontRenderer;
import org.lwjgl.util.Rectangle;
public interface ISensorSetting {
/**
* Should return the button path the player has to follow in which this setting is stored.
* For instance, when the sensor should be located in player and is called speed, you should return "entityTracker/player/speed".
* "entityTracker" indicates that this sensor needs an Entity Tracker upgrade to run. You can choose from the following upgrades:
*
* -entityTracker
* -blockTracker
* -gpsTool (so you can use a certain coordinate (within range) to measure on)
* -volume
* -dispenser
* -speed
* -itemLife
* -itemSearch
* -coordinateTracker
* -range
* -security
*
* You can allow only sensors to work by more than one upgrade, by seperating the upgrades with a '_'. For example,
* "entityTracker_speed" will only let the sensor be chosen when both an Entity Tracker and a Speed Upgrade are inserted.
* @return
*/
public String getSensorPath();
/**
* When returned true, the GUI will enable the textbox writing, otherwise not.
* @return
*/
public boolean needsTextBox();
/**
* Called by GuiScreen#drawScreen this method can be used to render additional things like status/info text.
* @param fontRenderer
*/
public void drawAdditionalInfo(FontRenderer fontRenderer);
/**
* Should return the description of this sensor displayed in the GUI stat. Information should at least include
* when this sensor emits redstone and how (analog (1 through 15), or digital).
* @return
*/
public List<String> getDescription();
/**
* Not being used at the moment, I recommend returning null for now. It is going to be used to allow sensors to decide their
* status on a item which can be inserted in a slot in the GUI if this method returns a rectangle with the coordinates of
* the slot.
* @return
*/
public Rectangle needsSlot();
}
@@ -1,34 +0,0 @@
package pneumaticCraft.api.universalSensor;
import cpw.mods.fml.common.eventhandler.Event;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.tileentity.TileEntity;
import net.minecraftforge.event.entity.player.PlayerEvent;
public abstract class PlayerEventSensor implements IEventSensorSetting {
@Override
public String getSensorPath() {
return "entityTracker/Player";
}
@Override
public int emitRedstoneOnEvent(Event event, TileEntity sensor, int range, String textboxText) {
if (event instanceof PlayerEvent) {
EntityPlayer player = ((PlayerEvent) event).entityPlayer;
if (Math.abs(player.posX - sensor.xCoord + 0.5D) < range + 0.5D
&& Math.abs(player.posY - sensor.yCoord + 0.5D) < range + 0.5D
&& Math.abs(player.posZ - sensor.zCoord + 0.5D) < range + 0.5D) {
return emitRedstoneOnEvent((PlayerEvent) event, sensor, range);
}
}
return 0;
}
public abstract int emitRedstoneOnEvent(PlayerEvent event, TileEntity sensor, int range);
@Override
public int getRedstonePulseLength() {
return 5;
}
}
@@ -1,33 +0,0 @@
package pneumaticCraft.api.universalSensor;
/**
* With this class you can register your own sensors.
*/
public class SensorRegistrator {
/**
* This field will be initialized in the PreInit phase of PneumaticCraft's loading phase.
* With this field you can register every Universal Sensor sensor you want. Just pass a new instance
* to one of the registerSensor methods. Sensors are singletons.
*/
public static ISensorRegistrator sensorRegistrator;
public static interface ISensorRegistrator {
/**
* Registry for IPollSensorSetting, EntityPollSensor and IEventSensorSetting, and any other instance of ISensorSetting.
* @param sensor
*/
public void registerSensor(ISensorSetting sensor);
/**
* Registry for IBlockAndCoordinateEventSensor
* @param sensor
*/
public void registerSensor(IBlockAndCoordinateEventSensor sensor);
/**
* Registry for IBlockAndCoordinatePollSensor
* @param sensor
*/
public void registerSensor(IBlockAndCoordinatePollSensor sensor);
}
}
File diff suppressed because it is too large. Load diff
File diff suppressed because it is too large. Load diff
@@ -1,5 +1,7 @@
package WayofTime.alchemicalWizardry;
import net.minecraft.block.Block;
import WayofTime.alchemicalWizardry.common.block.ArmourForge;
import WayofTime.alchemicalWizardry.common.block.BlockAlchemicCalcinator;
import WayofTime.alchemicalWizardry.common.block.BlockAltar;
@@ -49,126 +51,157 @@ import WayofTime.alchemicalWizardry.common.items.ItemSpellModifierBlock;
import WayofTime.alchemicalWizardry.common.items.ItemSpellParadigmBlock;
import WayofTime.alchemicalWizardry.common.items.ItemStabilityGlyphBlock;
import cpw.mods.fml.common.registry.GameRegistry;
import net.minecraft.block.Block;
/**
* Created with IntelliJ IDEA.
* User: Pokefenn
* Date: 17/01/14
* Time: 19:48
* Created with IntelliJ IDEA. User: Pokefenn Date: 17/01/14 Time: 19:48
*/
public class ModBlocks {
public static Block bloodStoneBrick;
public static Block largeBloodStoneBrick;
// Blood Altar
public static BlockAltar blockAltar;
public static BloodRune bloodRune;
public static SpeedRune speedRune;
public static EfficiencyRune efficiencyRune;
public static RuneOfSacrifice runeOfSacrifice;
public static RuneOfSelfSacrifice runeOfSelfSacrifice;
public static Block blockMasterStone;
public static Block ritualStone;
public static Block blockCrucible;
public static Block largeBloodStoneBrick;
public static Block bloodStoneBrick;
public static Block blockCrystal;
// Rituals
public static Block imperfectRitualStone;
public static Block bloodSocket;
public static Block emptySocket;
public static Block armourForge;
public static Block blockWritingTable;
public static Block blockHomHeart;
public static Block ritualStone;
public static Block blockMasterStone;
public static Block blockPedestal;
public static Block blockPlinth;
public static Block blockLifeEssence;
public static Block blockTeleposer;
public static Block spectralBlock;
public static Block blockStabilityGlyph;
public static Block blockEnchantmentGlyph;
// Reagents
public static Block blockWritingTable;
public static Block blockAlchemicCalcinator;
public static Block blockReagentConduit;
public static Block blockCrystalBelljar;
// Bound Armor
public static Block emptySocket;
public static Block bloodSocket;
public static Block armourForge;
// Spells
public static Block blockHomHeart;
public static Block blockConduit;
public static Block blockBloodLight;
public static Block blockSpellEffect;
public static Block blockSpellParadigm;
public static Block blockSpellModifier;
public static Block blockSpellEnhancement;
// Misc
public static Block blockTeleposer;
public static Block spectralBlock;
public static Block blockBloodLight;
public static Block blockSpectralContainer;
public static Block blockBuildingSchematicSaver;
public static Block blockLifeEssence;
public static Block blockDemonPortal;
public static Block blockReagentConduit;
public static Block blockAlchemicCalcinator;
public static Block blockCrystalBelljar;
public static Block blockDemonChest;
public static Block blockCrystal;
public static Block blockBuildingSchematicSaver;
public static Block blockMimic;
public static Block blockEnchantmentGlyph;
public static Block blockStabilityGlyph;
public static Block blockCrucible;
public static void init() {
// Blood Altar
blockAltar = new BlockAltar();
bloodRune = new BloodRune();
speedRune = new SpeedRune();
efficiencyRune = new EfficiencyRune();
runeOfSacrifice = new RuneOfSacrifice();
runeOfSelfSacrifice = new RuneOfSelfSacrifice();
blockTeleposer = new BlockTeleposer();
spectralBlock = new SpectralBlock();
blockCrucible = new BlockCrucible();
bloodStoneBrick = new BloodStoneBrick();
largeBloodStoneBrick = new LargeBloodStoneBrick();
blockCrystal = new BlockCrystal();
// Rituals
imperfectRitualStone = new ImperfectRitualStone();
ritualStone = new RitualStone();
blockMasterStone = new BlockMasterStone();
imperfectRitualStone = new ImperfectRitualStone();
bloodSocket = new BlockSocket();
armourForge = new ArmourForge();
emptySocket = new EmptySocket();
largeBloodStoneBrick = new LargeBloodStoneBrick();
bloodStoneBrick = new BloodStoneBrick();
blockWritingTable = new BlockWritingTable();
blockHomHeart = new BlockHomHeart();
blockPedestal = new BlockPedestal();
blockPlinth = new BlockPlinth();
blockStabilityGlyph = new BlockStabilityGlyph();
blockEnchantmentGlyph = new BlockEnchantmentGlyph();
// Reagents
blockWritingTable = new BlockWritingTable();
blockAlchemicCalcinator = new BlockAlchemicCalcinator();
blockReagentConduit = new BlockReagentConduit();
blockCrystalBelljar = new BlockBelljar();
// Bound Armor
emptySocket = new EmptySocket();
bloodSocket = new BlockSocket();
armourForge = new ArmourForge();
// Spells
blockHomHeart = new BlockHomHeart();
blockConduit = new BlockConduit();
blockBloodLight = new BlockBloodLightSource();
blockSpellEffect = new BlockSpellEffect();
blockSpellParadigm = new BlockSpellParadigm();
blockSpellModifier = new BlockSpellModifier();
blockSpellEnhancement = new BlockSpellEnhancement();
blockSpectralContainer = new BlockSpectralContainer();
blockDemonPortal = new BlockDemonPortal();
blockBuildingSchematicSaver = new BlockSchematicSaver();
blockReagentConduit = new BlockReagentConduit();
blockAlchemicCalcinator = new BlockAlchemicCalcinator();
blockCrystalBelljar = new BlockBelljar();
blockDemonChest = new BlockDemonChest();
blockCrystal = new BlockCrystal();
blockMimic = new MimicBlock();
// Misc
blockTeleposer = new BlockTeleposer();
spectralBlock = new SpectralBlock();
blockBloodLight = new BlockBloodLightSource();
blockSpectralContainer = new BlockSpectralContainer();
blockLifeEssence = new LifeEssenceBlock();
blockEnchantmentGlyph = new BlockEnchantmentGlyph();
blockStabilityGlyph = new BlockStabilityGlyph();
blockCrucible = new BlockCrucible();
blockDemonPortal = new BlockDemonPortal();
blockDemonChest = new BlockDemonChest();
blockBuildingSchematicSaver = new BlockSchematicSaver();
blockMimic = new MimicBlock();
}
public static void registerBlocksInPre() {
// Blood Altar
GameRegistry.registerBlock(ModBlocks.blockAltar, "Altar");
GameRegistry.registerBlock(
ModBlocks.bloodRune,
ItemBloodRuneBlock.class,
"AlchemicalWizardry" + (ModBlocks.bloodRune.getUnlocalizedName().substring(5)));
GameRegistry.registerBlock(ModBlocks.blockLifeEssence, "lifeEssence");
GameRegistry.registerBlock(ModBlocks.speedRune, "speedRune");
GameRegistry.registerBlock(ModBlocks.efficiencyRune, "efficiencyRune");
GameRegistry.registerBlock(ModBlocks.runeOfSacrifice, "runeOfSacrifice");
GameRegistry.registerBlock(ModBlocks.runeOfSelfSacrifice, "runeOfSelfSacrifice");
GameRegistry.registerBlock(ModBlocks.blockCrucible, "blockCrucible");
GameRegistry.registerBlock(ModBlocks.largeBloodStoneBrick, "largeBloodStoneBrick");
GameRegistry.registerBlock(ModBlocks.bloodStoneBrick, "bloodStoneBrick");
GameRegistry.registerBlock(ModBlocks.blockCrystal, ItemCrystalBlock.class, "blockCrystal");
// Rituals
GameRegistry.registerBlock(ModBlocks.imperfectRitualStone, "imperfectRitualStone");
GameRegistry.registerBlock(ModBlocks.ritualStone, "ritualStone");
GameRegistry.registerBlock(ModBlocks.blockMasterStone, "masterStone");
GameRegistry.registerBlock(ModBlocks.bloodSocket, "bloodSocket");
GameRegistry.registerBlock(ModBlocks.imperfectRitualStone, "imperfectRitualStone");
GameRegistry.registerBlock(ModBlocks.armourForge, "armourForge");
GameRegistry.registerBlock(ModBlocks.emptySocket, "emptySocket");
GameRegistry.registerBlock(ModBlocks.bloodStoneBrick, "bloodStoneBrick");
GameRegistry.registerBlock(ModBlocks.largeBloodStoneBrick, "largeBloodStoneBrick");
GameRegistry.registerBlock(ModBlocks.blockWritingTable, "blockWritingTable");
GameRegistry.registerBlock(ModBlocks.blockHomHeart, "blockHomHeart");
GameRegistry.registerBlock(ModBlocks.blockPedestal, "blockPedestal");
GameRegistry.registerBlock(ModBlocks.blockPlinth, "blockPlinth");
GameRegistry.registerBlock(ModBlocks.blockTeleposer, "blockTeleposer");
GameRegistry.registerBlock(ModBlocks.spectralBlock, "spectralBlock");
GameRegistry.registerBlock(ModBlocks.blockBloodLight, "bloodLight");
GameRegistry.registerBlock(ModBlocks.blockStabilityGlyph, ItemStabilityGlyphBlock.class, "blockStabilityGlyph");
GameRegistry.registerBlock(
ModBlocks.blockEnchantmentGlyph,
ItemEnchantmentGlyphBlock.class,
"blockEnchantmentGlyph");
// Reagents
GameRegistry.registerBlock(ModBlocks.blockWritingTable, "blockWritingTable");
GameRegistry.registerBlock(ModBlocks.blockAlchemicCalcinator, "blockAlchemicCalcinator");
GameRegistry.registerBlock(ModBlocks.blockReagentConduit, "blockReagentConduit");
GameRegistry.registerBlock(ModBlocks.blockCrystalBelljar, ItemBlockCrystalBelljar.class, "blockCrystalBelljar");
// Bound Armor
GameRegistry.registerBlock(ModBlocks.emptySocket, "emptySocket");
GameRegistry.registerBlock(ModBlocks.bloodSocket, "bloodSocket");
GameRegistry.registerBlock(ModBlocks.armourForge, "armourForge");
// Spells
GameRegistry.registerBlock(ModBlocks.blockHomHeart, "blockHomHeart");
GameRegistry.registerBlock(ModBlocks.blockConduit, "blockConduit");
GameRegistry.registerBlock(
ModBlocks.blockSpellParadigm,
@@ -187,20 +220,16 @@ public class ModBlocks {
ItemSpellEffectBlock.class,
"AlchemicalWizardry" + (ModBlocks.blockSpellEffect.getUnlocalizedName()));
// Misc
GameRegistry.registerBlock(ModBlocks.blockTeleposer, "blockTeleposer");
GameRegistry.registerBlock(ModBlocks.spectralBlock, "spectralBlock");
GameRegistry.registerBlock(ModBlocks.blockBloodLight, "bloodLight");
GameRegistry.registerBlock(ModBlocks.blockSpectralContainer, "spectralContainer");
GameRegistry.registerBlock(ModBlocks.blockLifeEssence, "lifeEssence");
GameRegistry.registerBlock(ModBlocks.blockDemonPortal, "demonPortalMain");
GameRegistry.registerBlock(ModBlocks.blockBuildingSchematicSaver, "blockSchemSaver");
GameRegistry.registerBlock(ModBlocks.blockReagentConduit, "blockReagentConduit");
GameRegistry.registerBlock(ModBlocks.blockAlchemicCalcinator, "blockAlchemicCalcinator");
GameRegistry.registerBlock(ModBlocks.blockCrystalBelljar, ItemBlockCrystalBelljar.class, "blockCrystalBelljar");
GameRegistry.registerBlock(ModBlocks.blockDemonChest, "blockDemonChest");
GameRegistry.registerBlock(ModBlocks.blockCrystal, ItemCrystalBlock.class, "blockCrystal");
GameRegistry.registerBlock(ModBlocks.blockBuildingSchematicSaver, "blockSchemSaver");
GameRegistry.registerBlock(ModBlocks.blockMimic, "blockMimic");
GameRegistry.registerBlock(
ModBlocks.blockEnchantmentGlyph, ItemEnchantmentGlyphBlock.class, "blockEnchantmentGlyph");
GameRegistry.registerBlock(ModBlocks.blockStabilityGlyph, ItemStabilityGlyphBlock.class, "blockStabilityGlyph");
GameRegistry.registerBlock(ModBlocks.blockCrucible, "blockCrucible");
}
public static void registerBlocksInInit() {}
@@ -1,8 +1,48 @@
package WayofTime.alchemicalWizardry;
import net.minecraft.creativetab.CreativeTabs;
import net.minecraft.init.Items;
import net.minecraft.item.Item;
import WayofTime.alchemicalWizardry.api.items.ItemSpellMultiTool;
import WayofTime.alchemicalWizardry.api.spell.SpellParadigmTool;
import WayofTime.alchemicalWizardry.common.items.*;
import WayofTime.alchemicalWizardry.common.items.AWBaseItems;
import WayofTime.alchemicalWizardry.common.items.ActivationCrystal;
import WayofTime.alchemicalWizardry.common.items.ApprenticeBloodOrb;
import WayofTime.alchemicalWizardry.common.items.ArchmageBloodOrb;
import WayofTime.alchemicalWizardry.common.items.ArmourInhibitor;
import WayofTime.alchemicalWizardry.common.items.BlankSpell;
import WayofTime.alchemicalWizardry.common.items.BloodShard;
import WayofTime.alchemicalWizardry.common.items.BoundAxe;
import WayofTime.alchemicalWizardry.common.items.BoundPickaxe;
import WayofTime.alchemicalWizardry.common.items.BoundShovel;
import WayofTime.alchemicalWizardry.common.items.CheatyItem;
import WayofTime.alchemicalWizardry.common.items.CreativeDagger;
import WayofTime.alchemicalWizardry.common.items.DaggerOfSacrifice;
import WayofTime.alchemicalWizardry.common.items.DemonPlacer;
import WayofTime.alchemicalWizardry.common.items.DemonicTelepositionFocus;
import WayofTime.alchemicalWizardry.common.items.EnergyBattery;
import WayofTime.alchemicalWizardry.common.items.EnergyBazooka;
import WayofTime.alchemicalWizardry.common.items.EnergyBlast;
import WayofTime.alchemicalWizardry.common.items.EnergySword;
import WayofTime.alchemicalWizardry.common.items.EnhancedTelepositionFocus;
import WayofTime.alchemicalWizardry.common.items.ItemAlchemyBase;
import WayofTime.alchemicalWizardry.common.items.ItemBloodLetterPack;
import WayofTime.alchemicalWizardry.common.items.ItemComplexSpellCrystal;
import WayofTime.alchemicalWizardry.common.items.ItemComponents;
import WayofTime.alchemicalWizardry.common.items.ItemDiabloKey;
import WayofTime.alchemicalWizardry.common.items.ItemIncense;
import WayofTime.alchemicalWizardry.common.items.ItemRitualDismantler;
import WayofTime.alchemicalWizardry.common.items.ItemRitualDiviner;
import WayofTime.alchemicalWizardry.common.items.LavaCrystal;
import WayofTime.alchemicalWizardry.common.items.LifeBucket;
import WayofTime.alchemicalWizardry.common.items.MagicianBloodOrb;
import WayofTime.alchemicalWizardry.common.items.MasterBloodOrb;
import WayofTime.alchemicalWizardry.common.items.ReinforcedTelepositionFocus;
import WayofTime.alchemicalWizardry.common.items.SacrificialDagger;
import WayofTime.alchemicalWizardry.common.items.ScribeTool;
import WayofTime.alchemicalWizardry.common.items.TelepositionFocus;
import WayofTime.alchemicalWizardry.common.items.TranscendentBloodOrb;
import WayofTime.alchemicalWizardry.common.items.armour.BoundArmour;
import WayofTime.alchemicalWizardry.common.items.armour.OmegaArmourEarth;
import WayofTime.alchemicalWizardry.common.items.armour.OmegaArmourFire;
@@ -49,133 +89,46 @@ import WayofTime.alchemicalWizardry.common.items.sigil.SigilVoid;
import WayofTime.alchemicalWizardry.common.items.sigil.SigilWater;
import WayofTime.alchemicalWizardry.common.items.sigil.holding.SigilOfHolding;
import cpw.mods.fml.common.registry.GameRegistry;
import net.minecraft.creativetab.CreativeTabs;
import net.minecraft.init.Items;
import net.minecraft.item.Item;
/**
* Created with IntelliJ IDEA.
* User: Pokefenn
* Date: 17/01/14
* Time: 19:48
* Created with IntelliJ IDEA. User: Pokefenn Date: 17/01/14 Time: 19:48
*/
public class ModItems {
// Orbs
public static Item weakBloodOrb;
public static Item apprenticeBloodOrb;
public static Item magicianBloodOrb;
public static Item energyBlaster;
public static Item energyBlasterSecondTier;
public static Item energyBlasterThirdTier;
public static Item masterBloodOrb;
public static Item archmageBloodOrb;
public static Item transcendentBloodOrb;
public static Item creativeFiller;
// Bound Tools/Weapons
public static Item energySword;
public static Item lavaCrystal;
public static Item waterSigil;
public static Item lavaSigil;
public static Item voidSigil;
public static Item blankSlate;
public static Item reinforcedSlate;
public static Item sacrificialDagger;
public static Item daggerOfSacrifice;
public static Item airSigil;
public static Item sigilOfTheFastMiner;
public static Item sigilOfElementalAffinity;
public static Item sigilOfHaste;
public static Item sigilOfHolding;
public static Item divinationSigil;
public static Item waterScribeTool;
public static Item fireScribeTool;
public static Item earthScribeTool;
public static Item airScribeTool;
public static Item dawnScribeTool;
public static Item activationCrystal;
public static Item boundPickaxe;
public static Item boundAxe;
public static Item boundShovel;
public static Item boundHelmet;
public static Item boundPlate;
public static Item boundLeggings;
public static Item boundBoots;
public static Item weakBloodShard;
public static Item growthSigil;
public static Item blankSpell;
public static Item masterBloodOrb;
public static Item alchemyFlask;
public static Item standardBindingAgent;
public static Item mundanePowerCatalyst;
public static Item averagePowerCatalyst;
public static Item greaterPowerCatalyst;
public static Item mundaneLengtheningCatalyst;
public static Item averageLengtheningCatalyst;
public static Item greaterLengtheningCatalyst;
public static Item incendium;
public static Item magicales;
public static Item sanctus;
public static Item aether;
public static Item simpleCatalyst;
public static Item crepitous;
public static Item crystallos;
public static Item terrae;
public static Item aquasalus;
public static Item tennebrae;
public static Item demonBloodShard;
public static Item archmageBloodOrb;
public static Item sigilOfWind;
public static Item telepositionFocus;
public static Item enhancedTelepositionFocus;
public static Item reinforcedTelepositionFocus;
public static Item demonicTelepositionFocus;
public static Item imbuedSlate;
public static Item demonicSlate;
public static Item duskScribeTool;
public static Item sigilOfTheBridge;
public static Item armourInhibitor;
public static Item creativeFiller;
public static Item demonPlacer;
public static Item creativeDagger;
public static Item customTool;
public static Item energyBlaster;
public static Item energyBlasterSecondTier;
public static Item energyBlasterThirdTier;
public static Item energyBazooka;
public static Item energyBazookaSecondTier;
public static Item energyBazookaThirdTier;
public static Item baseItems;
public static Item baseAlchemyItems;
// Armor
public static Item itemBloodPack;
public static Item weakFillingAgent;
public static Item standardFillingAgent;
public static Item enhancedFillingAgent;
public static Item weakBindingAgent;
public static Item itemRitualDiviner;
public static Item sanguineHelmet;
public static Item sanguineRobe;
public static Item sanguinePants;
public static Item sanguineBoots;
public static Item focusBloodBlast;
public static Item focusGravityWell;
public static Item sigilOfMagnetism;
public static Item itemKeyOfDiablo;
public static Item energyBazooka;
public static Item energyBazookaSecondTier;
public static Item energyBazookaThirdTier;
public static Item itemBloodLightSigil;
public static Item itemComplexSpellCrystal;
public static Item itemBloodFrame;
public static Item itemSigilOfEnderSeverance;
public static Item itemSigilOfSupression;
public static Item itemFluidSigil;
public static Item itemSeerSigil;
public static Item itemCombinationalCatalyst;
public static Item customTool;
public static Item itemAttunedCrystal;
public static Item itemTankSegmenter;
public static Item itemDestinationClearer;
public static Item itemHarvestSigil;
public static Item itemCompressionSigil;
public static Item bucketLife;
public static Item itemBloodPack;
public static Item transcendentBloodOrb;
public static Item itemAssassinSigil;
public static Item boundHelmet;
public static Item boundPlate;
public static Item boundLeggings;
public static Item boundBoots;
public static Item boundHelmetWater;
public static Item boundPlateWater;
@@ -197,125 +150,146 @@ public class ModItems {
public static Item boundLeggingsFire;
public static Item boundBootsFire;
// Sigils
// T1
public static Item divinationSigil;
public static Item itemSeerSigil;
public static Item waterSigil;
public static Item lavaSigil;
// T2
public static Item airSigil;
public static Item voidSigil;
public static Item growthSigil;
public static Item sigilOfTheFastMiner;
// T3
public static Item sigilOfElementalAffinity;
public static Item itemBloodLightSigil;
public static Item sigilOfTheBridge;
public static Item sigilOfMagnetism;
public static Item sigilOfHolding;
// T4
public static Item sigilOfWind;
public static Item itemSigilOfSupression;
public static Item sigilOfHaste;
public static Item itemSigilOfEnderSeverance;
public static Item itemCompressionSigil;
// T5
public static Item itemHarvestSigil;
// Unimplemented
public static Item itemFluidSigil;
public static Item itemAssassinSigil;
// Crafting Materials
public static Item blankSlate;
public static Item reinforcedSlate;
public static Item imbuedSlate;
public static Item demonicSlate;
public static Item baseItems;
public static Item weakBloodShard;
public static Item demonBloodShard;
public static Item bucketLife;
// Alchemy
// Potions
public static Item alchemyFlask;
public static Item simpleCatalyst;
public static Item weakBindingAgent;
public static Item standardBindingAgent;
public static Item mundanePowerCatalyst;
public static Item averagePowerCatalyst;
public static Item greaterPowerCatalyst;
public static Item mundaneLengtheningCatalyst;
public static Item averageLengtheningCatalyst;
public static Item greaterLengtheningCatalyst;
public static Item weakFillingAgent;
public static Item standardFillingAgent;
public static Item enhancedFillingAgent;
// Reagents
public static Item itemAttunedCrystal;
public static Item itemTankSegmenter;
public static Item itemDestinationClearer;
public static Item incendium;
public static Item magicales;
public static Item sanctus;
public static Item aether;
public static Item crepitous;
public static Item crystallos;
public static Item terrae;
public static Item aquasalus;
public static Item tennebrae;
// Other Alchemy Items
public static Item baseAlchemyItems;
public static Item itemIncense;
// Unused
public static Item itemCombinationalCatalyst;
// Utility
public static Item sacrificialDagger;
public static Item daggerOfSacrifice;
public static Item creativeDagger;
public static Item lavaCrystal;
public static Item itemKeyOfDiablo;
public static Item armourInhibitor;
public static Item telepositionFocus;
public static Item enhancedTelepositionFocus;
public static Item reinforcedTelepositionFocus;
public static Item demonicTelepositionFocus;
public static Item inputRoutingFocus;
public static Item outputRoutingFocus;
public static Item blankSpell;
public static Item itemComplexSpellCrystal;
public static Item demonPlacer;
// Rituals
public static Item waterScribeTool;
public static Item fireScribeTool;
public static Item earthScribeTool;
public static Item airScribeTool;
public static Item duskScribeTool;
public static Item dawnScribeTool;
public static Item itemRitualDiviner;
public static Item ritualDismantler;
public static Item activationCrystal;
// Guide-API
public static Item itemMailCatalogue;
public static Item itemIncense;
public static Item ritualDismantler;
// Unimplemented
public static Item focusBloodBlast;
public static Item focusGravityWell;
public static Item itemBloodFrame;
public static void init() {
// Orbs
weakBloodOrb = new EnergyBattery(5000).setUnlocalizedName("weakBloodOrb");
apprenticeBloodOrb = new ApprenticeBloodOrb(25000).setUnlocalizedName("apprenticeBloodOrb");
magicianBloodOrb = new MagicianBloodOrb(150000).setUnlocalizedName("magicianBloodOrb");
masterBloodOrb = new MasterBloodOrb(1000000).setUnlocalizedName("masterBloodOrb");
archmageBloodOrb = new ArchmageBloodOrb(10000000).setUnlocalizedName("archmageBloodOrb");
transcendentBloodOrb = new TranscendentBloodOrb(30000000).setUnlocalizedName("transcendentBloodOrb");
energyBlaster = new EnergyBlast(1).setUnlocalizedName("energyBlast");
energyBlasterSecondTier = new EnergyBlast(2).setUnlocalizedName("energyBlastSecondTier");
energyBlasterThirdTier = new EnergyBlast(3).setUnlocalizedName("energyBlastThirdTier");
creativeFiller = new CheatyItem().setUnlocalizedName("cheatyItem");
// Bound Tools/Weapons
energySword = new EnergySword().setUnlocalizedName("energySword");
lavaCrystal = new LavaCrystal().setUnlocalizedName("lavaCrystal");
waterSigil = new SigilWater().setUnlocalizedName("waterSigil");
lavaSigil = new SigilLava().setUnlocalizedName("lavaSigil");
voidSigil = new SigilVoid().setUnlocalizedName("voidSigil");
blankSlate = new AWBaseItems().setUnlocalizedName("blankSlate");
reinforcedSlate = new AWBaseItems().setUnlocalizedName("reinforcedSlate");
sacrificialDagger = new SacrificialDagger().setUnlocalizedName("sacrificialDagger");
daggerOfSacrifice = new DaggerOfSacrifice().setUnlocalizedName("daggerOfSacrifice");
airSigil = new SigilAir().setUnlocalizedName("airSigil");
sigilOfTheFastMiner = new SigilOfTheFastMiner().setUnlocalizedName("sigilOfTheFastMiner");
sigilOfElementalAffinity = new SigilOfElementalAffinity().setUnlocalizedName("sigilOfElementalAffinity");
sigilOfHaste = new SigilOfHaste().setUnlocalizedName("sigilOfHaste");
sigilOfHolding = new SigilOfHolding().setUnlocalizedName("sigilOfHolding");
divinationSigil = new SigilDivination().setUnlocalizedName("divinationSigil");
waterScribeTool = new WaterScribeTool().setUnlocalizedName("waterScribeTool");
fireScribeTool = new FireScribeTool().setUnlocalizedName("fireScribeTool");
earthScribeTool = new EarthScribeTool().setUnlocalizedName("earthScribeTool");
airScribeTool = new AirScribeTool().setUnlocalizedName("airScribeTool");
activationCrystal = new ActivationCrystal();
boundPickaxe = new BoundPickaxe().setUnlocalizedName("boundPickaxe");
boundAxe = new BoundAxe().setUnlocalizedName("boundAxe");
boundShovel = new BoundShovel().setUnlocalizedName("boundShovel");
customTool = new ItemSpellMultiTool().setUnlocalizedName("multiTool");
SpellParadigmTool.customTool = customTool;
energyBlaster = new EnergyBlast(1).setUnlocalizedName("energyBlast");
energyBlasterSecondTier = new EnergyBlast(2).setUnlocalizedName("energyBlastSecondTier");
energyBlasterThirdTier = new EnergyBlast(3).setUnlocalizedName("energyBlastThirdTier");
energyBazooka = new EnergyBazooka(1).setUnlocalizedName("energyBazooka");
energyBazookaSecondTier = new EnergyBazooka(2).setUnlocalizedName("energyBazookaSecondTier");
energyBazookaThirdTier = new EnergyBazooka(3).setUnlocalizedName("energyBazookaThirdTier");
// Armor
itemBloodPack = new ItemBloodLetterPack().setUnlocalizedName("itemBloodPack");
boundHelmet = new BoundArmour(0).setUnlocalizedName("boundHelmet");
boundPlate = new BoundArmour(1).setUnlocalizedName("boundPlate");
boundLeggings = new BoundArmour(2).setUnlocalizedName("boundLeggings");
boundBoots = new BoundArmour(3).setUnlocalizedName("boundBoots");
weakBloodShard = new BloodShard().setUnlocalizedName("weakBloodShard");
growthSigil = new SigilOfGrowth().setUnlocalizedName("growthSigil");
blankSpell = new BlankSpell().setUnlocalizedName("blankSpell");
alchemyFlask = new AlchemyFlask().setUnlocalizedName("alchemyFlask");
standardBindingAgent = new StandardBindingAgent().setUnlocalizedName("standardBindingAgent");
mundanePowerCatalyst = new MundanePowerCatalyst().setUnlocalizedName("mundanePowerCatalyst");
averagePowerCatalyst = new AveragePowerCatalyst().setUnlocalizedName("averagePowerCatalyst");
greaterPowerCatalyst = new GreaterPowerCatalyst().setUnlocalizedName("greaterPowerCatalyst");
mundaneLengtheningCatalyst = new MundaneLengtheningCatalyst().setUnlocalizedName("mundaneLengtheningCatalyst");
averageLengtheningCatalyst = new AverageLengtheningCatalyst().setUnlocalizedName("averageLengtheningCatalyst");
greaterLengtheningCatalyst = new GreaterLengtheningCatalyst().setUnlocalizedName("greaterLengtheningCatalyst");
incendium = new AlchemyReagent().setUnlocalizedName("incendium");
magicales = new AlchemyReagent().setUnlocalizedName("magicales");
sanctus = new AlchemyReagent().setUnlocalizedName("sanctus");
aether = new AlchemyReagent().setUnlocalizedName("aether");
simpleCatalyst = new AlchemyReagent().setUnlocalizedName("simpleCatalyst");
crepitous = new AlchemyReagent().setUnlocalizedName("crepitous");
crystallos = new AlchemyReagent().setUnlocalizedName("crystallos");
terrae = new AlchemyReagent().setUnlocalizedName("terrae");
aquasalus = new AlchemyReagent().setUnlocalizedName("aquasalus");
tennebrae = new AlchemyReagent().setUnlocalizedName("tennebrae");
demonBloodShard = new BloodShard().setUnlocalizedName("demonBloodShard");
sigilOfWind = new SigilOfWind().setUnlocalizedName("sigilOfWind");
telepositionFocus = new TelepositionFocus(1).setUnlocalizedName("telepositionFocus");
enhancedTelepositionFocus = new EnhancedTelepositionFocus().setUnlocalizedName("enhancedTelepositionFocus");
reinforcedTelepositionFocus =
new ReinforcedTelepositionFocus().setUnlocalizedName("reinforcedTelepositionFocus");
demonicTelepositionFocus = new DemonicTelepositionFocus().setUnlocalizedName("demonicTelepositionFocus");
imbuedSlate = new AWBaseItems().setUnlocalizedName("imbuedSlate");
demonicSlate = new AWBaseItems().setUnlocalizedName("demonicSlate");
duskScribeTool = new DuskScribeTool().setUnlocalizedName("duskScribeTool");
sigilOfTheBridge = new SigilOfTheBridge().setUnlocalizedName("sigilOfTheBridge");
armourInhibitor = new ArmourInhibitor().setUnlocalizedName("armourInhibitor");
creativeFiller = new CheatyItem().setUnlocalizedName("cheatyItem");
demonPlacer = new DemonPlacer().setUnlocalizedName("demonPlacer");
creativeDagger = new CreativeDagger().setUnlocalizedName("creativeDagger");
weakFillingAgent = new WeakFillingAgent().setUnlocalizedName("weakFillingAgent");
standardFillingAgent = new StandardFillingAgent().setUnlocalizedName("standardFillingAgent");
enhancedFillingAgent = new EnhancedFillingAgent().setUnlocalizedName("enhancedFillingAgent");
weakBindingAgent = new WeakBindingAgent().setUnlocalizedName("weakBindingAgent");
itemRitualDiviner = new ItemRitualDiviner().setUnlocalizedName("ritualDiviner");
sigilOfMagnetism = new SigilOfMagnetism().setUnlocalizedName("sigilOfMagnetism");
itemKeyOfDiablo = new ItemDiabloKey().setUnlocalizedName("itemDiabloKey");
energyBazooka = new EnergyBazooka(1).setUnlocalizedName("energyBazooka");
energyBazookaSecondTier = new EnergyBazooka(2).setUnlocalizedName("energyBazookaSecondTier");
energyBazookaThirdTier = new EnergyBazooka(3).setUnlocalizedName("energyBazookaThirdTier");
itemBloodLightSigil = new SigilBloodLight().setUnlocalizedName("bloodLightSigil");
itemComplexSpellCrystal = new ItemComplexSpellCrystal().setUnlocalizedName("itemComplexSpellCrystal");
bucketLife = new LifeBucket(ModBlocks.blockLifeEssence)
.setUnlocalizedName("bucketLife")
.setContainerItem(Items.bucket)
.setCreativeTab(CreativeTabs.tabMisc);
itemSigilOfEnderSeverance = (new SigilOfEnderSeverance()).setUnlocalizedName("itemSigilOfEnderSeverance");
baseItems = new ItemComponents().setUnlocalizedName("baseItems");
baseAlchemyItems = new ItemAlchemyBase().setUnlocalizedName("baseAlchemyItems");
itemSigilOfSupression = new SigilOfSupression().setUnlocalizedName("itemSigilOfSupression");
itemFluidSigil = new SigilFluid().setUnlocalizedName("itemFluidSigil");
itemSeerSigil = new SigilSeer().setUnlocalizedName("itemSeerSigil");
customTool = new ItemSpellMultiTool().setUnlocalizedName("multiTool");
SpellParadigmTool.customTool = customTool;
itemCombinationalCatalyst = new CombinationalCatalyst().setUnlocalizedName("itemCombinationalCatalyst");
itemAttunedCrystal = new ItemAttunedCrystal().setUnlocalizedName("itemAttunedCrystal");
itemTankSegmenter = new ItemTankSegmenter().setUnlocalizedName("itemTankSegmenter");
itemDestinationClearer = new ItemDestinationClearer().setUnlocalizedName("destinationClearer");
dawnScribeTool = new DawnScribeTool().setUnlocalizedName("dawnScribeTool");
itemBloodPack = new ItemBloodLetterPack().setUnlocalizedName("itemBloodPack");
itemHarvestSigil = new SigilHarvest().setUnlocalizedName("itemHarvestSigil");
itemCompressionSigil = new SigilPackRat().setUnlocalizedName("itemCompressionSigil");
itemAssassinSigil = new SigilOfTheAssassin().setUnlocalizedName("itemAssassinSigil");
boundHelmetWater = new OmegaArmourWater(0).setUnlocalizedName("boundHelmetWater");
boundPlateWater = new OmegaArmourWater(1).setUnlocalizedName("boundPlateWater");
@@ -337,122 +311,140 @@ public class ModItems {
boundLeggingsFire = new OmegaArmourFire(2).setUnlocalizedName("boundLeggingsFire");
boundBootsFire = new OmegaArmourFire(3).setUnlocalizedName("boundBootsFire");
// Sigils
// T1
divinationSigil = new SigilDivination().setUnlocalizedName("divinationSigil");
itemSeerSigil = new SigilSeer().setUnlocalizedName("itemSeerSigil");
waterSigil = new SigilWater().setUnlocalizedName("waterSigil");
lavaSigil = new SigilLava().setUnlocalizedName("lavaSigil");
// T2
airSigil = new SigilAir().setUnlocalizedName("airSigil");
voidSigil = new SigilVoid().setUnlocalizedName("voidSigil");
growthSigil = new SigilOfGrowth().setUnlocalizedName("growthSigil");
sigilOfTheFastMiner = new SigilOfTheFastMiner().setUnlocalizedName("sigilOfTheFastMiner");
// T3
sigilOfElementalAffinity = new SigilOfElementalAffinity().setUnlocalizedName("sigilOfElementalAffinity");
itemBloodLightSigil = new SigilBloodLight().setUnlocalizedName("bloodLightSigil");
sigilOfTheBridge = new SigilOfTheBridge().setUnlocalizedName("sigilOfTheBridge");
sigilOfMagnetism = new SigilOfMagnetism().setUnlocalizedName("sigilOfMagnetism");
sigilOfHolding = new SigilOfHolding().setUnlocalizedName("sigilOfHolding");
// T4
sigilOfWind = new SigilOfWind().setUnlocalizedName("sigilOfWind");
itemSigilOfSupression = new SigilOfSupression().setUnlocalizedName("itemSigilOfSupression");
sigilOfHaste = new SigilOfHaste().setUnlocalizedName("sigilOfHaste");
itemSigilOfEnderSeverance = (new SigilOfEnderSeverance()).setUnlocalizedName("itemSigilOfEnderSeverance");
itemCompressionSigil = new SigilPackRat().setUnlocalizedName("itemCompressionSigil");
// T5
itemHarvestSigil = new SigilHarvest().setUnlocalizedName("itemHarvestSigil");
// Unimplemented
itemFluidSigil = new SigilFluid().setUnlocalizedName("itemFluidSigil");
itemAssassinSigil = new SigilOfTheAssassin().setUnlocalizedName("itemAssassinSigil");
// Crafting Materials
blankSlate = new AWBaseItems().setUnlocalizedName("blankSlate");
reinforcedSlate = new AWBaseItems().setUnlocalizedName("reinforcedSlate");
imbuedSlate = new AWBaseItems().setUnlocalizedName("imbuedSlate");
demonicSlate = new AWBaseItems().setUnlocalizedName("demonicSlate");
baseItems = new ItemComponents().setUnlocalizedName("baseItems");
weakBloodShard = new BloodShard().setUnlocalizedName("weakBloodShard");
demonBloodShard = new BloodShard().setUnlocalizedName("demonBloodShard");
bucketLife = new LifeBucket(ModBlocks.blockLifeEssence).setUnlocalizedName("bucketLife")
.setContainerItem(Items.bucket).setCreativeTab(CreativeTabs.tabMisc);
// Alchemy
// Potions
alchemyFlask = new AlchemyFlask().setUnlocalizedName("alchemyFlask");
simpleCatalyst = new AlchemyReagent().setUnlocalizedName("simpleCatalyst");
weakBindingAgent = new WeakBindingAgent().setUnlocalizedName("weakBindingAgent");
standardBindingAgent = new StandardBindingAgent().setUnlocalizedName("standardBindingAgent");
mundanePowerCatalyst = new MundanePowerCatalyst().setUnlocalizedName("mundanePowerCatalyst");
averagePowerCatalyst = new AveragePowerCatalyst().setUnlocalizedName("averagePowerCatalyst");
greaterPowerCatalyst = new GreaterPowerCatalyst().setUnlocalizedName("greaterPowerCatalyst");
mundaneLengtheningCatalyst = new MundaneLengtheningCatalyst().setUnlocalizedName("mundaneLengtheningCatalyst");
averageLengtheningCatalyst = new AverageLengtheningCatalyst().setUnlocalizedName("averageLengtheningCatalyst");
greaterLengtheningCatalyst = new GreaterLengtheningCatalyst().setUnlocalizedName("greaterLengtheningCatalyst");
weakFillingAgent = new WeakFillingAgent().setUnlocalizedName("weakFillingAgent");
standardFillingAgent = new StandardFillingAgent().setUnlocalizedName("standardFillingAgent");
enhancedFillingAgent = new EnhancedFillingAgent().setUnlocalizedName("enhancedFillingAgent");
// Reagents
itemAttunedCrystal = new ItemAttunedCrystal().setUnlocalizedName("itemAttunedCrystal");
itemTankSegmenter = new ItemTankSegmenter().setUnlocalizedName("itemTankSegmenter");
itemDestinationClearer = new ItemDestinationClearer().setUnlocalizedName("destinationClearer");
incendium = new AlchemyReagent().setUnlocalizedName("incendium");
magicales = new AlchemyReagent().setUnlocalizedName("magicales");
sanctus = new AlchemyReagent().setUnlocalizedName("sanctus");
aether = new AlchemyReagent().setUnlocalizedName("aether");
crepitous = new AlchemyReagent().setUnlocalizedName("crepitous");
crystallos = new AlchemyReagent().setUnlocalizedName("crystallos");
terrae = new AlchemyReagent().setUnlocalizedName("terrae");
aquasalus = new AlchemyReagent().setUnlocalizedName("aquasalus");
tennebrae = new AlchemyReagent().setUnlocalizedName("tennebrae");
// Other Alchemy Items
baseAlchemyItems = new ItemAlchemyBase().setUnlocalizedName("baseAlchemyItems");
itemIncense = new ItemIncense().setUnlocalizedName("bloodMagicIncenseItem");
// Unused
itemCombinationalCatalyst = new CombinationalCatalyst().setUnlocalizedName("itemCombinationalCatalyst");
// Utility
sacrificialDagger = new SacrificialDagger().setUnlocalizedName("sacrificialDagger");
daggerOfSacrifice = new DaggerOfSacrifice().setUnlocalizedName("daggerOfSacrifice");
creativeDagger = new CreativeDagger().setUnlocalizedName("creativeDagger");
lavaCrystal = new LavaCrystal().setUnlocalizedName("lavaCrystal");
itemKeyOfDiablo = new ItemDiabloKey().setUnlocalizedName("itemDiabloKey");
armourInhibitor = new ArmourInhibitor().setUnlocalizedName("armourInhibitor");
telepositionFocus = new TelepositionFocus(1).setUnlocalizedName("telepositionFocus");
enhancedTelepositionFocus = new EnhancedTelepositionFocus().setUnlocalizedName("enhancedTelepositionFocus");
reinforcedTelepositionFocus = new ReinforcedTelepositionFocus()
.setUnlocalizedName("reinforcedTelepositionFocus");
demonicTelepositionFocus = new DemonicTelepositionFocus().setUnlocalizedName("demonicTelepositionFocus");
inputRoutingFocus = new InputRoutingFocus().setUnlocalizedName("inputRoutingFocus");
outputRoutingFocus = new OutputRoutingFocus().setUnlocalizedName("outputRoutingFocus");
blankSpell = new BlankSpell().setUnlocalizedName("blankSpell");
itemComplexSpellCrystal = new ItemComplexSpellCrystal().setUnlocalizedName("itemComplexSpellCrystal");
demonPlacer = new DemonPlacer().setUnlocalizedName("demonPlacer");
itemIncense = new ItemIncense().setUnlocalizedName("bloodMagicIncenseItem");
// Rituals
waterScribeTool = new ScribeTool(1, "WaterScribeTool").setUnlocalizedName("waterScribeTool");
fireScribeTool = new ScribeTool(2, "FireScribeTool").setUnlocalizedName("fireScribeTool");
earthScribeTool = new ScribeTool(3, "EarthScribeTool").setUnlocalizedName("earthScribeTool");
airScribeTool = new ScribeTool(4, "AirScribeTool").setUnlocalizedName("airScribeTool");
duskScribeTool = new ScribeTool(5, "DuskScribeTool").setUnlocalizedName("duskScribeTool");
dawnScribeTool = new ScribeTool(6, "DawnScribeTool").setUnlocalizedName("dawnScribeTool");
itemRitualDiviner = new ItemRitualDiviner().setUnlocalizedName("ritualDiviner");
ritualDismantler = new ItemRitualDismantler().setUnlocalizedName("ritualDismantler");
activationCrystal = new ActivationCrystal();
}
public static void registerItems() {
// Orbs
GameRegistry.registerItem(ModItems.weakBloodOrb, "weakBloodOrb");
GameRegistry.registerItem(ModItems.apprenticeBloodOrb, "apprenticeBloodOrb");
GameRegistry.registerItem(ModItems.magicianBloodOrb, "magicianBloodOrb");
GameRegistry.registerItem(ModItems.energyBlaster, "energyBlaster");
GameRegistry.registerItem(ModItems.energyBlasterSecondTier, "energyBlasterSecondTier");
GameRegistry.registerItem(ModItems.energyBlasterThirdTier, "energyBlasterThirdTier");
GameRegistry.registerItem(ModItems.masterBloodOrb, "masterBloodOrb");
GameRegistry.registerItem(ModItems.archmageBloodOrb, "archmageBloodOrb");
GameRegistry.registerItem(ModItems.transcendentBloodOrb, "transcendentBloodOrb");
GameRegistry.registerItem(ModItems.creativeFiller, "creativeFiller");
// Bound Tools/Weapons
GameRegistry.registerItem(ModItems.energySword, "energySword");
GameRegistry.registerItem(ModItems.lavaCrystal, "lavaCrystal");
GameRegistry.registerItem(ModItems.waterSigil, "waterSigil");
GameRegistry.registerItem(ModItems.lavaSigil, "lavaSigil");
GameRegistry.registerItem(ModItems.voidSigil, "voidSigil");
GameRegistry.registerItem(ModItems.blankSlate, "blankSlate");
GameRegistry.registerItem(ModItems.reinforcedSlate, "reinforcedSlate");
GameRegistry.registerItem(ModItems.sacrificialDagger, "sacrificialKnife");
GameRegistry.registerItem(ModItems.daggerOfSacrifice, "daggerOfSacrifice");
GameRegistry.registerItem(ModItems.airSigil, "airSigil");
GameRegistry.registerItem(ModItems.sigilOfTheFastMiner, "sigilOfTheFastMiner");
GameRegistry.registerItem(ModItems.sigilOfElementalAffinity, "sigilOfElementalAffinity");
GameRegistry.registerItem(ModItems.sigilOfHaste, "sigilOfHaste");
GameRegistry.registerItem(ModItems.sigilOfHolding, "sigilOfHolding");
GameRegistry.registerItem(ModItems.divinationSigil, "divinationSigil");
GameRegistry.registerItem(ModItems.waterScribeTool, "waterScribeTool");
GameRegistry.registerItem(ModItems.fireScribeTool, "fireScribeTool");
GameRegistry.registerItem(ModItems.earthScribeTool, "earthScribeTool");
GameRegistry.registerItem(ModItems.airScribeTool, "airScribeTool");
GameRegistry.registerItem(ModItems.activationCrystal, "activationCrystal");
GameRegistry.registerItem(ModItems.boundPickaxe, "boundPickaxe");
GameRegistry.registerItem(ModItems.boundAxe, "boundAxe");
GameRegistry.registerItem(ModItems.boundShovel, "boundShovel");
GameRegistry.registerItem(ModItems.customTool, "customTool");
GameRegistry.registerItem(ModItems.energyBlaster, "energyBlaster");
GameRegistry.registerItem(ModItems.energyBlasterSecondTier, "energyBlasterSecondTier");
GameRegistry.registerItem(ModItems.energyBlasterThirdTier, "energyBlasterThirdTier");
GameRegistry.registerItem(ModItems.energyBazooka, "energyBazooka");
GameRegistry.registerItem(ModItems.energyBazookaSecondTier, "energyBazookaSecondTier");
GameRegistry.registerItem(ModItems.energyBazookaThirdTier, "energyBazookaThirdTier");
// Armor
GameRegistry.registerItem(ModItems.itemBloodPack, "itemBloodPack");
GameRegistry.registerItem(ModItems.boundHelmet, "boundHelmet");
GameRegistry.registerItem(ModItems.boundPlate, "boundPlate");
GameRegistry.registerItem(ModItems.boundLeggings, "boundLeggings");
GameRegistry.registerItem(ModItems.boundBoots, "boundBoots");
GameRegistry.registerItem(ModItems.weakBloodShard, "weakBloodShard");
GameRegistry.registerItem(ModItems.growthSigil, "growthSigil");
GameRegistry.registerItem(ModItems.blankSpell, "blankSpell");
GameRegistry.registerItem(ModItems.masterBloodOrb, "masterBloodOrb");
GameRegistry.registerItem(ModItems.alchemyFlask, "alchemyFlask");
GameRegistry.registerItem(ModItems.standardBindingAgent, "standardBindingAgent");
GameRegistry.registerItem(ModItems.mundanePowerCatalyst, "mundanePowerCatalyst");
GameRegistry.registerItem(ModItems.averagePowerCatalyst, "averagePowerCatalyst");
GameRegistry.registerItem(ModItems.greaterPowerCatalyst, "greaterPowerCatalyst");
GameRegistry.registerItem(ModItems.mundaneLengtheningCatalyst, "mundaneLengtheningCatalyst");
GameRegistry.registerItem(ModItems.averageLengtheningCatalyst, "averageLengtheningCatalyst");
GameRegistry.registerItem(ModItems.greaterLengtheningCatalyst, "greaterLengtheningCatalyst");
GameRegistry.registerItem(ModItems.incendium, "incendium");
GameRegistry.registerItem(ModItems.magicales, "magicales");
GameRegistry.registerItem(ModItems.sanctus, "sanctus");
GameRegistry.registerItem(ModItems.aether, "aether");
GameRegistry.registerItem(ModItems.simpleCatalyst, "simpleCatalyst");
GameRegistry.registerItem(ModItems.crepitous, "crepitous");
GameRegistry.registerItem(ModItems.crystallos, "crystallos");
GameRegistry.registerItem(ModItems.terrae, "terrae");
GameRegistry.registerItem(ModItems.aquasalus, "aquasalus");
GameRegistry.registerItem(ModItems.tennebrae, "tennebrae");
GameRegistry.registerItem(ModItems.demonBloodShard, "demonBloodShard");
GameRegistry.registerItem(ModItems.archmageBloodOrb, "archmageBloodOrb");
GameRegistry.registerItem(ModItems.transcendentBloodOrb, "transcendentBloodOrb");
GameRegistry.registerItem(ModItems.sigilOfWind, "sigilOfWind");
GameRegistry.registerItem(ModItems.telepositionFocus, "telepositionFocus");
GameRegistry.registerItem(ModItems.enhancedTelepositionFocus, "enhancedTelepositionFocus");
GameRegistry.registerItem(ModItems.reinforcedTelepositionFocus, "reinforcedTelepositionFocus");
GameRegistry.registerItem(ModItems.demonicTelepositionFocus, "demonicTelepositionFocus");
GameRegistry.registerItem(ModItems.imbuedSlate, "imbuedSlate");
GameRegistry.registerItem(ModItems.demonicSlate, "demonicSlate");
GameRegistry.registerItem(ModItems.duskScribeTool, "duskScribeTool");
GameRegistry.registerItem(ModItems.sigilOfTheBridge, "sigilOfTheBridge");
GameRegistry.registerItem(ModItems.armourInhibitor, "armourInhibitor");
GameRegistry.registerItem(ModItems.creativeFiller, "creativeFiller");
GameRegistry.registerItem(ModItems.demonPlacer, "demonPlacer");
GameRegistry.registerItem(ModItems.creativeDagger, "creativeDagger");
GameRegistry.registerItem(ModItems.weakFillingAgent, "weakFillingAgent");
GameRegistry.registerItem(ModItems.standardFillingAgent, "standardFillingAgent");
GameRegistry.registerItem(ModItems.enhancedFillingAgent, "enhancedFillingAgent");
GameRegistry.registerItem(ModItems.weakBindingAgent, "weakBindingAgent");
GameRegistry.registerItem(ModItems.itemRitualDiviner, "itemRitualDiviner");
GameRegistry.registerItem(ModItems.sigilOfMagnetism, "sigilOfMagnetism");
GameRegistry.registerItem(ModItems.itemKeyOfDiablo, "itemKeyOfDiablo");
GameRegistry.registerItem(ModItems.energyBazooka, "energyBazooka");
GameRegistry.registerItem(ModItems.energyBazookaSecondTier, "energyBazookaSecondTier");
GameRegistry.registerItem(ModItems.energyBazookaThirdTier, "energyBazookaThirdTier");
GameRegistry.registerItem(ModItems.itemBloodLightSigil, "itemBloodLightSigil");
GameRegistry.registerItem(ModItems.itemComplexSpellCrystal, "itemComplexSpellCrystal");
GameRegistry.registerItem(ModItems.itemSigilOfSupression, "sigilOfSupression");
GameRegistry.registerItem(ModItems.itemSigilOfEnderSeverance, "sigilOfEnderSeverance");
GameRegistry.registerItem(ModItems.itemFluidSigil, "fluidSigil");
GameRegistry.registerItem(ModItems.itemSeerSigil, "seerSigil");
GameRegistry.registerItem(ModItems.customTool, "customTool");
GameRegistry.registerItem(ModItems.bucketLife, "bucketLife");
GameRegistry.registerItem(ModItems.itemCombinationalCatalyst, "itemCombinationalCatalyst");
GameRegistry.registerItem(ModItems.itemAttunedCrystal, "itemAttunedCrystal");
GameRegistry.registerItem(ModItems.itemTankSegmenter, "itemTankSegmenter");
GameRegistry.registerItem(ModItems.itemDestinationClearer, "itemDestinationClearer");
GameRegistry.registerItem(ModItems.baseItems, "bloodMagicBaseItems");
GameRegistry.registerItem(ModItems.baseAlchemyItems, "bloodMagicBaseAlchemyItems");
GameRegistry.registerItem(ModItems.dawnScribeTool, "dawnScribeTool");
GameRegistry.registerItem(ModItems.itemBloodPack, "itemBloodPack");
GameRegistry.registerItem(ModItems.itemHarvestSigil, "itemHarvestSigil");
GameRegistry.registerItem(ModItems.itemCompressionSigil, "itemCompressionSigil");
GameRegistry.registerItem(ModItems.itemAssassinSigil, "itemAssassinSigil");
GameRegistry.registerItem(ModItems.boundHelmetWater, "boundHelmetWater");
GameRegistry.registerItem(ModItems.boundPlateWater, "boundPlateWater");
@@ -474,10 +466,105 @@ public class ModItems {
GameRegistry.registerItem(ModItems.boundLeggingsFire, "boundLeggingsFire");
GameRegistry.registerItem(ModItems.boundBootsFire, "boundBootsFire");
// Sigils
// T1
GameRegistry.registerItem(ModItems.divinationSigil, "divinationSigil");
GameRegistry.registerItem(ModItems.itemSeerSigil, "seerSigil");
GameRegistry.registerItem(ModItems.waterSigil, "waterSigil");
GameRegistry.registerItem(ModItems.lavaSigil, "lavaSigil");
// T2
GameRegistry.registerItem(ModItems.airSigil, "airSigil");
GameRegistry.registerItem(ModItems.voidSigil, "voidSigil");
GameRegistry.registerItem(ModItems.growthSigil, "growthSigil");
GameRegistry.registerItem(ModItems.sigilOfTheFastMiner, "sigilOfTheFastMiner");
// T3
GameRegistry.registerItem(ModItems.sigilOfElementalAffinity, "sigilOfElementalAffinity");
GameRegistry.registerItem(ModItems.sigilOfTheBridge, "sigilOfTheBridge");
GameRegistry.registerItem(ModItems.itemBloodLightSigil, "itemBloodLightSigil");
GameRegistry.registerItem(ModItems.sigilOfMagnetism, "sigilOfMagnetism");
GameRegistry.registerItem(ModItems.sigilOfHolding, "sigilOfHolding");
// T4
GameRegistry.registerItem(ModItems.sigilOfWind, "sigilOfWind");
GameRegistry.registerItem(ModItems.itemSigilOfSupression, "sigilOfSupression");
GameRegistry.registerItem(ModItems.sigilOfHaste, "sigilOfHaste");
GameRegistry.registerItem(ModItems.itemSigilOfEnderSeverance, "sigilOfEnderSeverance");
GameRegistry.registerItem(ModItems.itemCompressionSigil, "itemCompressionSigil");
// T5
GameRegistry.registerItem(ModItems.itemHarvestSigil, "itemHarvestSigil");
// Unimplemented
GameRegistry.registerItem(ModItems.itemFluidSigil, "fluidSigil");
GameRegistry.registerItem(ModItems.itemAssassinSigil, "itemAssassinSigil");
// Crafting Materials
GameRegistry.registerItem(ModItems.blankSlate, "blankSlate");
GameRegistry.registerItem(ModItems.reinforcedSlate, "reinforcedSlate");
GameRegistry.registerItem(ModItems.imbuedSlate, "imbuedSlate");
GameRegistry.registerItem(ModItems.demonicSlate, "demonicSlate");
GameRegistry.registerItem(ModItems.baseItems, "bloodMagicBaseItems");
GameRegistry.registerItem(ModItems.weakBloodShard, "weakBloodShard");
GameRegistry.registerItem(ModItems.demonBloodShard, "demonBloodShard");
GameRegistry.registerItem(ModItems.bucketLife, "bucketLife");
// Alchemy
// Potions
GameRegistry.registerItem(ModItems.alchemyFlask, "alchemyFlask");
GameRegistry.registerItem(ModItems.simpleCatalyst, "simpleCatalyst");
GameRegistry.registerItem(ModItems.weakBindingAgent, "weakBindingAgent");
GameRegistry.registerItem(ModItems.standardBindingAgent, "standardBindingAgent");
GameRegistry.registerItem(ModItems.mundanePowerCatalyst, "mundanePowerCatalyst");
GameRegistry.registerItem(ModItems.averagePowerCatalyst, "averagePowerCatalyst");
GameRegistry.registerItem(ModItems.greaterPowerCatalyst, "greaterPowerCatalyst");
GameRegistry.registerItem(ModItems.mundaneLengtheningCatalyst, "mundaneLengtheningCatalyst");
GameRegistry.registerItem(ModItems.averageLengtheningCatalyst, "averageLengtheningCatalyst");
GameRegistry.registerItem(ModItems.greaterLengtheningCatalyst, "greaterLengtheningCatalyst");
GameRegistry.registerItem(ModItems.weakFillingAgent, "weakFillingAgent");
GameRegistry.registerItem(ModItems.standardFillingAgent, "standardFillingAgent");
GameRegistry.registerItem(ModItems.enhancedFillingAgent, "enhancedFillingAgent");
// Reagents
GameRegistry.registerItem(ModItems.itemAttunedCrystal, "itemAttunedCrystal");
GameRegistry.registerItem(ModItems.itemTankSegmenter, "itemTankSegmenter");
GameRegistry.registerItem(ModItems.itemDestinationClearer, "itemDestinationClearer");
GameRegistry.registerItem(ModItems.incendium, "incendium");
GameRegistry.registerItem(ModItems.magicales, "magicales");
GameRegistry.registerItem(ModItems.sanctus, "sanctus");
GameRegistry.registerItem(ModItems.aether, "aether");
GameRegistry.registerItem(ModItems.crepitous, "crepitous");
GameRegistry.registerItem(ModItems.crystallos, "crystallos");
GameRegistry.registerItem(ModItems.terrae, "terrae");
GameRegistry.registerItem(ModItems.aquasalus, "aquasalus");
GameRegistry.registerItem(ModItems.tennebrae, "tennebrae");
// Other Alchemy Items
GameRegistry.registerItem(ModItems.baseAlchemyItems, "bloodMagicBaseAlchemyItems");
GameRegistry.registerItem(ModItems.itemIncense, "bloodMagicIncenseItem");
// Unused
GameRegistry.registerItem(ModItems.itemCombinationalCatalyst, "itemCombinationalCatalyst");
// Utility
GameRegistry.registerItem(ModItems.sacrificialDagger, "sacrificialKnife");
GameRegistry.registerItem(ModItems.daggerOfSacrifice, "daggerOfSacrifice");
GameRegistry.registerItem(ModItems.creativeDagger, "creativeDagger");
GameRegistry.registerItem(ModItems.lavaCrystal, "lavaCrystal");
GameRegistry.registerItem(ModItems.itemKeyOfDiablo, "itemKeyOfDiablo");
GameRegistry.registerItem(ModItems.armourInhibitor, "armourInhibitor");
GameRegistry.registerItem(ModItems.telepositionFocus, "telepositionFocus");
GameRegistry.registerItem(ModItems.enhancedTelepositionFocus, "enhancedTelepositionFocus");
GameRegistry.registerItem(ModItems.reinforcedTelepositionFocus, "reinforcedTelepositionFocus");
GameRegistry.registerItem(ModItems.demonicTelepositionFocus, "demonicTelepositionFocus");
GameRegistry.registerItem(ModItems.inputRoutingFocus, "inputRoutingFocus");
GameRegistry.registerItem(ModItems.outputRoutingFocus, "outputRoutingFocus");
GameRegistry.registerItem(ModItems.blankSpell, "blankSpell");
GameRegistry.registerItem(ModItems.itemComplexSpellCrystal, "itemComplexSpellCrystal");
GameRegistry.registerItem(ModItems.demonPlacer, "demonPlacer");
GameRegistry.registerItem(ModItems.itemIncense, "bloodMagicIncenseItem");
// Rituals
GameRegistry.registerItem(ModItems.waterScribeTool, "waterScribeTool");
GameRegistry.registerItem(ModItems.fireScribeTool, "fireScribeTool");
GameRegistry.registerItem(ModItems.earthScribeTool, "earthScribeTool");
GameRegistry.registerItem(ModItems.airScribeTool, "airScribeTool");
GameRegistry.registerItem(ModItems.duskScribeTool, "duskScribeTool");
GameRegistry.registerItem(ModItems.dawnScribeTool, "dawnScribeTool");
GameRegistry.registerItem(ModItems.itemRitualDiviner, "itemRitualDiviner");
GameRegistry.registerItem(ModItems.ritualDismantler, "ritualDismantler");
GameRegistry.registerItem(ModItems.activationCrystal, "activationCrystal");
}
}
@@ -1,8 +1,9 @@
package WayofTime.alchemicalWizardry.api;
import cpw.mods.fml.common.registry.GameData;
import net.minecraft.block.Block;
import cpw.mods.fml.common.registry.GameData;
/**
* A Block with a set metadata. Similar to an ItemStack.
*/
@@ -3,6 +3,7 @@ package WayofTime.alchemicalWizardry.api;
import net.minecraft.nbt.NBTTagCompound;
public class ColourAndCoords {
public int colourRed;
public int colourGreen;
public int colourBlue;
@@ -1,5 +1,6 @@
package WayofTime.alchemicalWizardry.api;
public interface ILimitingLogic {
public int getRoutingLimit();
}
@@ -3,6 +3,7 @@ package WayofTime.alchemicalWizardry.api;
import net.minecraft.nbt.NBTTagCompound;
public class Int3 {
public int xCoord;
public int yCoord;
public int zCoord;
@@ -28,8 +29,7 @@ public class Int3 {
@Override
public boolean equals(Object o) {
return o instanceof Int3
? ((Int3) o).xCoord == this.xCoord
&& ((Int3) o).yCoord == this.yCoord
? ((Int3) o).xCoord == this.xCoord && ((Int3) o).yCoord == this.yCoord
&& ((Int3) o).zCoord == this.zCoord
: false;
}
@@ -1,19 +1,29 @@
package WayofTime.alchemicalWizardry.api;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import net.minecraft.item.ItemStack;
import net.minecraft.util.StatCollector;
public class RoutingFocusLogic {
public boolean getDefaultMatch(ItemStack keyStack, ItemStack checkedStack) {
return (keyStack != null
? checkedStack != null
&& keyStack.getItem() == checkedStack.getItem()
&& (keyStack.getItem().getHasSubtypes()
? keyStack.getItemDamage() == checkedStack.getItemDamage()
: true)
: false);
return (keyStack != null && keyStack.getItem() != null
&& checkedStack != null
&& keyStack.getItem() == checkedStack.getItem()
&& (!keyStack.getItem().getHasSubtypes() || keyStack.getItemDamage() == checkedStack.getItemDamage()));
}
public boolean doesItemMatch(boolean previous, ItemStack keyStack, ItemStack checkedStack) {
return previous || this.getDefaultMatch(keyStack, checkedStack);
}
public List<String> getDescription() {
return new ArrayList<>(
Collections.singletonList(
StatCollector.translateToLocal("tooltip.routingFocus.logic") + " "
+ StatCollector.translateToLocal("item.outputRoutingFocus.default.logic")));
}
}
@@ -2,12 +2,16 @@ package WayofTime.alchemicalWizardry.api;
import java.util.LinkedList;
import java.util.List;
import net.minecraft.item.ItemStack;
public class RoutingFocusParadigm {
public List<RoutingFocusLogic> logicList = new LinkedList();
public List<RoutingFocusPosAndFacing> locationList = new LinkedList();
public List<RoutingFocusLogic> logicList = new LinkedList<>();
public List<RoutingFocusPosAndFacing> locationList = new LinkedList<>();
public List<String> nameList = new LinkedList<>();
public int maximumAmount = 0;
@@ -22,6 +26,14 @@ public class RoutingFocusParadigm {
logicList.add(logic);
}
public void addName(String name) {
nameList.add(name);
}
public boolean doesNameMatch(String name) {
return nameList.contains(name);
}
public boolean doesItemMatch(ItemStack keyStack, ItemStack checkedStack) {
boolean isGood = false;
boolean isFirst = true;
@@ -40,6 +52,7 @@ public class RoutingFocusParadigm {
public void clear() {
logicList.clear();
locationList.clear();
nameList.clear();
maximumAmount = 0;
}
@@ -3,6 +3,7 @@ package WayofTime.alchemicalWizardry.api;
import net.minecraftforge.common.util.ForgeDirection;
public class RoutingFocusPosAndFacing {
public Int3 location;
public ForgeDirection facing;
@@ -1,10 +1,10 @@
package WayofTime.alchemicalWizardry.api;
/*
* Created in Scala by Alex-Hawks
* Translated and implemented by Arcaratus
* Created in Scala by Alex-Hawks Translated and implemented by Arcaratus
*/
public class Vector3 {
public int x, y, z;
public Vector3(int x, int y, int z) {
@@ -28,12 +28,10 @@ public class Vector3 {
@Override
public boolean equals(Object object) {
return object == this
|| object instanceof Vector3
&& canEqual(this)
&& this.x == ((Vector3) object).x
&& this.y == ((Vector3) object).y
&& this.z == ((Vector3) object).z;
return object == this || object instanceof Vector3 && canEqual(this)
&& this.x == ((Vector3) object).x
&& this.y == ((Vector3) object).y
&& this.z == ((Vector3) object).z;
}
@Override
@@ -1,9 +1,11 @@
package WayofTime.alchemicalWizardry.api.alchemy;
import java.util.ArrayList;
import net.minecraft.item.ItemStack;
public class AlchemicalPotionCreationHandler {
public static ArrayList<AlchemyPotionHandlerComponent> registeredPotionEffects = new ArrayList();
public static void addPotion(ItemStack itemStack, int potionID, int tickDuration) {
@@ -4,6 +4,7 @@ import net.minecraft.item.ItemBlock;
import net.minecraft.item.ItemStack;
public class AlchemyPotionHandlerComponent {
private ItemStack itemStack;
private int potionID;
private int tickDuration;
@@ -5,6 +5,7 @@ import net.minecraft.potion.Potion;
import net.minecraft.potion.PotionEffect;
public class AlchemyPotionHelper {
private int potionID;
private int tickDuration;
private int concentration;
@@ -5,6 +5,7 @@ import net.minecraft.item.ItemStack;
import net.minecraftforge.oredict.OreDictionary;
public class AlchemyRecipe {
private ItemStack output;
private ItemStack[] recipe;
private int bloodOrbLevel;
@@ -85,7 +86,7 @@ public class AlchemyRecipe {
}
if ((checkedItemStack.getItemDamage() == recipeItemStack.getItemDamage()
|| OreDictionary.WILDCARD_VALUE == recipeItemStack.getItemDamage())
|| OreDictionary.WILDCARD_VALUE == recipeItemStack.getItemDamage())
&& checkedItemStack.getItem() == recipeItemStack.getItem()) {
test = true;
checkList[j] = true;
@@ -1,11 +1,14 @@
package WayofTime.alchemicalWizardry.api.alchemy;
import WayofTime.alchemicalWizardry.api.items.interfaces.IBloodOrb;
import java.util.ArrayList;
import java.util.List;
import net.minecraft.item.ItemStack;
import WayofTime.alchemicalWizardry.api.items.interfaces.IBloodOrb;
public class AlchemyRecipeRegistry {
public static List<AlchemyRecipe> recipes = new ArrayList();
public static void registerRecipe(ItemStack output, int amountNeeded, ItemStack[] recipe, int bloodOrbLevel) {
@@ -5,5 +5,6 @@ import net.minecraft.item.ItemStack;
import net.minecraft.world.World;
public interface IAlchemyGoggles {
boolean showIngameHUD(World world, ItemStack stack, EntityPlayer player);
}
@@ -1,6 +1,7 @@
package WayofTime.alchemicalWizardry.api.alchemy.energy;
public interface IReagentContainer {
ReagentStack getReagent();
int getReagentStackAmount();
@@ -3,6 +3,7 @@ package WayofTime.alchemicalWizardry.api.alchemy.energy;
import net.minecraftforge.common.util.ForgeDirection;
public interface IReagentHandler {
int fill(ForgeDirection from, ReagentStack resource, boolean doFill);
ReagentStack drain(ForgeDirection from, ReagentStack resource, boolean doDrain);
@@ -3,6 +3,7 @@ package WayofTime.alchemicalWizardry.api.alchemy.energy;
import java.util.Map;
public interface ISegmentedReagentHandler extends IReagentHandler {
int getNumberOfTanks();
int getTanksTunedToReagent(Reagent reagent);
@@ -1,6 +1,7 @@
package WayofTime.alchemicalWizardry.api.alchemy.energy;
public class Reagent {
public final String name;
public static final int REAGENT_SIZE = 1000;
@@ -3,6 +3,7 @@ package WayofTime.alchemicalWizardry.api.alchemy.energy;
import net.minecraft.nbt.NBTTagCompound;
public class ReagentContainer implements IReagentContainer {
protected ReagentStack reagentStack;
protected int capacity;
@@ -1,6 +1,7 @@
package WayofTime.alchemicalWizardry.api.alchemy.energy;
public final class ReagentContainerInfo {
public final ReagentStack reagent;
public final int capacity;
@@ -4,9 +4,11 @@ import java.util.HashMap;
import java.util.Map;
import java.util.Map.Entry;
import java.util.Set;
import net.minecraft.item.ItemStack;
public class ReagentRegistry {
public static Map<String, Reagent> reagentList = new HashMap();
public static Map<ItemStack, ReagentStack> itemToReagentMap = new HashMap();
@@ -3,6 +3,7 @@ package WayofTime.alchemicalWizardry.api.alchemy.energy;
import net.minecraft.nbt.NBTTagCompound;
public class ReagentStack {
public Reagent reagent;
public int amount;
@@ -5,6 +5,7 @@ import net.minecraft.tileentity.TileEntity;
import net.minecraftforge.common.util.ForgeDirection;
public class TileReagentHandler extends TileEntity implements IReagentHandler {
protected ReagentContainer tank = new ReagentContainer(4000);
@Override
@@ -50,6 +51,6 @@ public class TileReagentHandler extends TileEntity implements IReagentHandler {
@Override
public ReagentContainerInfo[] getContainerInfo(ForgeDirection from) {
return new ReagentContainerInfo[] {tank.getInfo()};
return new ReagentContainerInfo[] { tank.getInfo() };
}
}
@@ -3,6 +3,7 @@ package WayofTime.alchemicalWizardry.api.alchemy.energy;
import java.util.HashMap;
import java.util.Map;
import java.util.Map.Entry;
import net.minecraft.nbt.NBTTagCompound;
import net.minecraft.nbt.NBTTagList;
import net.minecraft.tileentity.TileEntity;
@@ -10,6 +11,7 @@ import net.minecraftforge.common.util.Constants;
import net.minecraftforge.common.util.ForgeDirection;
public class TileSegmentedReagentHandler extends TileEntity implements ISegmentedReagentHandler {
protected ReagentContainer[] tanks;
protected Map<Reagent, Integer> attunedTankMap;
@@ -99,8 +101,7 @@ public class TileSegmentedReagentHandler extends TileEntity implements ISegmente
ReagentStack remainingStack = resource.copy();
remainingStack.amount = maxFill - totalFill;
boolean doesReagentMatch = tanks[i].getReagent() == null
? false
boolean doesReagentMatch = tanks[i].getReagent() == null ? false
: tanks[i].getReagent().isReagentEqual(remainingStack);
if (doesReagentMatch) {
@@ -2,11 +2,13 @@ package WayofTime.alchemicalWizardry.api.altarRecipeRegistry;
import java.util.ArrayList;
import java.util.Set;
import net.minecraft.item.ItemStack;
import net.minecraft.nbt.NBTBase;
import net.minecraft.nbt.NBTTagCompound;
public class AltarRecipe {
public int minTier;
public int liquidRequired;
public boolean canBeFilled; // Tells the system that the item is an orb
@@ -17,26 +19,13 @@ public class AltarRecipe {
public boolean useTag;
public ArrayList<Object> input = new ArrayList<Object>();
public AltarRecipe(
ItemStack result,
ItemStack requiredItem,
int minTier,
int liquidRequired,
int consumptionRate,
int drainRate,
boolean canBeFilled) {
public AltarRecipe(ItemStack result, ItemStack requiredItem, int minTier, int liquidRequired, int consumptionRate,
int drainRate, boolean canBeFilled) {
this(result, requiredItem, minTier, liquidRequired, consumptionRate, drainRate, canBeFilled, false);
}
public AltarRecipe(
ItemStack result,
ItemStack requiredItem,
int minTier,
int liquidRequired,
int consumptionRate,
int drainRate,
boolean canBeFilled,
boolean useTag) {
public AltarRecipe(ItemStack result, ItemStack requiredItem, int minTier, int liquidRequired, int consumptionRate,
int drainRate, boolean canBeFilled, boolean useTag) {
this.result = result;
this.requiredItem = requiredItem;
this.minTier = minTier;
@@ -60,8 +49,7 @@ public class AltarRecipe {
return false;
}
return tierCheck >= minTier
&& this.requiredItem.isItemEqual(comparedStack)
return tierCheck >= minTier && this.requiredItem.isItemEqual(comparedStack)
&& (this.useTag ? this.areRequiredTagsEqual(comparedStack) : true);
}
@@ -4,34 +4,39 @@ import java.util.HashMap;
import java.util.LinkedList;
import java.util.List;
import java.util.Map;
import net.minecraft.item.ItemStack;
public class AltarRecipeRegistry {
public static List<AltarRecipe> altarRecipes = new LinkedList<>();
public static Map<Integer, ItemStack> orbMap = new HashMap<>();
public static void registerAltarRecipe(
ItemStack result,
ItemStack requiredItem,
int minTier,
int liquidRequired,
int consumptionRate,
int drainRate,
boolean canBeFilled) {
altarRecipes.add(new AltarRecipe(
result, requiredItem, minTier, liquidRequired, consumptionRate, drainRate, canBeFilled));
public static void registerAltarRecipe(ItemStack result, ItemStack requiredItem, int minTier, int liquidRequired,
int consumptionRate, int drainRate, boolean canBeFilled) {
altarRecipes.add(
new AltarRecipe(
result,
requiredItem,
minTier,
liquidRequired,
consumptionRate,
drainRate,
canBeFilled));
}
public static void registerNBTAltarRecipe(
ItemStack result,
ItemStack requiredItem,
int minTier,
int liquidRequired,
int consumptionRate,
int drainRate,
boolean canBeFilled) {
altarRecipes.add(new AltarRecipe(
result, requiredItem, minTier, liquidRequired, consumptionRate, drainRate, canBeFilled, true));
public static void registerNBTAltarRecipe(ItemStack result, ItemStack requiredItem, int minTier, int liquidRequired,
int consumptionRate, int drainRate, boolean canBeFilled) {
altarRecipes.add(
new AltarRecipe(
result,
requiredItem,
minTier,
liquidRequired,
consumptionRate,
drainRate,
canBeFilled,
true));
}
public static void registerAltarOrbRecipe(ItemStack orbStack, int minTier, int consumptionRate) {
@@ -1,5 +1,6 @@
package WayofTime.alchemicalWizardry.api.altarRecipeRegistry;
public interface IFadedRune {
int getAltarTierLimit(int meta);
}
@@ -3,6 +3,7 @@ package WayofTime.alchemicalWizardry.api.bindingRegistry;
import net.minecraft.item.ItemStack;
public class BindingRecipe {
public ItemStack requiredItem;
public ItemStack outputItem;
@@ -2,9 +2,11 @@ package WayofTime.alchemicalWizardry.api.bindingRegistry;
import java.util.LinkedList;
import java.util.List;
import net.minecraft.item.ItemStack;
public class BindingRegistry {
public static List<BindingRecipe> bindingRecipes = new LinkedList();
public static void registerRecipe(ItemStack output, ItemStack input) {
@@ -2,9 +2,11 @@ package WayofTime.alchemicalWizardry.api.bindingRegistry;
import java.util.ArrayList;
import java.util.List;
import net.minecraft.item.ItemStack;
public class UnbindingRecipe {
public ItemStack requiredItem;
public List<ItemStack> outputItem;
@@ -3,11 +3,13 @@ package WayofTime.alchemicalWizardry.api.bindingRegistry;
import java.util.ArrayList;
import java.util.LinkedList;
import java.util.List;
import net.minecraft.block.Block;
import net.minecraft.item.Item;
import net.minecraft.item.ItemStack;
public class UnbindingRegistry {
public static List<UnbindingRecipe> unbindingRecipes = new LinkedList<UnbindingRecipe>();
public static void addAllUnbindingRecipesFromBinding() {
@@ -1,6 +1,7 @@
package WayofTime.alchemicalWizardry.api.command;
import java.util.Locale;
import net.minecraft.command.ICommand;
import net.minecraft.command.ICommandSender;
import net.minecraft.command.PlayerNotFoundException;
@@ -40,21 +41,19 @@ public abstract class SubCommandBase implements ISubCommand {
@Override
public void processSubCommand(ICommandSender commandSender, String[] args) {
if (args.length == 0 && !getSubCommandName().equals("help"))
displayErrorString(
commandSender,
String.format(
StatCollector.translateToLocal("commands.format.error"),
capitalizeFirstLetter(getSubCommandName()),
getArgUsage(commandSender)));
if (args.length == 0 && !getSubCommandName().equals("help")) displayErrorString(
commandSender,
String.format(
StatCollector.translateToLocal("commands.format.error"),
capitalizeFirstLetter(getSubCommandName()),
getArgUsage(commandSender)));
if (isBounded(0, 2, args.length) && args[0].equals("help"))
displayHelpString(
commandSender,
String.format(
StatCollector.translateToLocal("commands.format.help"),
capitalizeFirstLetter(getSubCommandName()),
getHelpText()));
if (isBounded(0, 2, args.length) && args[0].equals("help")) displayHelpString(
commandSender,
String.format(
StatCollector.translateToLocal("commands.format.help"),
capitalizeFirstLetter(getSubCommandName()),
getHelpText()));
}
protected EntityPlayerMP getCommandSenderAsPlayer(ICommandSender commandSender) {
@@ -67,8 +66,7 @@ public abstract class SubCommandBase implements ISubCommand {
if (entityplayermp != null) return entityplayermp;
else {
entityplayermp =
MinecraftServer.getServer().getConfigurationManager().func_152612_a(playerName);
entityplayermp = MinecraftServer.getServer().getConfigurationManager().func_152612_a(playerName);
if (entityplayermp == null) throw new PlayerNotFoundException();
else return entityplayermp;
@@ -84,17 +82,20 @@ public abstract class SubCommandBase implements ISubCommand {
}
protected void displayHelpString(ICommandSender commandSender, String display, Object... info) {
commandSender.addChatMessage(new ChatComponentText(StatCollector.translateToLocalFormatted(display, info))
.setChatStyle(new ChatStyle().setColor(EnumChatFormatting.GREEN)));
commandSender.addChatMessage(
new ChatComponentText(StatCollector.translateToLocalFormatted(display, info))
.setChatStyle(new ChatStyle().setColor(EnumChatFormatting.GREEN)));
}
protected void displayErrorString(ICommandSender commandSender, String display, Object... info) {
commandSender.addChatMessage(new ChatComponentText(StatCollector.translateToLocalFormatted(display, info))
.setChatStyle(new ChatStyle().setColor(EnumChatFormatting.RED)));
commandSender.addChatMessage(
new ChatComponentText(StatCollector.translateToLocalFormatted(display, info))
.setChatStyle(new ChatStyle().setColor(EnumChatFormatting.RED)));
}
protected void displaySuccessString(ICommandSender commandSender, String display, Object... info) {
commandSender.addChatMessage(new ChatComponentText(StatCollector.translateToLocalFormatted(display, info))
.setChatStyle(new ChatStyle().setColor(EnumChatFormatting.BLUE)));
commandSender.addChatMessage(
new ChatComponentText(StatCollector.translateToLocalFormatted(display, info))
.setChatStyle(new ChatStyle().setColor(EnumChatFormatting.BLUE)));
}
}
@@ -4,10 +4,13 @@ import net.minecraft.item.ItemStack;
import net.minecraft.world.World;
public abstract class CompressionHandler {
/**
* Called to look at the inventory and syphons the required stack. Returns resultant stack if successful, and null if not.
* @param inv The inventory iterated through
* @return The result of the compression
* Called to look at the inventory and syphons the required stack. Returns resultant stack if successful, and null
* if not.
*
* @param inv The inventory iterated through
* @return The result of the compression
*/
public abstract ItemStack compressInventory(ItemStack[] inv, World world);
}
@@ -5,6 +5,7 @@ import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Map.Entry;
import net.minecraft.item.ItemStack;
import net.minecraft.world.World;
@@ -13,6 +14,7 @@ import net.minecraft.world.World;
*
*/
public class CompressionRegistry {
public static List<CompressionHandler> compressionRegistry = new ArrayList();
public static Map<ItemStack, Integer> thresholdMap = new HashMap();
@@ -22,6 +24,7 @@ public class CompressionRegistry {
/**
* Registers an item so that it only compresses while above this threshold
*
* @param stack
* @param threshold
*/
@@ -52,8 +55,7 @@ public class CompressionRegistry {
public static boolean areItemStacksEqual(ItemStack stack, ItemStack compressedStack) {
return stack.isItemEqual(compressedStack)
&& (stack.getTagCompound() == null
? compressedStack.getTagCompound() == null
&& (stack.getTagCompound() == null ? compressedStack.getTagCompound() == null
: stack.getTagCompound().equals(compressedStack.getTagCompound()));
}
}
@@ -5,17 +5,18 @@ import cpw.mods.fml.common.eventhandler.Event;
@Cancelable
public class AddToNetworkEvent extends Event {
public String ownerNetwork;
public int addedAmount;
public int maximum;
/**
* This event is called whenever the network is added to. If cancelled, no LP will be drained from the source. If result is set to Result.DENY,
* the LP will still be drained but the soul network will not be added to.
* This event is called whenever the network is added to. If cancelled, no LP will be drained from the source. If
* result is set to Result.DENY, the LP will still be drained but the soul network will not be added to.
*
* @param ownerNetwork Key used for the soul network
* @param addedAmount Amount added
* @param maximum Ceiling that the network can add to
* @param ownerNetwork Key used for the soul network
* @param addedAmount Amount added
* @param maximum Ceiling that the network can add to
*/
public AddToNetworkEvent(String ownerNetwork, int addedAmount, int maximum) {
super();
@@ -1,12 +1,14 @@
package WayofTime.alchemicalWizardry.api.event;
import cpw.mods.fml.common.eventhandler.Cancelable;
import cpw.mods.fml.common.eventhandler.Event;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.item.ItemStack;
import cpw.mods.fml.common.eventhandler.Cancelable;
import cpw.mods.fml.common.eventhandler.Event;
@Cancelable
public class ItemBindEvent extends Event {
public final EntityPlayer player;
public String key;
public ItemStack itemStack;
@@ -1,10 +1,12 @@
package WayofTime.alchemicalWizardry.api.event;
import cpw.mods.fml.common.eventhandler.Cancelable;
import net.minecraft.item.ItemStack;
import cpw.mods.fml.common.eventhandler.Cancelable;
@Cancelable
public class ItemDrainInContainerEvent extends SoulNetworkEvent {
public ItemStack stack;
public ItemDrainInContainerEvent(ItemStack stack, String ownerNetwork, int drainAmount) {
@@ -1,11 +1,13 @@
package WayofTime.alchemicalWizardry.api.event;
import cpw.mods.fml.common.eventhandler.Cancelable;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.item.ItemStack;
import cpw.mods.fml.common.eventhandler.Cancelable;
@Cancelable
public class ItemDrainNetworkEvent extends PlayerDrainNetworkEvent {
public final ItemStack itemStack;
public boolean shouldDamage; // If true, will damage regardless of if the network had enough inside it
public float damageAmount; // Amount of damage that would incur if the network could not drain properly
@@ -13,10 +15,10 @@ public class ItemDrainNetworkEvent extends PlayerDrainNetworkEvent {
/**
* Set result to deny the action i.e. damage/drain anyways. Cancelling event prevents action without penalties
*
* @param player Player using the item
* @param ownerNetwork Network that the item is tied to
* @param itemStack Item used
* @param drainAmount Original drain amount - change to alter cost
* @param player Player using the item
* @param ownerNetwork Network that the item is tied to
* @param itemStack Item used
* @param drainAmount Original drain amount - change to alter cost
*/
public ItemDrainNetworkEvent(EntityPlayer player, String ownerNetwork, ItemStack itemStack, int drainAmount) {
super(player, ownerNetwork, drainAmount);
Loaded 100 of 838 files, more files were not shown because too many files have changed in this diff. Show more