Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
b2d18fbb64 | ||
|
|
96389b5329 | ||
|
|
61afb3a0bc | ||
|
|
bf57ac3491 | ||
|
|
e8421f40fe | ||
|
|
b8d12b1f9a | ||
|
|
1476470054 | ||
|
|
89fb41b814 | ||
|
|
f44591b47d | ||
|
|
fd82a0ef72 | ||
|
|
cbbf2558fd | ||
|
|
76f541bc3f | ||
|
|
7f95da0f6c | ||
|
|
3798f1f771 | ||
|
|
721a60c994 | ||
|
|
4a03a5f48c | ||
|
|
c6720b7417 | ||
|
|
575c799587 | ||
|
|
2c324174e4 | ||
|
|
28f5a15f0a | ||
|
|
9bed2d3749 | ||
|
|
1a394ce858 | ||
|
|
5d3bd8bde2 | ||
|
|
5279a6e64a | ||
|
|
2c2306b223 | ||
|
|
8aaa24c3c1 | ||
|
|
596ae798ec |
No files matched your search
@@ -15,9 +15,9 @@
|
|||||||
|
|
||||||
<property name="clientsrc.dir" value="${mcp.dir}/src/minecraft" />
|
<property name="clientsrc.dir" value="${mcp.dir}/src/minecraft" />
|
||||||
|
|
||||||
<property name="mc.version" value="1.4.7"/>
|
<property name="mc.version" value="1.5.1"/>
|
||||||
<property name="forge.version" value="6.6.0.507"/>
|
<property name="forge.version" value="7.7.1.651"/>
|
||||||
<property name="thaumicbees.version" value="1.4.2"/>
|
<property name="thaumicbees.version" value="1.4.4b"/>
|
||||||
|
|
||||||
<!-- for local deployment only, not used by main -->
|
<!-- for local deployment only, not used by main -->
|
||||||
<property name="deploy.type" value="previews" />
|
<property name="deploy.type" value="previews" />
|
||||||
@@ -71,10 +71,10 @@
|
|||||||
<include name="forestry/api/**" />
|
<include name="forestry/api/**" />
|
||||||
</fileset>
|
</fileset>
|
||||||
<fileset dir="${thaumcraft.dir}/">
|
<fileset dir="${thaumcraft.dir}/">
|
||||||
<include name="thaumcraft/**" />
|
<include name="thaumcraft/api/**" />
|
||||||
</fileset>
|
</fileset>
|
||||||
<fileset dir="${src.dir}/thaumicbees_src">
|
<fileset dir="${src.dir}/thaumicbees_src">
|
||||||
<include name="**/net/mysteriousages/**">
|
<include name="**/net/mysteriousages/**" />
|
||||||
<include name="**/thaumicbees/**" />
|
<include name="**/thaumicbees/**" />
|
||||||
<include name="**/forestry/**" />
|
<include name="**/forestry/**" />
|
||||||
</fileset>
|
</fileset>
|
||||||
@@ -84,15 +84,11 @@
|
|||||||
<fileset dir="${src.dir}/thaumicbees_src">
|
<fileset dir="${src.dir}/thaumicbees_src">
|
||||||
<include name="**/VersionInfo.java" />
|
<include name="**/VersionInfo.java" />
|
||||||
</fileset>
|
</fileset>
|
||||||
<fileset dir="${src.dir}/thaumicbees_res">
|
|
||||||
<include name="**/mcmod.info" />
|
|
||||||
</fileset>
|
|
||||||
<filterset>
|
<filterset>
|
||||||
<filter token="MCVERSION" value="${mc.version}" />
|
<filter token="MCVERSION" value="${mc.version}" />
|
||||||
<filter token="VERSION" value="${thaumicbees.version}" />
|
<filter token="VERSION" value="${thaumicbees.version}" />
|
||||||
<filter token="BUILD_NUMBER" value="${build.number}" />
|
<filter token="BUILD_NUMBER" value="${build.number}" />
|
||||||
<filter token="FINGERPRINT" value="${key.fingerprint}" />
|
<filter token="FINGERPRINT" value="${key.fingerprint}" />
|
||||||
<filter token="MODVERSION" value="${thaumicbees.version} - ${build.number}" />
|
|
||||||
</filterset>
|
</filterset>
|
||||||
</copy>
|
</copy>
|
||||||
|
|
||||||
@@ -112,23 +108,24 @@
|
|||||||
|
|
||||||
<!-- Reobf -->
|
<!-- Reobf -->
|
||||||
<exec dir="${mcp.dir}" executable="cmd" osfamily="windows">
|
<exec dir="${mcp.dir}" executable="cmd" osfamily="windows">
|
||||||
<arg line="/c reobfuscate.bat"/>
|
<arg line="/c reobfuscate_srg.bat"/>
|
||||||
</exec>
|
</exec>
|
||||||
|
|
||||||
<exec dir="${mcp.dir}" executable="sh" osfamily="unix">
|
<exec dir="${mcp.dir}" executable="sh" osfamily="unix">
|
||||||
<arg value="reobfuscate.sh" />
|
<arg value="reobfuscate.sh_srg" />
|
||||||
</exec>
|
</exec>
|
||||||
|
|
||||||
<!-- Copy classes -->
|
<!-- Copy classes -->
|
||||||
<copy todir="${classes.dir}/client">
|
<copy todir="${classes.dir}/client">
|
||||||
<fileset dir="${mcp.dir}/reobf/minecraft">
|
<fileset dir="${mcp.dir}/reobf/minecraft">
|
||||||
<include name="**/thaumicbees/**" />
|
|
||||||
<include name="**/forestry/plugins/**" />
|
|
||||||
<include name="**/net/mysteriousages/**">
|
|
||||||
|
|
||||||
<exclude name="forestry/api/**" />
|
<exclude name="forestry/api/**" />
|
||||||
<exclude name="thaumcraft/**" />
|
|
||||||
|
|
||||||
|
<include name="**/thaumicbees/**" />
|
||||||
|
<include name="**/net/mysteriousages/**" />
|
||||||
|
|
||||||
|
<include name="**/thaumcraft/api/IVisRepairable.class" />
|
||||||
|
<include name="**/thaumcraft/api/EnumTag.class" />
|
||||||
|
<include name="**/thaumcraft/api/ObjectTags.class" />
|
||||||
</fileset>
|
</fileset>
|
||||||
</copy>
|
</copy>
|
||||||
|
|
||||||
@@ -139,6 +136,15 @@
|
|||||||
<exclude name="build.number"/>
|
<exclude name="build.number"/>
|
||||||
</fileset>
|
</fileset>
|
||||||
</copy>
|
</copy>
|
||||||
|
|
||||||
|
<copy todir="${classes.dir}/client" overwrite="true" failonerror="true">
|
||||||
|
<fileset dir="${src.dir}/thaumicbees_res">
|
||||||
|
<include name="**/mcmod.info" />
|
||||||
|
</fileset>
|
||||||
|
<filterset>
|
||||||
|
<filter token="MODVERSION" value="${thaumicbees.version} - ${build.number}" />
|
||||||
|
</filterset>
|
||||||
|
</copy>
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
<!-- Package the jars -->
|
<!-- Package the jars -->
|
||||||
|
|||||||
@@ -1,6 +1,45 @@
|
|||||||
|
1.4.5
|
||||||
|
Added the Jade Moon Dial - tells you what moon phase it currently is for breeding purposes.
|
||||||
|
Added a creative menu tab for certain Thaumic Bees items - misc resources, capsules, tools.
|
||||||
|
|
||||||
|
1.4.4b
|
||||||
|
Ported to 1.5! Wooo!
|
||||||
|
|
||||||
|
1.4.4a
|
||||||
|
Fixed an isuse that caused GregTech to crash.
|
||||||
|
|
||||||
|
1.4.4
|
||||||
|
Made greatwood & silverwood planks fireproof by default - added a config option to toggle it.
|
||||||
|
Added Nuggets - Iron, Copper, Tin, Silver, Lead. Should craft into 1st ore dictionary ingot of appropriate type.
|
||||||
|
Added Shards - Diamond, Emerald.
|
||||||
|
Added 15 new bees. Have fun~ <3
|
||||||
|
Added Equivalent Exchange 3 compatability! (It's 1 thing, don't get terribly excited.)
|
||||||
|
New frame type! Search Strongholds for them.
|
||||||
|
|
||||||
|
1.4.3c
|
||||||
|
Thaumium Grafter now doubles your chance to get Greatwood & Silverwood saplings.
|
||||||
|
Thaumium Grafter now takes extra damage when trying to break Greatwood & Silverwood leaves.
|
||||||
|
Thaumium Grafter now has a balancing feature when repairing.
|
||||||
|
Extra... uh. "Enhancements". =D
|
||||||
|
|
||||||
|
1.4.3b
|
||||||
|
Greatwood & Silverwood planks support BuildCraft facades.
|
||||||
|
Tweaking Aura cost for Repair on Thaumium Grafters and other balance.
|
||||||
|
Turns out I can't get the version crap to work properly. More fixes.
|
||||||
|
|
||||||
|
1.4.3a
|
||||||
|
Changed Version info embedded in mod to match format supported by Version checking. Will need to make this more robust in the future.
|
||||||
|
Fixed bug with Thaumium Grafter not being enchantable.
|
||||||
|
|
||||||
|
1.4.3
|
||||||
|
Added automatic version-checking for ThaumicBees! From this version on, when a new version becomes available, it will notify you in-game. Notifications can be switched off via a config file option.
|
||||||
|
Fixed missing aspects on Extra Bees combs.
|
||||||
|
|
||||||
1.4.2
|
1.4.2
|
||||||
Added Void Capsules - hold up to 8 buckets of liquid with one! It's a waterproof bag of holding!
|
Added Void Capsules - hold up to 8 buckets of liquid with one! It's a waterproof bag of holding! Plus stacking.
|
||||||
Fix: Added Greatwood & Silverwood slabs to the ore dictionary so they should work as normal.
|
Fix: Added Greatwood & Silverwood slabs to the ore dictionary so they should work as normal.
|
||||||
|
Added Thaumium Scoop - 30 uses, can be enchanted with Repair.
|
||||||
|
Added Thaumium Grafter - 15 uses, can be enchanted with Repair.
|
||||||
|
|
||||||
1.4.1
|
1.4.1
|
||||||
Added Greatwood and Silverwood planks. Since Greatwood and Silverwood are tougher than other trees, you'll need some extra machinery. To obtain these, jam a log of the appropriate tree into a Forestry carpenter and provide a half bucket of water.
|
Added Greatwood and Silverwood planks. Since Greatwood and Silverwood are tougher than other trees, you'll need some extra machinery. To obtain these, jam a log of the appropriate tree into a Forestry carpenter and provide a half bucket of water.
|
||||||
@@ -15,6 +54,7 @@ Thaumaturge's Backpack now require Amber rather than Gold Nuggets.
|
|||||||
Due to popular complaint, the Bees & Magic node now requires Unified Thaumic Field Theory to unlock.
|
Due to popular complaint, the Bees & Magic node now requires Unified Thaumic Field Theory to unlock.
|
||||||
Moving all kinds of string contstants out of code into Localization files.
|
Moving all kinds of string contstants out of code into Localization files.
|
||||||
Also fixed crazy aspects showing up on things that shouldn't have those aspects.
|
Also fixed crazy aspects showing up on things that shouldn't have those aspects.
|
||||||
|
ACTUALLY fixed issue with untyped node mutations failing.
|
||||||
|
|
||||||
1.3.0d
|
1.3.0d
|
||||||
Fixed an issue with mutations requiring a non-specific type of node to fail.
|
Fixed an issue with mutations requiring a non-specific type of node to fail.
|
||||||
|
|||||||
|
Before Width: | Height: | Size: 53 KiB |
|
Before Width: | Height: | Size: 64 KiB |
|
Before Width: | Height: | Size: 53 KiB |
@@ -2,9 +2,10 @@
|
|||||||
<!DOCTYPE properties SYSTEM "http://java.sun.com/dtd/properties.dtd">
|
<!DOCTYPE properties SYSTEM "http://java.sun.com/dtd/properties.dtd">
|
||||||
<properties version="1.0">
|
<properties version="1.0">
|
||||||
<!-- Item names -->
|
<!-- Item names -->
|
||||||
<entry key="item.jellyBabies.name">Handful of Jelly Babies</entry>
|
<entry key="item.thaumicbees:jellyBabies.name">Handful of Jelly Babies</entry>
|
||||||
<entry key="item.tb.thaumiumScoop.name">Thaumium Scoop</entry>
|
<entry key="item.thaumicbees:thaumiumScoop.name">Thaumium Scoop</entry>
|
||||||
<entry key="item.tb.thaumiumGrafter.name">Thaumium Grafter</entry>
|
<entry key="item.thaumicbees:thaumiumGrafter.name">Thaumium Grafter</entry>
|
||||||
|
<entry key="item.moonDial.name">Jade Moon Dial</entry>
|
||||||
|
|
||||||
<!-- Block names -->
|
<!-- Block names -->
|
||||||
<entry key="tile.tb.planks.greatwood.name">Greatwood Planks</entry>
|
<entry key="tile.tb.planks.greatwood.name">Greatwood Planks</entry>
|
||||||
@@ -24,9 +25,11 @@
|
|||||||
<entry key="tb.comb.magic">Infused Comb</entry>
|
<entry key="tb.comb.magic">Infused Comb</entry>
|
||||||
<entry key="tb.comb.aware">Memory Comb</entry>
|
<entry key="tb.comb.aware">Memory Comb</entry>
|
||||||
<entry key="tb.comb.furtive">Furtive Comb</entry>
|
<entry key="tb.comb.furtive">Furtive Comb</entry>
|
||||||
|
<entry key="tb.comb.soul">Soul Comb</entry>
|
||||||
|
|
||||||
<!-- Wax names -->
|
<!-- Wax names -->
|
||||||
<entry key="tb.wax.magic">Magic Wax</entry>
|
<entry key="tb.wax.magic">Magic Wax</entry>
|
||||||
|
<entry key="tb.wax.soul">Soulful Wax</entry>
|
||||||
|
|
||||||
<!-- Drop names -->
|
<!-- Drop names -->
|
||||||
<entry key="tb.drop.enchanting">Enchanting Drop</entry>
|
<entry key="tb.drop.enchanting">Enchanting Drop</entry>
|
||||||
@@ -36,6 +39,15 @@
|
|||||||
<entry key="tb.pollen.unusual">Unusual Pollen</entry>
|
<entry key="tb.pollen.unusual">Unusual Pollen</entry>
|
||||||
<entry key="tb.pollen.phased">Phased Pollen</entry>
|
<entry key="tb.pollen.phased">Phased Pollen</entry>
|
||||||
|
|
||||||
|
<!-- Nugget names -->
|
||||||
|
<entry key="tb.nugget.iron">Iron Nugget</entry>
|
||||||
|
<entry key="tb.nugget.copper">Copper Nugget</entry>
|
||||||
|
<entry key="tb.nugget.tin">Tin Nugget</entry>
|
||||||
|
<entry key="tb.nugget.silver">Silver Nugget</entry>
|
||||||
|
<entry key="tb.nugget.lead">Lead Nugget</entry>
|
||||||
|
<entry key="tb.nugget.diamond">Diamond Nugget</entry>
|
||||||
|
<entry key="tb.nugget.emerald">Emerald Nugget</entry>
|
||||||
|
|
||||||
<!-- Propolis names -->
|
<!-- Propolis names -->
|
||||||
<entry key="tb.propolis.dull">Dull Propolis</entry>
|
<entry key="tb.propolis.dull">Dull Propolis</entry>
|
||||||
<entry key="tb.propolis.air">Breezey Propolis</entry>
|
<entry key="tb.propolis.air">Breezey Propolis</entry>
|
||||||
@@ -48,15 +60,18 @@
|
|||||||
<entry key="tb.resource.fragment">Lore Fragment</entry>
|
<entry key="tb.resource.fragment">Lore Fragment</entry>
|
||||||
<entry key="tb.resource.lump">Aromatic Lump</entry>
|
<entry key="tb.resource.lump">Aromatic Lump</entry>
|
||||||
<entry key="tb.resource.fertilizer">Concentrated Compound</entry>
|
<entry key="tb.resource.fertilizer">Concentrated Compound</entry>
|
||||||
|
<entry key="tb.resource.startNode">Bees and Magic</entry>
|
||||||
|
<entry key="tb.resource.beeEnchant">Stark Infusion</entry>
|
||||||
<entry key="tb.resource.crystalFlux">Crystalized %s Aspect</entry>
|
<entry key="tb.resource.crystalFlux">Crystalized %s Aspect</entry>
|
||||||
|
|
||||||
<!-- Frames -->
|
<!-- Frames -->
|
||||||
<entry key="tb.frame.magic">Magic Frame</entry>
|
<entry key="item.frameMagic.name">Magic Frame</entry>
|
||||||
<entry key="tb.frame.resillient">Resilient Frame</entry>
|
<entry key="item.frameResilient.name">Resilient Frame</entry>
|
||||||
<entry key="tb.frame.gentle">Gentle Frame</entry>
|
<entry key="item.frameGentle.name">Gentle Frame</entry>
|
||||||
<entry key="tb.frame.metabolic">Metabolic Frame</entry>
|
<entry key="item.frameMetabolic.name">Metabolic Frame</entry>
|
||||||
<entry key="tb.frame.necrotic">Necrotic Frame</entry>
|
<entry key="item.frameNecrotic.name">Necrotic Frame</entry>
|
||||||
<entry key="tb.frame.temporal">Temporal Frame</entry>
|
<entry key="item.frameTemporal.name">Temporal Frame</entry>
|
||||||
|
<entry key="item.frameOblivion.name">Oblivion Frame</entry>
|
||||||
|
|
||||||
<!-- Capsule names -->
|
<!-- Capsule names -->
|
||||||
<entry key="tb.capsule.magic">Magic Capsule</entry>
|
<entry key="tb.capsule.magic">Magic Capsule</entry>
|
||||||
@@ -85,7 +100,7 @@
|
|||||||
<!-- Moon Phases -->
|
<!-- Moon Phases -->
|
||||||
<entry key="tb.moon.full">Full Moon</entry>
|
<entry key="tb.moon.full">Full Moon</entry>
|
||||||
<entry key="tb.moon.gibbousWaning">Waning Gibbous</entry>
|
<entry key="tb.moon.gibbousWaning">Waning Gibbous</entry>
|
||||||
<entry key="tb.moon.gibousWaxing">Waxing Gibbous</entry>
|
<entry key="tb.moon.gibbousWaxing">Waxing Gibbous</entry>
|
||||||
<entry key="tb.moon.halfWaning">Waning Half</entry>
|
<entry key="tb.moon.halfWaning">Waning Half</entry>
|
||||||
<entry key="tb.moon.halfWaxing">Waxing Half</entry>
|
<entry key="tb.moon.halfWaxing">Waxing Half</entry>
|
||||||
<entry key="tb.moon.crescentWaning">Waning Crescent</entry>
|
<entry key="tb.moon.crescentWaning">Waning Crescent</entry>
|
||||||
@@ -94,6 +109,7 @@
|
|||||||
|
|
||||||
<!-- Miscellaneous names -->
|
<!-- Miscellaneous names -->
|
||||||
<entry key="tb.backpack.thaumaturge">Thaumaturge's Backpack</entry>
|
<entry key="tb.backpack.thaumaturge">Thaumaturge's Backpack</entry>
|
||||||
|
<entry key="itemGroup.thaumicBees">Thaumic Bees</entry>
|
||||||
|
|
||||||
<!-- Species names -->
|
<!-- Species names -->
|
||||||
<entry key="thaumicbees.speciesEsoteric">Esoteric</entry>
|
<entry key="thaumicbees.speciesEsoteric">Esoteric</entry>
|
||||||
@@ -136,6 +152,8 @@
|
|||||||
<entry key="thaumicbees.speciesFlux.description">"I thought they would help clean up, but it only makes things worse!"|Kreicus, Apprentice Thaumaturge</entry>
|
<entry key="thaumicbees.speciesFlux.description">"I thought they would help clean up, but it only makes things worse!"|Kreicus, Apprentice Thaumaturge</entry>
|
||||||
<entry key="thaumicbees.speciesNode">Node</entry>
|
<entry key="thaumicbees.speciesNode">Node</entry>
|
||||||
<entry key="thaumicbees.speciesNode.description">Having undergone a freak mutation, these bees now attract magic to them.|Apinomicon</entry>
|
<entry key="thaumicbees.speciesNode.description">Having undergone a freak mutation, these bees now attract magic to them.|Apinomicon</entry>
|
||||||
|
<entry key="thaumicbees.speciesRejuvenating">Rejuvenating</entry>
|
||||||
|
<entry key="thaumicbees.speciesRejuvenating.description">The hum of the hive is magical, and over time is absorbed by nearby nodes.|Apinomicon</entry>
|
||||||
<entry key="thaumicbees.speciesSkulking">Skulking</entry>
|
<entry key="thaumicbees.speciesSkulking">Skulking</entry>
|
||||||
<entry key="thaumicbees.speciesSkulking.description">These bees have become xenophobic and bad-tempered. Use caution.|Apinomicon</entry>
|
<entry key="thaumicbees.speciesSkulking.description">These bees have become xenophobic and bad-tempered. Use caution.|Apinomicon</entry>
|
||||||
<entry key="thaumicbees.speciesBrainy">Brainy</entry>
|
<entry key="thaumicbees.speciesBrainy">Brainy</entry>
|
||||||
@@ -147,20 +165,50 @@
|
|||||||
<entry key="thaumicbees.speciesBatty">Batty</entry>
|
<entry key="thaumicbees.speciesBatty">Batty</entry>
|
||||||
<entry key="thaumicbees.speciesBatty.description">They tend to attract bats to their hives through means unknown.|Apinomicon</entry>
|
<entry key="thaumicbees.speciesBatty.description">They tend to attract bats to their hives through means unknown.|Apinomicon</entry>
|
||||||
<entry key="thaumicbees.speciesGhastly">Ghastly</entry>
|
<entry key="thaumicbees.speciesGhastly">Ghastly</entry>
|
||||||
<entry key="thaumicbees.speciesGhastly.description">"*sigh*... Really, Myst?"|Taveria</entry>
|
<entry key="thaumicbees.speciesGhastly.description">"*sigh*... Really, Myst?"|Taveria, irritated Apiarist</entry>
|
||||||
<entry key="thaumicbees.speciesTimely">Timely</entry>
|
<entry key="thaumicbees.speciesTimely">Timely</entry>
|
||||||
<entry key="thaumicbees.speciesTimely.description">"An apiarist is never late. He arrives precicely when he means to!"|Sengir, Mad Apiarist</entry>
|
<entry key="thaumicbees.speciesTimely.description">"An apiarist is never late. He arrives precisely when he means to!"|Sengir, Mad Apiarist</entry>
|
||||||
<entry key="thaumicbees.speciesLordly">Lordly</entry>
|
<entry key="thaumicbees.speciesLordly">Lordly</entry>
|
||||||
<entry key="thaumicbees.speciesLordly.description">They live in peace, within the sight of the Eye of Harmony|Tattered Remains of ancient Apinomicon</entry>
|
<entry key="thaumicbees.speciesLordly.description">They live in peace, within the sight of the Eye of Harmony|Tattered Remains of ancient Apinomicon</entry>
|
||||||
<entry key="thaumicbees.speciesDoctoral">Doctoral</entry>
|
<entry key="thaumicbees.speciesDoctoral">Doctoral</entry>
|
||||||
<entry key="thaumicbees.speciesDoctoral.description">"Would you like a Jelly Baby?"|Passing stranger with a great scarf and a blue box</entry>
|
<entry key="thaumicbees.speciesDoctoral.description">"Would you like a Jelly Baby?"|Passing stranger with a great scarf and a blue box</entry>
|
||||||
|
<entry key="thaumicbees.speciesMinium">Minium</entry>
|
||||||
|
<entry key="thaumicbees.speciesMinium.description">"They're the least of your concern. Like, the Minium concern! ... get it?"|MysteriousAges, Former Comedian</entry>
|
||||||
|
<entry key="thaumicbees.speciesSpirit">Spirit</entry>
|
||||||
|
<entry key="thaumicbees.speciesSpirit.description">It is said these bees are able to contact the dead.|Apinomicon</entry>
|
||||||
|
<entry key="thaumicbees.speciesSoul">Soul</entry>
|
||||||
|
<entry key="thaumicbees.speciesSoul.description">"The Dread Pirate Roberts has come for your SOOOOOOULS!"|Dread Pirate Roberts</entry>
|
||||||
|
<entry key="thaumicbees.speciesIron">Iron</entry>
|
||||||
|
<entry key="thaumicbees.speciesIron.description">Having absorbed some of the base metal, these bees can concentrate the essence of iron from the region.|Apinomicon</entry>
|
||||||
|
<entry key="thaumicbees.speciesGold">Gold</entry>
|
||||||
|
<entry key="thaumicbees.speciesGold.description">Not all that glitters is gold.|Ancient Aphorism</entry>
|
||||||
|
<entry key="thaumicbees.speciesCopper">Copper</entry>
|
||||||
|
<entry key="thaumicbees.speciesCopper.description">A base metal common in many applications; these bees are helpful for resource-starved magicians.|Apinomicon</entry>
|
||||||
|
<entry key="thaumicbees.speciesTin">Tin</entry>
|
||||||
|
<entry key="thaumicbees.speciesTin.description">While metalic, these bees are suprisingly fragile.|Apinomicon</entry>
|
||||||
|
<entry key="thaumicbees.speciesSilver">Silver</entry>
|
||||||
|
<entry key="thaumicbees.speciesSilver.description">While they do not recieve as much attention as Golden bees, they are nonetheless valuable.|Apinomicon</entry>
|
||||||
|
<entry key="thaumicbees.speciesLead">Lead</entry>
|
||||||
|
<entry key="thaumicbees.speciesLead.description">A favourite of amateur alchemists, they believe they can transform these bees into gold.|Apinomicon</entry>
|
||||||
|
<entry key="thaumicbees.speciesDiamond">Diamond</entry>
|
||||||
|
<entry key="thaumicbees.speciesDiamond.description">Crystalline, glittering, and harder than dragon's teeth. These bees are none of those.|Apinomicon</entry>
|
||||||
|
<entry key="thaumicbees.speciesEmerald">Emerald</entry>
|
||||||
|
<entry key="thaumicbees.speciesEmerald.description">It is said they have been to a land ruled by a Great Wizard, and have taken the aspect of his city.|Apinomicon</entry>
|
||||||
|
<entry key="thaumicbees.speciesChicken">Poultry</entry>
|
||||||
|
<entry key="thaumicbees.speciesChicken.description">"Cluck. Cluck cluck! ... You heard me."|Confused bee</entry>
|
||||||
|
<entry key="thaumicbees.speciesBeef">Beefy</entry>
|
||||||
|
<entry key="thaumicbees.speciesBeef.description">"Moo, moo, moo. Wait, what?"|Confused bee</entry>
|
||||||
|
<entry key="thaumicbees.speciesPork">Porcine</entry>
|
||||||
|
<entry key="thaumicbees.speciesPork.description">"Oink, oink. Er.... bzzz?"|Confused bee</entry>
|
||||||
|
|
||||||
<!-- Bee Alleles -->
|
<!-- Bee Alleles -->
|
||||||
<entry key="thaumicbees.effectCurative">Cleansing</entry>
|
<entry key="thaumicbees.effectCurative">Cleansing</entry>
|
||||||
<entry key="thaumicbees.effecteffectDigSpeed">Mining</entry>
|
<entry key="thaumicbees.effecteffectDigSpeed">Mining</entry>
|
||||||
<entry key="thaumicbees.effecteffectMoveSpeed">Swiftness</entry>
|
<entry key="thaumicbees.effecteffectMoveSpeed">Swiftness</entry>
|
||||||
<entry key="thaumicbees.effecteffectSlowSpeed">Time Warp</entry>
|
<entry key="thaumicbees.effecteffectSlowSpeed">Time Warp</entry>
|
||||||
<entry key="thaumicbees.effectNodeGeneration">Aura Attract</entry>
|
<entry key="thaumicbees.effectNodeGeneration">Aura Attract</entry>
|
||||||
|
<entry key="thaumicbees.effectNodePurify">Purify Aura</entry>
|
||||||
|
<entry key="thaumicbees.effectNodeFlux">Aura Flux</entry>
|
||||||
<entry key="thaumicbees.effectBrainy">Brainy</entry>
|
<entry key="thaumicbees.effectBrainy">Brainy</entry>
|
||||||
<entry key="thaumicbees.effectBatty">Batty</entry>
|
<entry key="thaumicbees.effectBatty">Batty</entry>
|
||||||
<entry key="thaumicbees.effectWispy">Wispy</entry>
|
<entry key="thaumicbees.effectWispy">Wispy</entry>
|
||||||
@@ -168,8 +216,6 @@
|
|||||||
<entry key="tb.bees.flower.book">Books</entry>
|
<entry key="tb.bees.flower.book">Books</entry>
|
||||||
<entry key="tb.bees.flower.magic">Magic Flowers</entry>
|
<entry key="tb.bees.flower.magic">Magic Flowers</entry>
|
||||||
<entry key="tb.bees.flower.node">Node</entry>
|
<entry key="tb.bees.flower.node">Node</entry>
|
||||||
<entry key="tb.bees.flower.nodePure">Purify Node</entry>
|
|
||||||
<entry key="tb.bees.flower.nodeFlux">Fluxify Node</entry>
|
|
||||||
|
|
||||||
<!-- Classifications -->
|
<!-- Classifications -->
|
||||||
<entry key="classification.arcane">Arcane</entry>
|
<entry key="classification.arcane">Arcane</entry>
|
||||||
@@ -182,10 +228,19 @@
|
|||||||
<entry key="classification.thaumic.description"></entry>
|
<entry key="classification.thaumic.description"></entry>
|
||||||
<entry key="classification.skulking">Skulking</entry>
|
<entry key="classification.skulking">Skulking</entry>
|
||||||
<entry key="classification.skulking.description"></entry>
|
<entry key="classification.skulking.description"></entry>
|
||||||
<entry key="classification.vis">Vis</entry>
|
<entry key="classification.vis">Aware</entry>
|
||||||
<entry key="classification.vis.description"></entry>
|
<entry key="classification.vis.description"></entry>
|
||||||
<entry key="classification.time">Time</entry>
|
<entry key="classification.time">Time</entry>
|
||||||
<entry key="classification.time.description"></entry>
|
<entry key="classification.time.description"></entry>
|
||||||
|
<entry key="classification.soul">Soulful</entry>
|
||||||
|
<entry key="classification.soul.description"></entry>
|
||||||
|
<entry key="classification.alchemical">Alchemical</entry>
|
||||||
|
<entry key="classification.alchemical.description"></entry>
|
||||||
|
<entry key="classification.metallic">Metallic</entry>
|
||||||
|
<entry key="classification.metallic.description"></entry>
|
||||||
|
<entry key="classification.gem">Gem</entry>
|
||||||
|
<entry key="classification.gem.description"></entry>
|
||||||
|
<entry key="classification.fleshy">Fleshy</entry>
|
||||||
|
<entry key="classification.fleshy.description"></entry>
|
||||||
|
|
||||||
</properties>
|
</properties>
|
||||||
@@ -1,12 +1,12 @@
|
|||||||
[
|
[
|
||||||
{
|
{
|
||||||
"modid": "ThaumicBees",
|
"modid": "ThaumicBees",
|
||||||
"version": @MODVERSION@
|
"version": "@MODVERSION@",
|
||||||
"name": "ThaumicBees",
|
"name": "ThaumicBees",
|
||||||
"url": "http://bit.ly/XFDvLY",
|
"url": "http://bit.ly/XFDvLY",
|
||||||
"description": "Crossover mod for Forestry and Thaumcraft. Magic bees & more.",
|
"description": "Magic bees & more. Supports Thaumcraft, Equivalent Exchange 3",
|
||||||
"authors": [ "MysteriousAges" ],
|
"authors": [ "MysteriousAges" ],
|
||||||
"credits": "Thanks to Sengir and Azanor for awesome mods! Also thanks to Binnie and Florastar. (:",
|
"credits": "SirSengir, Azanor, Binnie & the Forestry Dev peeps",
|
||||||
"logoFile": "/gfx/thaumicbees/logo.png"
|
"logoFile": "/mods/thaumicbees/textures/logo.png"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
After Width: | Height: | Size: 3.0 KiB |
|
After Width: | Height: | Size: 3.1 KiB |
|
After Width: | Height: | Size: 1.5 KiB |
|
After Width: | Height: | Size: 1.3 KiB |
|
After Width: | Height: | Size: 1.5 KiB |
|
After Width: | Height: | Size: 1.2 KiB |
|
After Width: | Height: | Size: 3.0 KiB |
|
After Width: | Height: | Size: 3.1 KiB |
|
After Width: | Height: | Size: 1.3 KiB |
|
After Width: | Height: | Size: 1.3 KiB |
|
After Width: | Height: | Size: 1.3 KiB |
|
After Width: | Height: | Size: 1.3 KiB |
|
After Width: | Height: | Size: 1.4 KiB |
|
After Width: | Height: | Size: 1.3 KiB |
|
After Width: | Height: | Size: 1.3 KiB |
|
After Width: | Height: | Size: 1.4 KiB |
|
After Width: | Height: | Size: 1.2 KiB |
|
After Width: | Height: | Size: 1.3 KiB |
|
After Width: | Height: | Size: 1.1 KiB |
|
After Width: | Height: | Size: 1.1 KiB |
|
After Width: | Height: | Size: 1.1 KiB |
|
After Width: | Height: | Size: 1.1 KiB |
|
After Width: | Height: | Size: 1.1 KiB |
|
After Width: | Height: | Size: 1.1 KiB |
|
After Width: | Height: | Size: 1.2 KiB |
|
After Width: | Height: | Size: 1.1 KiB |
|
After Width: | Height: | Size: 1.4 KiB |
|
After Width: | Height: | Size: 1.1 KiB |
|
After Width: | Height: | Size: 1.1 KiB |
|
After Width: | Height: | Size: 1.1 KiB |
|
After Width: | Height: | Size: 1.1 KiB |
|
After Width: | Height: | Size: 1.1 KiB |
|
After Width: | Height: | Size: 1.1 KiB |
|
After Width: | Height: | Size: 2.9 KiB |
|
After Width: | Height: | Size: 1.8 KiB |
|
After Width: | Height: | Size: 1.7 KiB |
|
After Width: | Height: | Size: 1.8 KiB |
|
After Width: | Height: | Size: 1.8 KiB |
|
After Width: | Height: | Size: 1.8 KiB |
|
After Width: | Height: | Size: 1.8 KiB |
|
After Width: | Height: | Size: 1.8 KiB |
|
After Width: | Height: | Size: 1.8 KiB |
|
After Width: | Height: | Size: 2.9 KiB |
|
After Width: | Height: | Size: 2.9 KiB |
|
After Width: | Height: | Size: 1.2 KiB |
|
After Width: | Height: | Size: 2.9 KiB |
|
After Width: | Height: | Size: 2.9 KiB |
|
After Width: | Height: | Size: 2.9 KiB |
|
After Width: | Height: | Size: 2.9 KiB |
|
After Width: | Height: | Size: 1.6 KiB |
|
After Width: | Height: | Size: 1.3 KiB |
|
After Width: | Height: | Size: 1.6 KiB |
|
After Width: | Height: | Size: 2.9 KiB |
|
After Width: | Height: | Size: 2.9 KiB |
|
Before Width: | Height: | Size: 21 KiB After Width: | Height: | Size: 21 KiB |
@@ -195,5 +195,17 @@ public class GenericInventory implements IInventory
|
|||||||
@Override
|
@Override
|
||||||
public void closeChest() { }
|
public void closeChest() { }
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean isInvNameLocalized() {
|
||||||
|
// TODO Auto-generated method stub
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean isStackValidForSlot(int i, ItemStack itemstack) {
|
||||||
|
// TODO Auto-generated method stub
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
@@ -3,6 +3,7 @@ package thaumicbees.bees;
|
|||||||
import net.minecraft.potion.Potion;
|
import net.minecraft.potion.Potion;
|
||||||
import thaumicbees.main.utils.compat.ThaumcraftHelper;
|
import thaumicbees.main.utils.compat.ThaumcraftHelper;
|
||||||
import forestry.api.apiculture.IAlleleBeeSpecies;
|
import forestry.api.apiculture.IAlleleBeeSpecies;
|
||||||
|
import forestry.api.apiculture.IAlleleFlowers;
|
||||||
import forestry.api.genetics.AlleleManager;
|
import forestry.api.genetics.AlleleManager;
|
||||||
import forestry.api.genetics.IAllele;
|
import forestry.api.genetics.IAllele;
|
||||||
|
|
||||||
@@ -10,11 +11,13 @@ public class Allele implements IAllele
|
|||||||
{
|
{
|
||||||
public static AlleleInteger fertilityHighDominant;
|
public static AlleleInteger fertilityHighDominant;
|
||||||
|
|
||||||
public static AlleleFlower flowerBookshelf;
|
public static IAlleleFlowers flowerBookshelf;
|
||||||
public static AlleleFlower flowerThaumcraft;
|
public static IAlleleFlowers flowerThaumcraft;
|
||||||
public static AlleleFlower flowerAuraNode;
|
public static IAlleleFlowers flowerAuraNode;
|
||||||
public static AlleleFlower flowerNodePurify;
|
@Deprecated
|
||||||
public static AlleleFlower flowerNodeFluxify;
|
public static IAlleleFlowers flowerNodePurify;
|
||||||
|
@Deprecated
|
||||||
|
public static IAlleleFlowers flowerNodeFluxify;
|
||||||
|
|
||||||
public static AlleleEffectCure cleansingEffect;
|
public static AlleleEffectCure cleansingEffect;
|
||||||
public static AlleleEffectPotion digSpeed;
|
public static AlleleEffectPotion digSpeed;
|
||||||
@@ -24,36 +27,52 @@ public class Allele implements IAllele
|
|||||||
public static AlleleEffectSpawnMob spawnWisp;
|
public static AlleleEffectSpawnMob spawnWisp;
|
||||||
public static AlleleEffectSpawnMob spawnBats;
|
public static AlleleEffectSpawnMob spawnBats;
|
||||||
public static AlleleEffectSpawnMob spawnGhast;
|
public static AlleleEffectSpawnMob spawnGhast;
|
||||||
public static AlleleEffectAuraNodeGrow nodeGen;
|
public static AlleleEffectAuraNodeAttract effectNodeAttract;
|
||||||
|
public static AlleleEffectAuraNodePurify effectNodePurify;
|
||||||
|
public static AlleleEffectAuraNodeFlux effectNodeFlux;
|
||||||
|
public static AlleleEffectAuraNodeCharge effectNodeCharge;
|
||||||
|
|
||||||
public static void setupAdditionalAlleles()
|
public static void setupAdditionalAlleles()
|
||||||
{
|
{
|
||||||
Allele.fertilityHighDominant = new AlleleInteger("fertilityHighDominant", 3, true);
|
Allele.fertilityHighDominant = new AlleleInteger("fertilityHighDominant", 3, true);
|
||||||
|
|
||||||
Allele.flowerBookshelf = new AlleleFlower("flowerBookshelf", new FlowerProviderBookshelf(), true);
|
Allele.flowerBookshelf = new AlleleFlower("flowerBookshelf", new FlowerProviderBookshelf(), true);
|
||||||
Allele.flowerThaumcraft = new AlleleFlower("flowerThaumcraftPlant", new FlowerProviderThaumcraftFlower(), false);
|
if (ThaumcraftHelper.isActive())
|
||||||
Allele.flowerAuraNode = new AlleleFlower("flowerAuraNode", new FlowerProviderAuraNode(), true);
|
{
|
||||||
Allele.flowerNodePurify = new AlleleFlower("flowerAuraNodePurify", new FlowerProviderAuraNodePurify(), false);
|
Allele.flowerThaumcraft = new AlleleFlower("flowerThaumcraftPlant", new FlowerProviderThaumcraftFlower(), false);
|
||||||
Allele.flowerNodeFluxify = new AlleleFlower("flowerAuraNodeFlux", new FlowerProviderAuraNodeFlux(), false);
|
Allele.flowerAuraNode = new AlleleFlower("flowerAuraNode", new FlowerProviderAuraNode(), true);
|
||||||
|
Allele.flowerNodePurify = new AlleleFlower("flowerAuraNodePurify", new FlowerProviderAuraNode(), false);
|
||||||
|
Allele.flowerNodeFluxify = new AlleleFlower("flowerAuraNodeFlux", new FlowerProviderAuraNode(), false);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
Allele.flowerThaumcraft = (IAlleleFlowers)Allele.getBaseAllele("flowersVanilla");
|
||||||
|
Allele.flowerAuraNode = (IAlleleFlowers)Allele.getBaseAllele("flowersVanilla");
|
||||||
|
Allele.flowerNodePurify = (IAlleleFlowers)Allele.getBaseAllele("flowersVanilla");
|
||||||
|
Allele.flowerNodeFluxify = (IAlleleFlowers)Allele.getBaseAllele("flowersVanilla");
|
||||||
|
}
|
||||||
|
|
||||||
|
Allele.effectNodeAttract = new AlleleEffectAuraNodeAttract("effectNodeGeneration", false, 400);
|
||||||
|
Allele.effectNodePurify = new AlleleEffectAuraNodePurify("effectNodePurify", false, 600, 150);
|
||||||
|
Allele.effectNodeFlux = new AlleleEffectAuraNodeFlux("effectNodeFlux", true, 300, 300);
|
||||||
|
Allele.effectNodeCharge = new AlleleEffectAuraNodeCharge("effectNodeCharge", true, 1200);
|
||||||
|
|
||||||
Allele.cleansingEffect = new AlleleEffectCure("effectCurative", false);
|
Allele.cleansingEffect = new AlleleEffectCure("effectCurative", false);
|
||||||
Allele.digSpeed = new AlleleEffectPotion("effectDigSpeed", Potion.digSpeed, 7, false);
|
Allele.digSpeed = new AlleleEffectPotion("effectDigSpeed", Potion.digSpeed, 15, false);
|
||||||
Allele.moveSpeed = new AlleleEffectPotion("effectMoveSpeed", Potion.moveSpeed, 5, false);
|
Allele.moveSpeed = new AlleleEffectPotion("effectMoveSpeed", Potion.moveSpeed, 10, false);
|
||||||
Allele.slowSpeed = new AlleleEffectPotion("effectSlowSpeed", Potion.moveSlowdown, 3, false);
|
Allele.slowSpeed = new AlleleEffectPotion("effectSlowSpeed", Potion.moveSlowdown, 3, false);
|
||||||
|
|
||||||
Allele.nodeGen = new AlleleEffectAuraNodeGrow("effectNodeGeneration", false, 400);
|
|
||||||
|
|
||||||
Allele.spawnBrainyZombie = new AlleleEffectSpawnMob("effectBrainy", false, ThaumcraftHelper.Entity.BRAINY_ZOMBIE.entityID);
|
Allele.spawnBrainyZombie = new AlleleEffectSpawnMob("effectBrainy", false, ThaumcraftHelper.Entity.BRAINY_ZOMBIE.entityID);
|
||||||
Allele.spawnBrainyZombie.setAggrosPlayerOnSpawn().setThrottle(800).setSpawnsOnPlayerNear(null).setMaxMobsInSpawnZone(2);
|
Allele.spawnBrainyZombie.setAggrosPlayerOnSpawn().setThrottle(800).setSpawnsOnPlayerNear(null).setMaxMobsInSpawnZone(2);
|
||||||
|
|
||||||
Allele.spawnBats = new AlleleEffectSpawnMob("effectBatty", false, ThaumcraftHelper.Entity.FIREBAT.entityID);
|
Allele.spawnBats = new AlleleEffectSpawnMob("effectBatty", false, ThaumcraftHelper.Entity.FIREBAT.entityID);
|
||||||
Allele.spawnBats.setThrottle(300).setSpawnsOnPlayerNear("Bat");
|
Allele.spawnBats.setThrottle(300).setSpawnsOnPlayerNear("Bat");
|
||||||
|
|
||||||
Allele.spawnWisp = new AlleleEffectSpawnWisp("effectWispy", false, ThaumcraftHelper.Entity.WISP.entityID);
|
Allele.spawnWisp = new AlleleEffectSpawnWisp("effectWispy", false, ThaumcraftHelper.Entity.WISP.entityID, "thaumcraft.wisplive");
|
||||||
Allele.spawnWisp.setThrottle(1800);
|
Allele.spawnWisp.setThrottle(1800).setChanceToSpawn(79);
|
||||||
|
|
||||||
Allele.spawnGhast = new AlleleEffectSpawnMob("Ghast", false, "Ghast");
|
Allele.spawnGhast = new AlleleEffectSpawnMob("Ghast", false, "Ghast", "mob.ghast.moan");
|
||||||
Allele.spawnGhast.setThrottle(2000).setChanceToSpawn(20).setMaxMobsInSpawnZone(1);
|
Allele.spawnGhast.setThrottle(2060).setChanceToSpawn(10).setMaxMobsInSpawnZone(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
private String uid;
|
private String uid;
|
||||||
|
|||||||
@@ -45,14 +45,14 @@ public abstract class AlleleEffect extends Allele implements IAlleleBeeEffect
|
|||||||
public IEffectData doFX(IBeeGenome genome, IEffectData storedData, IBeeHousing housing)
|
public IEffectData doFX(IBeeGenome genome, IEffectData storedData, IBeeHousing housing)
|
||||||
{
|
{
|
||||||
int[] area = genome.getTerritory();
|
int[] area = genome.getTerritory();
|
||||||
float mod = housing.getTerritoryModifier(genome);
|
float mod = housing.getTerritoryModifier(genome, 1f);
|
||||||
// Check to make sure territory is at least 1 with housing modifications
|
// Check to make sure territory is at least 1 with housing modifications
|
||||||
area[0] = Math.max((int)(area[0] * mod), 1);
|
area[0] = Math.max((int)(area[0] * mod), 1);
|
||||||
area[1] = Math.max((int)(area[1] * mod), 1);
|
area[1] = Math.max((int)(area[1] * mod), 1);
|
||||||
area[2] = Math.max((int)(area[2] * mod), 1);
|
area[2] = Math.max((int)(area[2] * mod), 1);
|
||||||
|
|
||||||
ThaumicBees.proxy.drawBeeEffects(housing.getWorld(), housing.getXCoord(), housing.getYCoord(), housing.getZCoord(),
|
ThaumicBees.proxy.drawBeeEffects(housing.getWorld(), housing.getXCoord(), housing.getYCoord(), housing.getZCoord(),
|
||||||
genome.getPrimaryAsBee().getPrimaryColor(), area[0], area[1], area[2]);
|
genome.getPrimaryAsBee().getIconColour(0), area[0], area[1], area[2]);
|
||||||
return storedData;
|
return storedData;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -85,7 +85,7 @@ public abstract class AlleleEffect extends Allele implements IAlleleBeeEffect
|
|||||||
min[2] = housing.getZCoord() - area[2] / 2;
|
min[2] = housing.getZCoord() - area[2] / 2;
|
||||||
max[2] = housing.getZCoord() + area[2] / 2;
|
max[2] = housing.getZCoord() + area[2] / 2;
|
||||||
|
|
||||||
AxisAlignedBB bounds = AxisAlignedBB.getAABBPool().addOrModifyAABBInPool(min[0], min[1], min[2], max[0], max[1], max[2]);
|
AxisAlignedBB bounds = AxisAlignedBB.getAABBPool().getAABB(min[0], min[1], min[2], max[0], max[1], max[2]);
|
||||||
return housing.getWorld().getEntitiesWithinAABB(EntityPlayer.class, bounds);
|
return housing.getWorld().getEntitiesWithinAABB(EntityPlayer.class, bounds);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -11,12 +11,12 @@ import forestry.api.apiculture.IBeeGenome;
|
|||||||
import forestry.api.apiculture.IBeeHousing;
|
import forestry.api.apiculture.IBeeHousing;
|
||||||
import forestry.api.genetics.IEffectData;
|
import forestry.api.genetics.IEffectData;
|
||||||
|
|
||||||
public class AlleleEffectAuraNodeGrow extends AlleleEffect
|
public class AlleleEffectAuraNodeAttract extends AlleleEffect
|
||||||
{
|
{
|
||||||
|
|
||||||
private int throttle;
|
private int throttle;
|
||||||
|
|
||||||
public AlleleEffectAuraNodeGrow(String id, boolean isDominant, int timeout)
|
public AlleleEffectAuraNodeAttract(String id, boolean isDominant, int timeout)
|
||||||
{
|
{
|
||||||
super(id, isDominant);
|
super(id, isDominant);
|
||||||
this.throttle = timeout;
|
this.throttle = timeout;
|
||||||
@@ -0,0 +1,59 @@
|
|||||||
|
package thaumicbees.bees;
|
||||||
|
|
||||||
|
import net.minecraft.world.World;
|
||||||
|
import thaumcraft.api.EnumTag;
|
||||||
|
import thaumcraft.api.ObjectTags;
|
||||||
|
import thaumcraft.api.ThaumcraftApi;
|
||||||
|
import forestry.api.apiculture.IBeeGenome;
|
||||||
|
import forestry.api.apiculture.IBeeHousing;
|
||||||
|
import forestry.api.genetics.IEffectData;
|
||||||
|
|
||||||
|
public class AlleleEffectAuraNodeCharge extends AlleleEffect
|
||||||
|
{
|
||||||
|
|
||||||
|
private int effectTimeout;
|
||||||
|
|
||||||
|
AlleleEffectAuraNodeCharge(String id, boolean dominant, int timeout)
|
||||||
|
{
|
||||||
|
super(id, dominant);
|
||||||
|
this.effectTimeout = timeout;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public IEffectData validateStorage(IEffectData storedData)
|
||||||
|
{
|
||||||
|
if (storedData == null)
|
||||||
|
{
|
||||||
|
storedData = new EffectData(1, 0, 0);
|
||||||
|
}
|
||||||
|
return storedData;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public IEffectData doEffect(IBeeGenome genome, IEffectData storedData, IBeeHousing housing)
|
||||||
|
{
|
||||||
|
int timeout = storedData.getInteger(0);
|
||||||
|
if (timeout >= this.effectTimeout)
|
||||||
|
{
|
||||||
|
World world = housing.getWorld();
|
||||||
|
int x = housing.getXCoord();
|
||||||
|
int y = housing.getYCoord();
|
||||||
|
int z = housing.getZCoord();
|
||||||
|
|
||||||
|
EnumTag tag;
|
||||||
|
do
|
||||||
|
{
|
||||||
|
tag = EnumTag.values()[world.rand.nextInt(EnumTag.values().length)];
|
||||||
|
}
|
||||||
|
while (tag == EnumTag.UNKNOWN || tag == EnumTag.WEATHER);
|
||||||
|
|
||||||
|
ThaumcraftApi.increaseLowestAura(world, x, y, z, 1);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
storedData.setInteger(0, timeout + 1);
|
||||||
|
}
|
||||||
|
return storedData;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
@@ -0,0 +1,65 @@
|
|||||||
|
package thaumicbees.bees;
|
||||||
|
|
||||||
|
import net.minecraft.world.World;
|
||||||
|
import thaumcraft.api.EnumTag;
|
||||||
|
import thaumcraft.api.ObjectTags;
|
||||||
|
import thaumcraft.api.ThaumcraftApi;
|
||||||
|
import forestry.api.apiculture.IBeeGenome;
|
||||||
|
import forestry.api.apiculture.IBeeHousing;
|
||||||
|
import forestry.api.genetics.IEffectData;
|
||||||
|
|
||||||
|
public class AlleleEffectAuraNodeFlux extends AlleleEffect
|
||||||
|
{
|
||||||
|
private int effectTimeout;
|
||||||
|
private int nodeRange;
|
||||||
|
|
||||||
|
AlleleEffectAuraNodeFlux(String id, boolean dominant, int timeout, int range)
|
||||||
|
{
|
||||||
|
super(id, dominant);
|
||||||
|
this.effectTimeout = timeout;
|
||||||
|
this.nodeRange = range;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public IEffectData validateStorage(IEffectData storedData)
|
||||||
|
{
|
||||||
|
if (storedData == null)
|
||||||
|
{
|
||||||
|
storedData = new EffectData(1, 0, 0);
|
||||||
|
}
|
||||||
|
return storedData;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public IEffectData doEffect(IBeeGenome genome, IEffectData storedData, IBeeHousing housing)
|
||||||
|
{
|
||||||
|
int timeout = storedData.getInteger(0);
|
||||||
|
if (timeout >= this.effectTimeout)
|
||||||
|
{
|
||||||
|
World world = housing.getWorld();
|
||||||
|
int x = housing.getXCoord();
|
||||||
|
int y = housing.getYCoord();
|
||||||
|
int z = housing.getZCoord();
|
||||||
|
|
||||||
|
EnumTag tag;
|
||||||
|
do
|
||||||
|
{
|
||||||
|
tag = EnumTag.values()[world.rand.nextInt(EnumTag.values().length)];
|
||||||
|
}
|
||||||
|
while (tag == EnumTag.UNKNOWN || tag == EnumTag.WEATHER);
|
||||||
|
|
||||||
|
int nodeId = ThaumcraftApi.getClosestAuraWithinRange(world, x, y, z, this.nodeRange);
|
||||||
|
if (nodeId != -1)
|
||||||
|
{
|
||||||
|
int quantity = world.rand.nextInt(2) + 1;
|
||||||
|
ThaumcraftApi.queueNodeChanges(nodeId, 0, 0, false, new ObjectTags().add(tag, quantity), 0f, 0f, 0f);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
storedData.setInteger(0, timeout + 1);
|
||||||
|
}
|
||||||
|
return storedData;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
@@ -0,0 +1,75 @@
|
|||||||
|
package thaumicbees.bees;
|
||||||
|
|
||||||
|
import net.minecraft.item.ItemStack;
|
||||||
|
import net.minecraft.world.World;
|
||||||
|
import thaumcraft.api.AuraNode;
|
||||||
|
import thaumcraft.api.EnumTag;
|
||||||
|
import thaumcraft.api.ObjectTags;
|
||||||
|
import thaumcraft.api.ThaumcraftApi;
|
||||||
|
import thaumicbees.main.Config;
|
||||||
|
import forestry.api.apiculture.IBeeGenome;
|
||||||
|
import forestry.api.apiculture.IBeeHousing;
|
||||||
|
import forestry.api.genetics.IEffectData;
|
||||||
|
|
||||||
|
public class AlleleEffectAuraNodePurify extends AlleleEffect
|
||||||
|
{
|
||||||
|
private int effectTimeout;
|
||||||
|
private int nodeRange;
|
||||||
|
|
||||||
|
public AlleleEffectAuraNodePurify(String id, boolean dominant, int timeout, int range)
|
||||||
|
{
|
||||||
|
super(id, dominant);
|
||||||
|
this.effectTimeout = timeout;
|
||||||
|
this.nodeRange = range;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public IEffectData validateStorage(IEffectData storedData)
|
||||||
|
{
|
||||||
|
if (storedData == null)
|
||||||
|
{
|
||||||
|
storedData = new EffectData(1, 0, 0);
|
||||||
|
}
|
||||||
|
return storedData;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public IEffectData doEffect(IBeeGenome genome, IEffectData storedData, IBeeHousing housing)
|
||||||
|
{
|
||||||
|
int timeout = storedData.getInteger(0);
|
||||||
|
if (timeout >= this.effectTimeout)
|
||||||
|
{
|
||||||
|
World world = housing.getWorld();
|
||||||
|
int x = housing.getXCoord();
|
||||||
|
int y = housing.getYCoord();
|
||||||
|
int z = housing.getZCoord();
|
||||||
|
|
||||||
|
int nodeId = ThaumcraftApi.getClosestAuraWithinRange(world, x, y, z, this.nodeRange);
|
||||||
|
if (nodeId >= 0)
|
||||||
|
{
|
||||||
|
AuraNode node = ThaumcraftApi.getNodeCopy(nodeId);
|
||||||
|
if (node != null)
|
||||||
|
{
|
||||||
|
int aspectCount = node.flux.tags.size();
|
||||||
|
if (aspectCount > 0)
|
||||||
|
{
|
||||||
|
EnumTag selectedTag = node.flux.getAspectsSorted()[world.rand.nextInt(node.flux.tags.size())];
|
||||||
|
if (selectedTag != null && housing.addProduct(new ItemStack(Config.solidFlux, 1, selectedTag.id), true))
|
||||||
|
{
|
||||||
|
node.flux.remove(selectedTag, 1);
|
||||||
|
ThaumcraftApi.queueNodeChanges(node.key, 0, 0, false, new ObjectTags().remove(selectedTag, 1), 0, 0, 0);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
storedData.setInteger(0, 0);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
storedData.setInteger(0, timeout + 1);
|
||||||
|
}
|
||||||
|
|
||||||
|
return storedData;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
@@ -21,11 +21,17 @@ public class AlleleEffectSpawnMob extends AlleleEffect
|
|||||||
protected boolean spawnsWhilePlayerNear;
|
protected boolean spawnsWhilePlayerNear;
|
||||||
protected String alternateMob;
|
protected String alternateMob;
|
||||||
protected String mobName;
|
protected String mobName;
|
||||||
|
protected String mobSound;
|
||||||
protected int throttle;
|
protected int throttle;
|
||||||
protected int chanceToSpawn;
|
protected int chanceToSpawn;
|
||||||
protected int maxMobsInArea;
|
protected int maxMobsInArea;
|
||||||
|
|
||||||
public AlleleEffectSpawnMob(String id, boolean isDominant, String mobToSpawn)
|
public AlleleEffectSpawnMob(String id, boolean isDominant, String mobToSpawn)
|
||||||
|
{
|
||||||
|
this(id, isDominant, mobToSpawn, null);
|
||||||
|
}
|
||||||
|
|
||||||
|
public AlleleEffectSpawnMob(String id, boolean isDominant, String mobToSpawn, String mobSoundFx)
|
||||||
{
|
{
|
||||||
super(id, isDominant);
|
super(id, isDominant);
|
||||||
this.aggosOnPlayer = false;
|
this.aggosOnPlayer = false;
|
||||||
@@ -33,6 +39,7 @@ public class AlleleEffectSpawnMob extends AlleleEffect
|
|||||||
this.throttle = 200;
|
this.throttle = 200;
|
||||||
this.chanceToSpawn = 100;
|
this.chanceToSpawn = 100;
|
||||||
this.maxMobsInArea = 6;
|
this.maxMobsInArea = 6;
|
||||||
|
this.mobSound = mobSoundFx;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@@ -109,6 +116,17 @@ public class AlleleEffectSpawnMob extends AlleleEffect
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
if (this.mobSound != null && w.rand.nextInt(100) < 35)
|
||||||
|
{
|
||||||
|
int range = genome.getTerritory()[0];
|
||||||
|
double x = housing.getXCoord() + w.rand.nextDouble() * (range * 2) - range;
|
||||||
|
range = genome.getTerritory()[1];
|
||||||
|
double y = housing.getYCoord() + w.rand.nextDouble() * (range * 2) - range;
|
||||||
|
range = genome.getTerritory()[2];
|
||||||
|
double z = housing.getZCoord() + w.rand.nextDouble() * (range * 2) - range;
|
||||||
|
w.playSoundEffect(x, y, z, this.mobSound, 0.5f,
|
||||||
|
(w.rand.nextFloat() - w.rand.nextFloat()) * 0.2f + 1.0f);
|
||||||
|
}
|
||||||
storedData.setBoolean(0, true);
|
storedData.setBoolean(0, true);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -200,9 +218,9 @@ public class AlleleEffectSpawnMob extends AlleleEffect
|
|||||||
protected double[] randomMobSpawnCoords(World world, IBeeGenome bee, IBeeHousing housing)
|
protected double[] randomMobSpawnCoords(World world, IBeeGenome bee, IBeeHousing housing)
|
||||||
{
|
{
|
||||||
double pos[] = new double[3];
|
double pos[] = new double[3];
|
||||||
pos[0] = housing.getXCoord() + (world.rand.nextDouble() * (bee.getTerritory()[0] * housing.getTerritoryModifier(bee)) - bee.getTerritory()[0] / 2);
|
pos[0] = housing.getXCoord() + (world.rand.nextDouble() * (bee.getTerritory()[0] * housing.getTerritoryModifier(bee, 1f)) - bee.getTerritory()[0] / 2);
|
||||||
pos[1] = housing.getYCoord() + world.rand.nextInt(3) - 1;
|
pos[1] = housing.getYCoord() + world.rand.nextInt(3) - 1;
|
||||||
pos[2] = housing.getZCoord() + (world.rand.nextDouble() * (bee.getTerritory()[2] * housing.getTerritoryModifier(bee)) - bee.getTerritory()[2] / 2);
|
pos[2] = housing.getZCoord() + (world.rand.nextDouble() * (bee.getTerritory()[2] * housing.getTerritoryModifier(bee, 1f)) - bee.getTerritory()[2] / 2);
|
||||||
return pos;
|
return pos;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -18,9 +18,9 @@ public class AlleleEffectSpawnWisp extends AlleleEffectSpawnMob
|
|||||||
|
|
||||||
private byte[] wispTypes = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47 };
|
private byte[] wispTypes = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47 };
|
||||||
|
|
||||||
public AlleleEffectSpawnWisp(String id, boolean isDominant, String mobToSpawn)
|
public AlleleEffectSpawnWisp(String id, boolean isDominant, String mobToSpawn, String soundToPlay)
|
||||||
{
|
{
|
||||||
super(id, isDominant, mobToSpawn);
|
super(id, isDominant, mobToSpawn, soundToPlay);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@@ -57,11 +57,7 @@ public class AlleleEffectSpawnWisp extends AlleleEffectSpawnMob
|
|||||||
Field type = wispEntity.getDeclaredField("type");
|
Field type = wispEntity.getDeclaredField("type");
|
||||||
type.setByte(mob, wispTypes[world.rand.nextInt(wispTypes.length)]);
|
type.setByte(mob, wispTypes[world.rand.nextInt(wispTypes.length)]);
|
||||||
}
|
}
|
||||||
catch (Exception e)
|
catch (Exception e) { /*Last time I had a request to post error messages, I regretted it.*/ }
|
||||||
{
|
|
||||||
FMLLog.info("ThaumicBees is using an invalid classname: " + ThaumcraftHelper.Entity.WISP.getClassName()
|
|
||||||
+ " Please report this error in the thread if you see it.", (Object[])null);
|
|
||||||
}
|
|
||||||
|
|
||||||
spawnedFlag = world.spawnEntityInWorld(mob);
|
spawnedFlag = world.spawnEntityInWorld(mob);
|
||||||
if (this.aggosOnPlayer && player != null)
|
if (this.aggosOnPlayer && player != null)
|
||||||
|
|||||||
@@ -13,12 +13,17 @@ import forestry.api.genetics.IClassification;
|
|||||||
public enum BeeClassification implements IClassification
|
public enum BeeClassification implements IClassification
|
||||||
{
|
{
|
||||||
ARCANE("Arcane", "Arcanus"),
|
ARCANE("Arcane", "Arcanus"),
|
||||||
SUPERNATURAL("Supernatural", ""),
|
SUPERNATURAL("Supernatural", "Occultus"),
|
||||||
SCHOLARLY("Scholarly", ""),
|
SCHOLARLY("Scholarly", "Docto"),
|
||||||
THAUMIC("Thaumic", ""),
|
THAUMIC("Thaumic", "Thaumis"),
|
||||||
SKULKING("Skulking", ""),
|
SKULKING("Skulking", "Malevolens"),
|
||||||
VIS("Vis", ""),
|
VIS("Vis", "Vis"),
|
||||||
TIME("Time", ""),
|
TIME("Time", "Tempestivus"),
|
||||||
|
SOUL("Soul", "Animus"),
|
||||||
|
ALCHEMICAL("Alchemical", "Alchimia"),
|
||||||
|
METALLIC("Metallic", "Metallicis"),
|
||||||
|
GEM("Gem", "Lapidi"),
|
||||||
|
FLESHY("Fleshy", "Carnosa"),
|
||||||
;
|
;
|
||||||
|
|
||||||
private String uID;
|
private String uID;
|
||||||
|
|||||||
@@ -302,7 +302,8 @@ public class BeeGenomeManager
|
|||||||
genome[EnumBeeChromosome.HUMIDITY_TOLERANCE.ordinal()] = Allele.getBaseAllele("toleranceNone");
|
genome[EnumBeeChromosome.HUMIDITY_TOLERANCE.ordinal()] = Allele.getBaseAllele("toleranceNone");
|
||||||
genome[EnumBeeChromosome.TEMPERATURE_TOLERANCE.ordinal()] = Allele.getBaseAllele("toleranceNone");
|
genome[EnumBeeChromosome.TEMPERATURE_TOLERANCE.ordinal()] = Allele.getBaseAllele("toleranceNone");
|
||||||
genome[EnumBeeChromosome.FLOWERING.ordinal()] = Allele.getBaseAllele("floweringAverage");
|
genome[EnumBeeChromosome.FLOWERING.ordinal()] = Allele.getBaseAllele("floweringAverage");
|
||||||
genome[EnumBeeChromosome.FLOWER_PROVIDER.ordinal()] = Allele.flowerNodePurify;
|
genome[EnumBeeChromosome.FLOWER_PROVIDER.ordinal()] = Allele.flowerAuraNode;
|
||||||
|
genome[EnumBeeChromosome.EFFECT.ordinal()] = Allele.effectNodePurify;
|
||||||
|
|
||||||
return genome;
|
return genome;
|
||||||
}
|
}
|
||||||
@@ -314,7 +315,8 @@ public class BeeGenomeManager
|
|||||||
genome[EnumBeeChromosome.SPECIES.ordinal()] = BeeSpecies.FLUX;
|
genome[EnumBeeChromosome.SPECIES.ordinal()] = BeeSpecies.FLUX;
|
||||||
genome[EnumBeeChromosome.HUMIDITY_TOLERANCE.ordinal()] = Allele.getBaseAllele("toleranceNone");
|
genome[EnumBeeChromosome.HUMIDITY_TOLERANCE.ordinal()] = Allele.getBaseAllele("toleranceNone");
|
||||||
genome[EnumBeeChromosome.TEMPERATURE_TOLERANCE.ordinal()] = Allele.getBaseAllele("toleranceNone");
|
genome[EnumBeeChromosome.TEMPERATURE_TOLERANCE.ordinal()] = Allele.getBaseAllele("toleranceNone");
|
||||||
genome[EnumBeeChromosome.FLOWER_PROVIDER.ordinal()] = Allele.flowerNodeFluxify;
|
genome[EnumBeeChromosome.FLOWER_PROVIDER.ordinal()] = Allele.flowerAuraNode;
|
||||||
|
genome[EnumBeeChromosome.EFFECT.ordinal()] = Allele.effectNodeFlux;
|
||||||
|
|
||||||
return genome;
|
return genome;
|
||||||
}
|
}
|
||||||
@@ -326,7 +328,19 @@ public class BeeGenomeManager
|
|||||||
genome[EnumBeeChromosome.SPECIES.ordinal()] = BeeSpecies.NODE;
|
genome[EnumBeeChromosome.SPECIES.ordinal()] = BeeSpecies.NODE;
|
||||||
genome[EnumBeeChromosome.FLOWERING.ordinal()] = Allele.getBaseAllele("floweringSlowest");
|
genome[EnumBeeChromosome.FLOWERING.ordinal()] = Allele.getBaseAllele("floweringSlowest");
|
||||||
genome[EnumBeeChromosome.FLOWER_PROVIDER.ordinal()] = Allele.flowerAuraNode;
|
genome[EnumBeeChromosome.FLOWER_PROVIDER.ordinal()] = Allele.flowerAuraNode;
|
||||||
genome[EnumBeeChromosome.EFFECT.ordinal()] = Allele.nodeGen;
|
genome[EnumBeeChromosome.EFFECT.ordinal()] = Allele.effectNodeAttract;
|
||||||
|
|
||||||
|
return genome;
|
||||||
|
}
|
||||||
|
|
||||||
|
public static IAllele[] getTemplateRejuvinating()
|
||||||
|
{
|
||||||
|
IAllele[] genome = getTemplateBaseVis();
|
||||||
|
|
||||||
|
genome[EnumBeeChromosome.SPECIES.ordinal()] = BeeSpecies.REJUVENATING;
|
||||||
|
genome[EnumBeeChromosome.EFFECT.ordinal()] = Allele.effectNodeCharge;
|
||||||
|
genome[EnumBeeChromosome.FLOWER_PROVIDER.ordinal()] = Allele.flowerAuraNode;
|
||||||
|
genome[EnumBeeChromosome.HUMIDITY_TOLERANCE.ordinal()] = Allele.getBaseAllele("toleranceNone");
|
||||||
|
|
||||||
return genome;
|
return genome;
|
||||||
}
|
}
|
||||||
@@ -466,6 +480,166 @@ public class BeeGenomeManager
|
|||||||
return genome;
|
return genome;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private static IAllele[] getTemplateBaseAlchemical()
|
||||||
|
{
|
||||||
|
IAllele[] genome = getTemplateBaseThaumic();
|
||||||
|
|
||||||
|
genome[EnumBeeChromosome.TERRITORY.ordinal()] = Allele.getBaseAllele("territoryLarge");
|
||||||
|
genome[EnumBeeChromosome.SPEED.ordinal()] = Allele.getBaseAllele("speedSlow");
|
||||||
|
|
||||||
|
return genome;
|
||||||
|
}
|
||||||
|
|
||||||
|
public static IAllele[] getTemplateMinium()
|
||||||
|
{
|
||||||
|
IAllele[] genome = getTemplateBaseAlchemical();
|
||||||
|
|
||||||
|
genome[EnumBeeChromosome.SPECIES.ordinal()] = BeeSpecies.MINIUM;
|
||||||
|
|
||||||
|
return genome;
|
||||||
|
}
|
||||||
|
|
||||||
|
private static IAllele[] getTemplateBaseSoul()
|
||||||
|
{
|
||||||
|
IAllele[] genome = getTemplateBaseThaumic();
|
||||||
|
|
||||||
|
genome[EnumBeeChromosome.HUMIDITY_TOLERANCE.ordinal()] = Allele.getBaseAllele("toleranceBoth1");
|
||||||
|
genome[EnumBeeChromosome.TOLERANT_FLYER.ordinal()] = Allele.getBaseAllele("boolTrue");
|
||||||
|
|
||||||
|
return genome;
|
||||||
|
}
|
||||||
|
|
||||||
|
public static IAllele[] getTemplateSpirit()
|
||||||
|
{
|
||||||
|
IAllele[] genome = getTemplateBaseSoul();
|
||||||
|
|
||||||
|
genome[EnumBeeChromosome.SPECIES.ordinal()] = BeeSpecies.SPIRIT;
|
||||||
|
genome[EnumBeeChromosome.LIFESPAN.ordinal()] = Allele.getBaseAllele("lifespanShortened");
|
||||||
|
|
||||||
|
return genome;
|
||||||
|
}
|
||||||
|
|
||||||
|
public static IAllele[] getTemplateSoul()
|
||||||
|
{
|
||||||
|
IAllele[] genome = getTemplateBaseSoul();
|
||||||
|
|
||||||
|
genome[EnumBeeChromosome.SPECIES.ordinal()] = BeeSpecies.SOUL;
|
||||||
|
genome[EnumBeeChromosome.LIFESPAN.ordinal()] = Allele.getBaseAllele("lifespanNormal");
|
||||||
|
|
||||||
|
return genome;
|
||||||
|
}
|
||||||
|
|
||||||
|
private static IAllele[] getTemplateBaseMetallic()
|
||||||
|
{
|
||||||
|
IAllele[] genome = getTemplateBaseThaumic();
|
||||||
|
|
||||||
|
genome[EnumBeeChromosome.SPEED.ordinal()] = Allele.getBaseAllele("speedSlowest");
|
||||||
|
genome[EnumBeeChromosome.FERTILITY.ordinal()] = Allele.getBaseAllele("fertilityLow");
|
||||||
|
genome[EnumBeeChromosome.NOCTURNAL.ordinal()] = Allele.getBaseAllele("boolTrue");
|
||||||
|
genome[EnumBeeChromosome.CAVE_DWELLING.ordinal()] = Allele.getBaseAllele("boolTrue");
|
||||||
|
|
||||||
|
return genome;
|
||||||
|
}
|
||||||
|
|
||||||
|
public static IAllele[] getTemplateIron()
|
||||||
|
{
|
||||||
|
IAllele[] genome = getTemplateBaseMetallic();
|
||||||
|
|
||||||
|
genome[EnumBeeChromosome.SPECIES.ordinal()] = BeeSpecies.IRON;
|
||||||
|
|
||||||
|
return genome;
|
||||||
|
}
|
||||||
|
|
||||||
|
public static IAllele[] getTemplateGold()
|
||||||
|
{
|
||||||
|
IAllele[] genome = getTemplateBaseMetallic();
|
||||||
|
|
||||||
|
genome[EnumBeeChromosome.SPECIES.ordinal()] = BeeSpecies.GOLD;
|
||||||
|
|
||||||
|
return genome;
|
||||||
|
}
|
||||||
|
|
||||||
|
public static IAllele[] getTemplateCopper()
|
||||||
|
{
|
||||||
|
IAllele[] genome = getTemplateBaseMetallic();
|
||||||
|
|
||||||
|
genome[EnumBeeChromosome.SPECIES.ordinal()] = BeeSpecies.COPPER;
|
||||||
|
|
||||||
|
return genome;
|
||||||
|
}
|
||||||
|
|
||||||
|
public static IAllele[] getTemplateTin()
|
||||||
|
{
|
||||||
|
IAllele[] genome = getTemplateBaseMetallic();
|
||||||
|
|
||||||
|
genome[EnumBeeChromosome.SPECIES.ordinal()] = BeeSpecies.TIN;
|
||||||
|
|
||||||
|
return genome;
|
||||||
|
}
|
||||||
|
|
||||||
|
public static IAllele[] getTemplateSilver()
|
||||||
|
{
|
||||||
|
IAllele[] genome = getTemplateBaseMetallic();
|
||||||
|
|
||||||
|
genome[EnumBeeChromosome.SPECIES.ordinal()] = BeeSpecies.SILVER;
|
||||||
|
|
||||||
|
return genome;
|
||||||
|
}
|
||||||
|
|
||||||
|
public static IAllele[] getTemplateLead()
|
||||||
|
{
|
||||||
|
IAllele[] genome = getTemplateBaseMetallic();
|
||||||
|
|
||||||
|
genome[EnumBeeChromosome.SPECIES.ordinal()] = BeeSpecies.LEAD;
|
||||||
|
|
||||||
|
return genome;
|
||||||
|
}
|
||||||
|
|
||||||
|
public static IAllele[] getTemplateDiamond()
|
||||||
|
{
|
||||||
|
IAllele[] genome = getTemplateBaseMetallic();
|
||||||
|
|
||||||
|
genome[EnumBeeChromosome.SPECIES.ordinal()] = BeeSpecies.DIAMOND;
|
||||||
|
|
||||||
|
return genome;
|
||||||
|
}
|
||||||
|
|
||||||
|
public static IAllele[] getTemplateEmerald()
|
||||||
|
{
|
||||||
|
IAllele[] genome = getTemplateBaseMetallic();
|
||||||
|
|
||||||
|
genome[EnumBeeChromosome.SPECIES.ordinal()] = BeeSpecies.EMERALD;
|
||||||
|
|
||||||
|
return genome;
|
||||||
|
}
|
||||||
|
|
||||||
|
public static IAllele[] getTemplateChicken()
|
||||||
|
{
|
||||||
|
IAllele[] genome = getTemplateBaseMetallic();
|
||||||
|
|
||||||
|
genome[EnumBeeChromosome.SPECIES.ordinal()] = BeeSpecies.CHICKEN;
|
||||||
|
|
||||||
|
return genome;
|
||||||
|
}
|
||||||
|
|
||||||
|
public static IAllele[] getTemplateBeef()
|
||||||
|
{
|
||||||
|
IAllele[] genome = getTemplateBaseMetallic();
|
||||||
|
|
||||||
|
genome[EnumBeeChromosome.SPECIES.ordinal()] = BeeSpecies.BEEF;
|
||||||
|
|
||||||
|
return genome;
|
||||||
|
}
|
||||||
|
|
||||||
|
public static IAllele[] getTemplatePork()
|
||||||
|
{
|
||||||
|
IAllele[] genome = getTemplateBaseMetallic();
|
||||||
|
|
||||||
|
genome[EnumBeeChromosome.SPECIES.ordinal()] = BeeSpecies.PORK;
|
||||||
|
|
||||||
|
return genome;
|
||||||
|
}
|
||||||
|
|
||||||
public static ItemStack getBeeNBTForSpecies(BeeSpecies species, EnumBeeType beeType)
|
public static ItemStack getBeeNBTForSpecies(BeeSpecies species, EnumBeeType beeType)
|
||||||
{
|
{
|
||||||
ItemStack taggedBee;
|
ItemStack taggedBee;
|
||||||
|
|||||||
@@ -12,43 +12,70 @@ import thaumcraft.api.EnumNodeType;
|
|||||||
import thaumcraft.api.ThaumcraftApi;
|
import thaumcraft.api.ThaumcraftApi;
|
||||||
import thaumicbees.main.ThaumicBees;
|
import thaumicbees.main.ThaumicBees;
|
||||||
import thaumicbees.main.utils.MoonPhase;
|
import thaumicbees.main.utils.MoonPhase;
|
||||||
|
import thaumicbees.main.utils.compat.EquivalentExchangeHelper;
|
||||||
|
import thaumicbees.main.utils.compat.ExtraBeesHelper;
|
||||||
|
import thaumicbees.main.utils.compat.ThaumcraftHelper;
|
||||||
|
|
||||||
public class BeeMutation implements IBeeMutation
|
public class BeeMutation implements IBeeMutation
|
||||||
{
|
{
|
||||||
public static BeeMutation Esoteric;
|
private static BeeMutation Esoteric;
|
||||||
public static BeeMutation Esoteric1;
|
private static BeeMutation Esoteric1;
|
||||||
public static BeeMutation Mysterious;
|
private static BeeMutation Mysterious;
|
||||||
public static BeeMutation Mysterious1;
|
private static BeeMutation Mysterious1;
|
||||||
public static BeeMutation Arcane;
|
private static BeeMutation Arcane;
|
||||||
public static BeeMutation Charmed;
|
private static BeeMutation Charmed;
|
||||||
public static BeeMutation Enchanted;
|
private static BeeMutation Enchanted;
|
||||||
public static BeeMutation Supernatural;
|
private static BeeMutation Supernatural;
|
||||||
public static BeeMutation Stark;
|
private static BeeMutation Stark;
|
||||||
public static BeeMutation Pupil;
|
private static BeeMutation Fire;
|
||||||
public static BeeMutation Scholarly;
|
private static BeeMutation Water;
|
||||||
public static BeeMutation Savant;
|
private static BeeMutation Pupil;
|
||||||
public static BeeMutation Aware;
|
private static BeeMutation Scholarly;
|
||||||
public static BeeMutation Vis;
|
private static BeeMutation Savant;
|
||||||
public static BeeMutation Vis1;
|
private static BeeMutation Aware;
|
||||||
public static BeeMutation Pure;
|
private static BeeMutation Vis;
|
||||||
public static BeeMutation Flux;
|
private static BeeMutation Vis1;
|
||||||
public static BeeMutation Node;
|
private static BeeMutation Pure;
|
||||||
public static BeeMutation Node1;
|
private static BeeMutation Flux;
|
||||||
public static BeeMutation Skulking;
|
private static BeeMutation Node;
|
||||||
public static BeeMutation Brainy;
|
private static BeeMutation Node1;
|
||||||
public static BeeMutation Gossamer;
|
private static BeeMutation Skulking;
|
||||||
public static BeeMutation Wispy;
|
private static BeeMutation Brainy;
|
||||||
public static BeeMutation Batty;
|
private static BeeMutation Gossamer;
|
||||||
public static BeeMutation Ghastly;
|
private static BeeMutation Wispy;
|
||||||
public static BeeMutation Timely;
|
private static BeeMutation Batty;
|
||||||
public static BeeMutation Lordly;
|
private static BeeMutation Ghastly;
|
||||||
public static BeeMutation Doctoral;
|
private static BeeMutation Timely;
|
||||||
|
private static BeeMutation Lordly;
|
||||||
|
private static BeeMutation Doctoral;
|
||||||
|
private static BeeMutation Spirit;
|
||||||
|
private static BeeMutation Spirit1;
|
||||||
|
private static BeeMutation Soul;
|
||||||
|
private static BeeMutation Minium;
|
||||||
|
private static BeeMutation Iron;
|
||||||
|
private static BeeMutation Gold;
|
||||||
|
private static BeeMutation Copper;
|
||||||
|
private static BeeMutation Tin;
|
||||||
|
private static BeeMutation Silver;
|
||||||
|
private static BeeMutation Lead;
|
||||||
|
private static BeeMutation Diamond;
|
||||||
|
private static BeeMutation Emerald;
|
||||||
|
private static BeeMutation Lead1;
|
||||||
|
private static BeeMutation Lead2;
|
||||||
|
private static BeeMutation Beef;
|
||||||
|
private static BeeMutation Chicken;
|
||||||
|
private static BeeMutation Pork;
|
||||||
|
private static BeeMutation Aura;
|
||||||
|
private static BeeMutation Aura1;
|
||||||
|
|
||||||
public static void setupMutations()
|
public static void setupMutations()
|
||||||
{
|
{
|
||||||
|
IAlleleBeeSpecies baseA, baseB;
|
||||||
|
|
||||||
BeeMutation.Esoteric = new BeeMutation(Allele.getBaseSpecies("Imperial"), Allele.getBaseSpecies("Demonic"), BeeSpecies.ESOTERIC, 10);
|
BeeMutation.Esoteric = new BeeMutation(Allele.getBaseSpecies("Imperial"), Allele.getBaseSpecies("Demonic"), BeeSpecies.ESOTERIC, 10);
|
||||||
BeeMutation.Esoteric1 = new BeeMutation(Allele.getBaseSpecies("Heroic"), Allele.getBaseSpecies("Demonic"), BeeSpecies.ESOTERIC, 25);
|
BeeMutation.Esoteric1 = new BeeMutation(Allele.getBaseSpecies("Heroic"), Allele.getBaseSpecies("Demonic"), BeeSpecies.ESOTERIC, 25);
|
||||||
BeeMutation.Mysterious = new BeeMutation(BeeSpecies.ESOTERIC, Allele.getBaseSpecies("Ended"), BeeSpecies.MYSTERIOUS, 10);
|
BeeMutation.Mysterious = new BeeMutation(Allele.getBaseSpecies("Ended"), BeeSpecies.ESOTERIC, BeeSpecies.MYSTERIOUS, 15);
|
||||||
|
BeeMutation.Mysterious1 = new BeeMutation(Allele.getBaseSpecies("Demonic"), BeeSpecies.ESOTERIC, BeeSpecies.MYSTERIOUS, 4);
|
||||||
BeeMutation.Arcane = new BeeMutation(BeeSpecies.ESOTERIC, BeeSpecies.MYSTERIOUS, BeeSpecies.ARCANE, 8)
|
BeeMutation.Arcane = new BeeMutation(BeeSpecies.ESOTERIC, BeeSpecies.MYSTERIOUS, BeeSpecies.ARCANE, 8)
|
||||||
.setMoonPhaseBonus(MoonPhase.WANING_CRESCENT, MoonPhase.WAXING_CRESCENT, 1.5f);
|
.setMoonPhaseBonus(MoonPhase.WANING_CRESCENT, MoonPhase.WAXING_CRESCENT, 1.5f);
|
||||||
BeeMutation.Charmed = new BeeMutation(Allele.getBaseSpecies("Diligent"), Allele.getBaseSpecies("Valiant"), BeeSpecies.CHARMED, 20);
|
BeeMutation.Charmed = new BeeMutation(Allele.getBaseSpecies("Diligent"), Allele.getBaseSpecies("Valiant"), BeeSpecies.CHARMED, 20);
|
||||||
@@ -56,68 +83,138 @@ public class BeeMutation implements IBeeMutation
|
|||||||
BeeMutation.Supernatural = new BeeMutation(BeeSpecies.CHARMED, BeeSpecies.ENCHANTED, BeeSpecies.SUPERNATURAL, 10)
|
BeeMutation.Supernatural = new BeeMutation(BeeSpecies.CHARMED, BeeSpecies.ENCHANTED, BeeSpecies.SUPERNATURAL, 10)
|
||||||
.setMoonPhaseBonus(MoonPhase.WAXING_GIBBOUS, MoonPhase.WANING_GIBBOUS, 1.5f);
|
.setMoonPhaseBonus(MoonPhase.WAXING_GIBBOUS, MoonPhase.WANING_GIBBOUS, 1.5f);
|
||||||
BeeMutation.Pupil = new BeeMutation(BeeSpecies.ARCANE, BeeSpecies.ENCHANTED, BeeSpecies.PUPIL, 10);
|
BeeMutation.Pupil = new BeeMutation(BeeSpecies.ARCANE, BeeSpecies.ENCHANTED, BeeSpecies.PUPIL, 10);
|
||||||
BeeMutation.Scholarly = new BeeMutation(BeeSpecies.PUPIL, BeeSpecies.ARCANE, BeeSpecies.SCHOLARLY, 8);
|
|
||||||
BeeMutation.Savant = new BeeMutation(BeeSpecies.PUPIL, BeeSpecies.SCHOLARLY, BeeSpecies.SAVANT, 6);
|
|
||||||
BeeMutation.Stark = new BeeMutation(BeeSpecies.ARCANE, BeeSpecies.SUPERNATURAL, BeeSpecies.STARK, 8);
|
BeeMutation.Stark = new BeeMutation(BeeSpecies.ARCANE, BeeSpecies.SUPERNATURAL, BeeSpecies.STARK, 8);
|
||||||
|
|
||||||
BeeMutation.Aware = new BeeMutation(Allele.getBaseSpecies("Demonic"), Allele.getBaseSpecies("Edenic"), BeeSpecies.AWARE, 12);
|
|
||||||
BeeMutation.Vis = new BeeMutation(BeeSpecies.AWARE, BeeSpecies.ARCANE, BeeSpecies.VIS, 9)
|
|
||||||
.setAuraNodeRequired(40);
|
|
||||||
BeeMutation.Vis1 = new BeeMutation(BeeSpecies.AWARE, BeeSpecies.STARK, BeeSpecies.VIS, 12)
|
|
||||||
.setAuraNodeRequired(80);
|
|
||||||
|
|
||||||
BeeMutation.Pure = new BeeMutation(BeeSpecies.VIS, Allele.getBaseSpecies("Edenic"), BeeSpecies.PURE, 7)
|
|
||||||
.setAuraNodeTypeRequired(5, EnumNodeType.PURE).setMoonPhaseBonus(MoonPhase.NEW, MoonPhase.NEW, 1.6f);
|
|
||||||
BeeMutation.Flux = new BeeMutation(BeeSpecies.VIS, Allele.getBaseSpecies("Edenic"), BeeSpecies.FLUX, 7)
|
|
||||||
.setAuraNodeTypeRequired(30, EnumNodeType.UNSTABLE).setMoonPhaseBonus(MoonPhase.FULL, MoonPhase.FULL, 1.6f);
|
|
||||||
|
|
||||||
BeeMutation.Node = new BeeMutation(BeeSpecies.VIS, BeeSpecies.VIS, BeeSpecies.NODE, 2)
|
|
||||||
.setAuraNodeRequired(4).setMoonPhaseRestricted(MoonPhase.WANING_HALF, MoonPhase.WANING_HALF);
|
|
||||||
BeeMutation.Node1 = new BeeMutation(BeeSpecies.VIS, BeeSpecies.VIS, BeeSpecies.NODE, 2)
|
|
||||||
.setAuraNodeRequired(4).setMoonPhaseRestricted(MoonPhase.WAXING_HALF, MoonPhase.WAXING_HALF);
|
|
||||||
|
|
||||||
// Now we get into a little bit of branching...
|
|
||||||
if (ThaumicBees.getConfig().ExtraBeesInstalled)
|
|
||||||
{
|
|
||||||
setupMutationsExtraBeesBase();
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
setupMutationsForestryBase();
|
|
||||||
}
|
|
||||||
BeeMutation.Gossamer.setMoonPhaseRestricted(MoonPhase.FULL, MoonPhase.WANING_CRESCENT);
|
|
||||||
BeeMutation.Wispy = new BeeMutation(BeeSpecies.GOSSAMER, Allele.getBaseSpecies("Cultivated"), BeeSpecies.WISPY, 8);
|
|
||||||
|
|
||||||
BeeMutation.Timely = new BeeMutation(Allele.getBaseSpecies("Industrious"), BeeSpecies.ENCHANTED, BeeSpecies.TIMELY, 10);
|
BeeMutation.Timely = new BeeMutation(Allele.getBaseSpecies("Industrious"), BeeSpecies.ENCHANTED, BeeSpecies.TIMELY, 10);
|
||||||
BeeMutation.Lordly = new BeeMutation(BeeSpecies.TIMELY, Allele.getBaseSpecies("Imperial"), BeeSpecies.LORDLY, 9);
|
BeeMutation.Lordly = new BeeMutation(BeeSpecies.TIMELY, Allele.getBaseSpecies("Imperial"), BeeSpecies.LORDLY, 9);
|
||||||
BeeMutation.Doctoral = new BeeMutation(BeeSpecies.TIMELY, BeeSpecies.LORDLY, BeeSpecies.DOCTORAL, 7);
|
BeeMutation.Doctoral = new BeeMutation(BeeSpecies.TIMELY, BeeSpecies.LORDLY, BeeSpecies.DOCTORAL, 7);
|
||||||
}
|
|
||||||
|
|
||||||
private static void setupMutationsExtraBeesBase()
|
BeeMutation.Minium = new BeeMutation(Allele.getBaseSpecies("Sinister"), BeeSpecies.MYSTERIOUS, BeeSpecies.MINIUM, 11);
|
||||||
{
|
|
||||||
try
|
BeeMutation.Spirit = new BeeMutation(Allele.getBaseSpecies("Fiendish"), BeeSpecies.ENCHANTED, BeeSpecies.SPIRIT, 12);
|
||||||
|
BeeMutation.Spirit1 = new BeeMutation(Allele.getBaseSpecies("Fiendish"), Allele.getBaseSpecies("Ended"), BeeSpecies.SPIRIT, 20);
|
||||||
|
BeeMutation.Soul = new BeeMutation(Allele.getBaseSpecies("Fiendish"), BeeSpecies.SPIRIT, BeeSpecies.SOUL, 11);
|
||||||
|
|
||||||
|
BeeMutation.Iron = new BeeMutation(Allele.getBaseSpecies("Industrious"), Allele.getBaseSpecies("Diligent"), BeeSpecies.IRON, 10);
|
||||||
|
|
||||||
|
baseA = (BeeSpecies.MINIUM.isActive()) ? BeeSpecies.MINIUM : Allele.getBaseSpecies("Imperial");
|
||||||
|
baseB = (BeeSpecies.LEAD.isActive()) ? BeeSpecies.LEAD : BeeSpecies.IRON;
|
||||||
|
BeeMutation.Gold = new BeeMutation(baseA, baseB, BeeSpecies.GOLD, 8);
|
||||||
|
|
||||||
|
if (BeeSpecies.COPPER.isActive())
|
||||||
|
{
|
||||||
|
BeeMutation.Copper = new BeeMutation(Allele.getBaseSpecies("Industrious"), Allele.getBaseSpecies("Meadows"), BeeSpecies.COPPER, 12);
|
||||||
|
}
|
||||||
|
if (BeeSpecies.TIN.isActive())
|
||||||
|
{
|
||||||
|
BeeMutation.Tin = new BeeMutation(Allele.getBaseSpecies("Industrious"), Allele.getBaseSpecies("Forest"), BeeSpecies.TIN, 12);
|
||||||
|
}
|
||||||
|
if (BeeSpecies.SILVER.isActive())
|
||||||
|
{
|
||||||
|
BeeMutation.Silver = new BeeMutation(Allele.getBaseSpecies("Imperial"), Allele.getBaseSpecies("Modest"), BeeSpecies.SILVER, 10);
|
||||||
|
}
|
||||||
|
if (BeeSpecies.LEAD.isActive())
|
||||||
|
{
|
||||||
|
if (BeeSpecies.COPPER.isActive())
|
||||||
|
{
|
||||||
|
BeeMutation.Lead = new BeeMutation(Allele.getBaseSpecies("Industrious"), BeeSpecies.COPPER, BeeSpecies.LEAD, 13);
|
||||||
|
}
|
||||||
|
if (BeeSpecies.TIN.isActive())
|
||||||
|
{
|
||||||
|
BeeMutation.Lead1 = new BeeMutation(Allele.getBaseSpecies("Industrious"), BeeSpecies.TIN, BeeSpecies.LEAD, 13);
|
||||||
|
}
|
||||||
|
BeeMutation.Lead2 = new BeeMutation(Allele.getBaseSpecies("Industrious"), Allele.getBaseSpecies("Common"), BeeSpecies.LEAD, 9);
|
||||||
|
}
|
||||||
|
|
||||||
|
BeeMutation.Diamond = new BeeMutation(Allele.getBaseSpecies("Austere"), BeeSpecies.GOLD, BeeSpecies.DIAMOND, 6);
|
||||||
|
baseA = (BeeSpecies.SILVER.isActive()) ? BeeSpecies.SILVER : Allele.getBaseSpecies("Imperial");
|
||||||
|
BeeMutation.Emerald = new BeeMutation(Allele.getBaseSpecies("Austere"), baseA, BeeSpecies.EMERALD, 6);
|
||||||
|
|
||||||
|
if (BeeSpecies.BEEF.isActive())
|
||||||
|
{
|
||||||
|
BeeMutation.Beef = new BeeMutation(Allele.getBaseSpecies("Common"), BeeSpecies.SKULKING, BeeSpecies.BEEF, 10);
|
||||||
|
}
|
||||||
|
if (BeeSpecies.CHICKEN.isActive())
|
||||||
|
{
|
||||||
|
BeeMutation.Chicken = new BeeMutation(Allele.getBaseSpecies("Common"), BeeSpecies.SKULKING, BeeSpecies.CHICKEN, 10);
|
||||||
|
}
|
||||||
|
if (BeeSpecies.PORK.isActive())
|
||||||
|
{
|
||||||
|
BeeMutation.Pork = new BeeMutation(Allele.getBaseSpecies("Common"), BeeSpecies.SKULKING, BeeSpecies.PORK, 10);
|
||||||
|
}
|
||||||
|
|
||||||
|
// Now we get into a little bit of branching...
|
||||||
|
if (ExtraBeesHelper.isActive())
|
||||||
{
|
{
|
||||||
BeeMutation.Skulking = new BeeMutation(BeeSpecies.MYSTERIOUS, Allele.getExtraSpecies("desolate"), BeeSpecies.SKULKING, 10);
|
BeeMutation.Skulking = new BeeMutation(BeeSpecies.MYSTERIOUS, Allele.getExtraSpecies("desolate"), BeeSpecies.SKULKING, 10);
|
||||||
BeeMutation.Brainy = new BeeMutation(BeeSpecies.SKULKING, Allele.getExtraSpecies("rotten"), BeeSpecies.BRAINY, 12);
|
|
||||||
BeeMutation.Gossamer = new BeeMutation(BeeSpecies.SKULKING, Allele.getExtraSpecies("ancient"), BeeSpecies.GOSSAMER, 10);
|
|
||||||
BeeMutation.Batty = new BeeMutation(BeeSpecies.SKULKING, Allele.getExtraSpecies("rock"), BeeSpecies.BATTY, 14);
|
|
||||||
BeeMutation.Ghastly = new BeeMutation(BeeSpecies.SKULKING, Allele.getExtraSpecies("creeper"), BeeSpecies.GHASTLY, 13);
|
BeeMutation.Ghastly = new BeeMutation(BeeSpecies.SKULKING, Allele.getExtraSpecies("creeper"), BeeSpecies.GHASTLY, 13);
|
||||||
}
|
}
|
||||||
catch (Exception e)
|
else
|
||||||
{
|
{
|
||||||
FMLLog.warning("ThaumicBees encountered an error attempting to register mutations using Extra Bees species! Ensure Extra Bees was able to initialize correctly!");
|
BeeMutation.Skulking = new BeeMutation(BeeSpecies.MYSTERIOUS, Allele.getBaseSpecies("Modest"), BeeSpecies.SKULKING, 10);
|
||||||
FMLLog.info("Could not use Extra Bees species for mutations. Falling back to Forestry defaults.");
|
BeeMutation.Ghastly = new BeeMutation(BeeSpecies.SKULKING, Allele.getBaseSpecies("Austere"), BeeSpecies.GHASTLY, 13);
|
||||||
setupMutationsForestryBase();
|
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
private static void setupMutationsForestryBase()
|
if (ThaumcraftHelper.isActive())
|
||||||
{
|
{
|
||||||
BeeMutation.Skulking = new BeeMutation(BeeSpecies.MYSTERIOUS, Allele.getBaseSpecies("Modest"), BeeSpecies.SKULKING, 10);
|
BeeMutation.Scholarly = new BeeMutation(BeeSpecies.PUPIL, BeeSpecies.ARCANE, BeeSpecies.SCHOLARLY, 8);
|
||||||
BeeMutation.Brainy = new BeeMutation(BeeSpecies.SKULKING, Allele.getBaseSpecies("Sinister"), BeeSpecies.BRAINY, 10);
|
BeeMutation.Savant = new BeeMutation(BeeSpecies.PUPIL, BeeSpecies.SCHOLARLY, BeeSpecies.SAVANT, 6);
|
||||||
BeeMutation.Gossamer = new BeeMutation(BeeSpecies.SKULKING, BeeSpecies.SUPERNATURAL, BeeSpecies.GOSSAMER, 10);
|
|
||||||
BeeMutation.Batty = new BeeMutation(BeeSpecies.SKULKING, Allele.getBaseSpecies("Frugal"), BeeSpecies.BATTY, 11);
|
BeeMutation.Aware = new BeeMutation(Allele.getBaseSpecies("Demonic"), Allele.getBaseSpecies("Edenic"), BeeSpecies.AWARE, 12);
|
||||||
BeeMutation.Ghastly = new BeeMutation(BeeSpecies.SKULKING, Allele.getBaseSpecies("Austere"), BeeSpecies.GHASTLY, 13);
|
BeeMutation.Vis = new BeeMutation(BeeSpecies.AWARE, BeeSpecies.ARCANE, BeeSpecies.VIS, 9)
|
||||||
|
.setAuraNodeRequired(40);
|
||||||
|
BeeMutation.Vis1 = new BeeMutation(BeeSpecies.AWARE, BeeSpecies.STARK, BeeSpecies.VIS, 12)
|
||||||
|
.setAuraNodeRequired(80);
|
||||||
|
BeeMutation.Pure = new BeeMutation(BeeSpecies.VIS, Allele.getBaseSpecies("Edenic"), BeeSpecies.PURE, 7)
|
||||||
|
.setAuraNodeTypeRequired(5, EnumNodeType.PURE).setMoonPhaseBonus(MoonPhase.NEW, MoonPhase.NEW, 1.6f);
|
||||||
|
BeeMutation.Flux = new BeeMutation(BeeSpecies.VIS, Allele.getBaseSpecies("Edenic"), BeeSpecies.FLUX, 7)
|
||||||
|
.setAuraNodeTypeRequired(30, EnumNodeType.UNSTABLE).setMoonPhaseBonus(MoonPhase.FULL, MoonPhase.FULL, 1.6f);
|
||||||
|
|
||||||
|
BeeMutation.Node = new BeeMutation(BeeSpecies.PURE, BeeSpecies.FLUX, BeeSpecies.NODE, 2)
|
||||||
|
.setAuraNodeRequired(4).setMoonPhaseRestricted(MoonPhase.WANING_HALF, MoonPhase.WANING_HALF);
|
||||||
|
BeeMutation.Node1 = new BeeMutation(BeeSpecies.PURE, BeeSpecies.FLUX, BeeSpecies.NODE, 2)
|
||||||
|
.setAuraNodeRequired(4).setMoonPhaseRestricted(MoonPhase.WAXING_HALF, MoonPhase.WAXING_HALF);
|
||||||
|
|
||||||
|
if (ExtraBeesHelper.isActive())
|
||||||
|
{
|
||||||
|
BeeMutation.Brainy = new BeeMutation(BeeSpecies.SKULKING, Allele.getExtraSpecies("rotten"), BeeSpecies.BRAINY, 12);
|
||||||
|
BeeMutation.Gossamer = new BeeMutation(BeeSpecies.SKULKING, Allele.getExtraSpecies("ancient"), BeeSpecies.GOSSAMER, 10);
|
||||||
|
BeeMutation.Batty = new BeeMutation(BeeSpecies.SKULKING, Allele.getExtraSpecies("rock"), BeeSpecies.BATTY, 14);
|
||||||
|
BeeMutation.Aura = new BeeMutation(BeeSpecies.VIS, Allele.getExtraSpecies("energetic"), BeeSpecies.REJUVENATING, 3);
|
||||||
|
BeeMutation.Aura1 = new BeeMutation(BeeSpecies.VIS, Allele.getExtraSpecies("energetic"), BeeSpecies.REJUVENATING, 3);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
BeeMutation.Brainy = new BeeMutation(BeeSpecies.SKULKING, Allele.getBaseSpecies("Sinister"), BeeSpecies.BRAINY, 10);
|
||||||
|
BeeMutation.Gossamer = new BeeMutation(BeeSpecies.SKULKING, BeeSpecies.SUPERNATURAL, BeeSpecies.GOSSAMER, 10);
|
||||||
|
BeeMutation.Batty = new BeeMutation(BeeSpecies.SKULKING, Allele.getBaseSpecies("Frugal"), BeeSpecies.BATTY, 11);
|
||||||
|
BeeMutation.Aura = new BeeMutation(BeeSpecies.VIS, Allele.getBaseSpecies("Industrious"), BeeSpecies.REJUVENATING, 3);
|
||||||
|
BeeMutation.Aura1 = new BeeMutation(BeeSpecies.VIS, Allele.getBaseSpecies("Industrious"), BeeSpecies.REJUVENATING, 3);
|
||||||
|
}
|
||||||
|
|
||||||
|
BeeMutation.Gossamer.setMoonPhaseRestricted(MoonPhase.FULL, MoonPhase.WANING_CRESCENT);
|
||||||
|
BeeMutation.Wispy = new BeeMutation(BeeSpecies.GOSSAMER, Allele.getBaseSpecies("Cultivated"), BeeSpecies.WISPY, 8);
|
||||||
|
BeeMutation.Aura.setMoonPhaseRestricted(MoonPhase.WANING_CRESCENT, MoonPhase.WANING_CRESCENT);
|
||||||
|
BeeMutation.Aura1.setMoonPhaseRestricted(MoonPhase.WAXING_CRESCENT, MoonPhase.WAXING_CRESCENT);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
BeeMutation.Fire = new BeeMutation(BeeSpecies.STARK, Allele.getBaseSpecies("Fiendish"), BeeSpecies.FIRE, 10);
|
||||||
|
if (ExtraBeesHelper.isActive())
|
||||||
|
{
|
||||||
|
BeeMutation.Water = new BeeMutation(BeeSpecies.STARK, Allele.getExtraSpecies("ocean"), BeeSpecies.WATER, 12);
|
||||||
|
BeeMutation.Water = new BeeMutation(BeeSpecies.STARK, Allele.getExtraSpecies("river"), BeeSpecies.WATER, 8);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
BeeMutation.Water = new BeeMutation(BeeSpecies.STARK, Allele.getBaseSpecies("Marshy"), BeeSpecies.WATER, 10);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if (EquivalentExchangeHelper.isActive())
|
||||||
|
{
|
||||||
|
BeeMutation.Minium = new BeeMutation(Allele.getBaseSpecies("Frugal"), BeeSpecies.PUPIL, BeeSpecies.MINIUM, 10);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private IAllele parent1;
|
private IAllele parent1;
|
||||||
@@ -147,9 +244,9 @@ public class BeeMutation implements IBeeMutation
|
|||||||
BeeManager.breedingManager.registerBeeMutation(this);
|
BeeManager.breedingManager.registerBeeMutation(this);
|
||||||
}
|
}
|
||||||
|
|
||||||
public int getChance(IBeeHousing housing, IAllele allele0, IAllele allele1, IGenome genome0, IGenome genome1)
|
public float getChance(IBeeHousing housing, IAllele allele0, IAllele allele1, IGenome genome0, IGenome genome1)
|
||||||
{
|
{
|
||||||
int finalChance = 0;
|
float finalChance = 0f;
|
||||||
float chance = this.baseChance * 1f;
|
float chance = this.baseChance * 1f;
|
||||||
|
|
||||||
if (this.arePartners(allele0, allele1))
|
if (this.arePartners(allele0, allele1))
|
||||||
@@ -196,10 +293,10 @@ public class BeeMutation implements IBeeMutation
|
|||||||
|
|
||||||
finalChance = Math.round(chance
|
finalChance = Math.round(chance
|
||||||
* housing.getMutationModifier((IBeeGenome) genome0,
|
* housing.getMutationModifier((IBeeGenome) genome0,
|
||||||
(IBeeGenome) genome1)
|
(IBeeGenome) genome1, chance)
|
||||||
* BeeManager.breedingManager.getBeekeepingMode(housing.getWorld())
|
* BeeManager.breedingManager.getBeekeepingMode(housing.getWorld())
|
||||||
.getMutationModifier((IBeeGenome) genome0,
|
.getMutationModifier((IBeeGenome) genome0,
|
||||||
(IBeeGenome) genome1));
|
(IBeeGenome) genome1, chance));
|
||||||
}
|
}
|
||||||
|
|
||||||
return finalChance;
|
return finalChance;
|
||||||
@@ -220,7 +317,7 @@ public class BeeMutation implements IBeeMutation
|
|||||||
return mutationTemplate;
|
return mutationTemplate;
|
||||||
}
|
}
|
||||||
|
|
||||||
public int getBaseChance()
|
public float getBaseChance()
|
||||||
{
|
{
|
||||||
return baseChance;
|
return baseChance;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,32 +1,39 @@
|
|||||||
package thaumicbees.bees;
|
package thaumicbees.bees;
|
||||||
|
|
||||||
import forestry.api.apiculture.*;
|
|
||||||
import forestry.api.core.EnumHumidity;
|
|
||||||
import forestry.api.core.EnumTemperature;
|
|
||||||
import forestry.api.core.ItemInterface;
|
|
||||||
import forestry.api.genetics.*;
|
|
||||||
import forestry.api.genetics.IClassification.EnumClassLevel;
|
|
||||||
|
|
||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
||||||
|
import java.util.Locale;
|
||||||
|
|
||||||
import cpw.mods.fml.common.registry.LanguageRegistry;
|
import net.minecraft.block.Block;
|
||||||
|
import net.minecraft.client.renderer.texture.IconRegister;
|
||||||
|
import net.minecraft.item.Item;
|
||||||
|
import net.minecraft.item.ItemStack;
|
||||||
|
import net.minecraft.util.Icon;
|
||||||
|
import net.minecraftforge.oredict.OreDictionary;
|
||||||
import thaumicbees.item.types.CombType;
|
import thaumicbees.item.types.CombType;
|
||||||
import thaumicbees.item.types.DropType;
|
import thaumicbees.item.types.DropType;
|
||||||
|
import thaumicbees.item.types.NuggetType;
|
||||||
import thaumicbees.item.types.PollenType;
|
import thaumicbees.item.types.PollenType;
|
||||||
import thaumicbees.item.types.ResourceType;
|
import thaumicbees.item.types.ResourceType;
|
||||||
import thaumicbees.main.Config;
|
import thaumicbees.main.Config;
|
||||||
import thaumicbees.main.utils.LocalizationManager;
|
import thaumicbees.main.utils.LocalizationManager;
|
||||||
|
import thaumicbees.main.utils.compat.EquivalentExchangeHelper;
|
||||||
import thaumicbees.main.utils.compat.ForestryHelper;
|
import thaumicbees.main.utils.compat.ForestryHelper;
|
||||||
import thaumicbees.main.utils.compat.ThaumcraftHelper;
|
import thaumicbees.main.utils.compat.ThaumcraftHelper;
|
||||||
|
import cpw.mods.fml.relauncher.Side;
|
||||||
|
import cpw.mods.fml.relauncher.SideOnly;
|
||||||
|
import forestry.api.apiculture.BeeManager;
|
||||||
|
import forestry.api.apiculture.EnumBeeType;
|
||||||
|
import forestry.api.apiculture.IAlleleBeeSpecies;
|
||||||
|
import forestry.api.apiculture.IBeeGenome;
|
||||||
|
import forestry.api.apiculture.IBeeHousing;
|
||||||
|
import forestry.api.core.EnumHumidity;
|
||||||
|
import forestry.api.core.EnumTemperature;
|
||||||
|
import forestry.api.core.IIconProvider;
|
||||||
|
import forestry.api.genetics.AlleleManager;
|
||||||
|
import forestry.api.genetics.IAllele;
|
||||||
|
import forestry.api.genetics.IClassification;
|
||||||
|
|
||||||
import net.minecraft.block.Block;
|
public enum BeeSpecies implements IAlleleBeeSpecies, IIconProvider
|
||||||
import net.minecraft.item.Item;
|
|
||||||
import net.minecraft.item.ItemStack;
|
|
||||||
import net.minecraft.stats.Achievement;
|
|
||||||
import net.minecraft.world.World;
|
|
||||||
|
|
||||||
public enum BeeSpecies implements IAlleleBeeSpecies
|
|
||||||
{
|
{
|
||||||
ESOTERIC("Esoteric", "secretiore",
|
ESOTERIC("Esoteric", "secretiore",
|
||||||
BeeClassification.ARCANE, 0x001099, EnumTemperature.NORMAL, EnumHumidity.NORMAL, false, true),
|
BeeClassification.ARCANE, 0x001099, EnumTemperature.NORMAL, EnumHumidity.NORMAL, false, true),
|
||||||
@@ -68,6 +75,8 @@ public enum BeeSpecies implements IAlleleBeeSpecies
|
|||||||
BeeClassification.VIS, 0x004c99, EnumTemperature.NORMAL, EnumHumidity.NORMAL, true, false),
|
BeeClassification.VIS, 0x004c99, EnumTemperature.NORMAL, EnumHumidity.NORMAL, true, false),
|
||||||
NODE("Node", "conficiens",
|
NODE("Node", "conficiens",
|
||||||
BeeClassification.VIS, 0xFFF266, 0xFF8CE9, EnumTemperature.NORMAL, EnumHumidity.NORMAL, true, false),
|
BeeClassification.VIS, 0xFFF266, 0xFF8CE9, EnumTemperature.NORMAL, EnumHumidity.NORMAL, true, false),
|
||||||
|
REJUVENATING("Rejuvenating", "arcanus vitae",
|
||||||
|
BeeClassification.VIS, 0x91D0D9, EnumTemperature.NORMAL, EnumHumidity.NORMAL, true, false),
|
||||||
SKULKING("Skulking", "malevolens",
|
SKULKING("Skulking", "malevolens",
|
||||||
BeeClassification.SKULKING, 0x524827, 0xe15236, EnumTemperature.NORMAL, EnumHumidity.NORMAL, false, true),
|
BeeClassification.SKULKING, 0x524827, 0xe15236, EnumTemperature.NORMAL, EnumHumidity.NORMAL, false, true),
|
||||||
BRAINY("Brainy", "cerebrum",
|
BRAINY("Brainy", "cerebrum",
|
||||||
@@ -77,7 +86,7 @@ public enum BeeSpecies implements IAlleleBeeSpecies
|
|||||||
WISPY("Wispy", "umbrabilis",
|
WISPY("Wispy", "umbrabilis",
|
||||||
BeeClassification.SKULKING, 0x9cb8d5, 0xe15236, EnumTemperature.NORMAL, EnumHumidity.NORMAL, false, false),
|
BeeClassification.SKULKING, 0x9cb8d5, 0xe15236, EnumTemperature.NORMAL, EnumHumidity.NORMAL, false, false),
|
||||||
BATTY("Batty", "chiroptera",
|
BATTY("Batty", "chiroptera",
|
||||||
BeeClassification.SKULKING, 0x27350d, 0xe15236, EnumTemperature.NORMAL, EnumHumidity.NORMAL, false,true),
|
BeeClassification.SKULKING, 0x27350d, 0xe15236, EnumTemperature.NORMAL, EnumHumidity.NORMAL, false, true),
|
||||||
GHASTLY("Ghastly", "pallens",
|
GHASTLY("Ghastly", "pallens",
|
||||||
BeeClassification.SKULKING, 0xccccee, 0xbf877c, EnumTemperature.NORMAL, EnumHumidity.NORMAL, false, false),
|
BeeClassification.SKULKING, 0xccccee, 0xbf877c, EnumTemperature.NORMAL, EnumHumidity.NORMAL, false, false),
|
||||||
TIMELY("Timely", "gallifreis",
|
TIMELY("Timely", "gallifreis",
|
||||||
@@ -86,10 +95,96 @@ public enum BeeSpecies implements IAlleleBeeSpecies
|
|||||||
BeeClassification.TIME, 0xC6AF86, 0x8E0213, EnumTemperature.NORMAL, EnumHumidity.NORMAL, false, false),
|
BeeClassification.TIME, 0xC6AF86, 0x8E0213, EnumTemperature.NORMAL, EnumHumidity.NORMAL, false, false),
|
||||||
DOCTORAL("Doctoral", "medicus qui",
|
DOCTORAL("Doctoral", "medicus qui",
|
||||||
BeeClassification.TIME, 0xDDE5FC, 0x4B6E8C, EnumTemperature.NORMAL, EnumHumidity.NORMAL, true, false),
|
BeeClassification.TIME, 0xDDE5FC, 0x4B6E8C, EnumTemperature.NORMAL, EnumHumidity.NORMAL, true, false),
|
||||||
|
MINIUM("Minium", "mutabilis",
|
||||||
|
BeeClassification.ALCHEMICAL, 0xac0921, 0x3a030b, EnumTemperature.NORMAL, EnumHumidity.NORMAL, false, true),
|
||||||
|
SPIRIT("Spirit", "larva",
|
||||||
|
BeeClassification.SOUL, 0xb2964b, EnumTemperature.WARM, EnumHumidity.NORMAL, false, true),
|
||||||
|
SOUL("Soul", "anima",
|
||||||
|
BeeClassification.SOUL, 0x7d591b, EnumTemperature.HELLISH, EnumHumidity.NORMAL, true, false),
|
||||||
|
IRON("Iron", "ferrus",
|
||||||
|
BeeClassification.METALLIC, 0x686868, 0xE9E9E9, EnumTemperature.NORMAL, EnumHumidity.NORMAL, false, true),
|
||||||
|
GOLD("Gold", "aurum",
|
||||||
|
BeeClassification.METALLIC, 0x684B01, 0xFFFF0B, EnumTemperature.NORMAL, EnumHumidity.NORMAL, true, false),
|
||||||
|
COPPER("Copper", "aercus",
|
||||||
|
BeeClassification.METALLIC, 0x684B01, 0xFFC81A, EnumTemperature.NORMAL, EnumHumidity.NORMAL, false, true),
|
||||||
|
TIN("Tin", "stannum",
|
||||||
|
BeeClassification.METALLIC, 0x3E596D, 0xA6BACB, EnumTemperature.NORMAL, EnumHumidity.NORMAL, false, true),
|
||||||
|
SILVER("Silver", "argenteus",
|
||||||
|
BeeClassification.METALLIC, 0x747C81, 0x96BFC4, EnumTemperature.NORMAL, EnumHumidity.NORMAL, false, false),
|
||||||
|
LEAD("Lead", "plumbeus",
|
||||||
|
BeeClassification.METALLIC, 0x96BFC4, 0x91A9F3, EnumTemperature.NORMAL, EnumHumidity.NORMAL, false, true),
|
||||||
|
DIAMOND("Diamond", "diamond",
|
||||||
|
BeeClassification.GEM, 0x209581, 0x8DF5E3, EnumTemperature.NORMAL, EnumHumidity.NORMAL, true, false),
|
||||||
|
EMERALD("Emerald", "prasinus",
|
||||||
|
BeeClassification.GEM, 0x005300, 0x17DD62, EnumTemperature.NORMAL, EnumHumidity.NORMAL, true, false),
|
||||||
|
CHICKEN("Chicken", "pullus",
|
||||||
|
BeeClassification.FLESHY, 0x7D431E, 0xE0905E, EnumTemperature.NORMAL, EnumHumidity.NORMAL, false, true),
|
||||||
|
BEEF("Beef", "bubulae",
|
||||||
|
BeeClassification.FLESHY, 0x40221A, 0xAC6753, EnumTemperature.NORMAL, EnumHumidity.NORMAL, false, true),
|
||||||
|
PORK("Pork", "porcina",
|
||||||
|
BeeClassification.FLESHY, 0x725D2F, 0xD2BF93, EnumTemperature.NORMAL, EnumHumidity.NORMAL, false, true),
|
||||||
;
|
;
|
||||||
|
|
||||||
public static void setupBeeSpecies()
|
public static void setupBeeSpecies()
|
||||||
{
|
{
|
||||||
|
// Species must be set inactive prior to registration.
|
||||||
|
if (ThaumcraftHelper.isActive())
|
||||||
|
{
|
||||||
|
AIR.addSpecialty(new ItemStack(Config.tcNuggets, 1, ThaumcraftHelper.NuggetType.QUICKSILVER.ordinal()), 8);
|
||||||
|
EARTH.addSpecialty(new ItemStack(Config.tcMiscResource, 1, ThaumcraftHelper.MiscResource.AMBER.ordinal()), 6);
|
||||||
|
BRAINY.addSpecialty(new ItemStack(Config.tcMiscResource, 1, ThaumcraftHelper.MiscResource.ZOMBIE_BRAIN.ordinal()), 2);
|
||||||
|
CHICKEN.addSpecialty(new ItemStack(Config.tcNuggetChicken, 1), 9);
|
||||||
|
BEEF.addSpecialty(new ItemStack(Config.tcNuggetBeef, 1), 9);
|
||||||
|
PORK.addSpecialty(new ItemStack(Config.tcNuggetPork, 1), 9);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
SCHOLARLY.setInactive();
|
||||||
|
SAVANT.setInactive();
|
||||||
|
AIR.setInactive();
|
||||||
|
EARTH.setInactive();
|
||||||
|
INFUSED.setInactive();
|
||||||
|
PURE.setInactive();
|
||||||
|
FLUX.setInactive();
|
||||||
|
NODE.setInactive();
|
||||||
|
REJUVENATING.setInactive();
|
||||||
|
BRAINY.setInactive();
|
||||||
|
GOSSAMER.setInactive();
|
||||||
|
WISPY.setInactive();
|
||||||
|
BATTY.setInactive();
|
||||||
|
CHICKEN.setInactive();
|
||||||
|
BEEF.setInactive();
|
||||||
|
PORK.setInactive();
|
||||||
|
}
|
||||||
|
|
||||||
|
if (EquivalentExchangeHelper.isActive())
|
||||||
|
{
|
||||||
|
MINIUM.addSpecialty(new ItemStack(Config.eeMinuimShard), 6);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
MINIUM.setInactive();
|
||||||
|
}
|
||||||
|
|
||||||
|
// Oredict bees
|
||||||
|
if (OreDictionary.getOres("ingotCopper").size() <= 0)
|
||||||
|
{
|
||||||
|
COPPER.setInactive();
|
||||||
|
}
|
||||||
|
if (OreDictionary.getOres("ingotTin").size() <= 0)
|
||||||
|
{
|
||||||
|
TIN.setInactive();
|
||||||
|
}
|
||||||
|
if (OreDictionary.getOres("ingotSilver").size() <= 0)
|
||||||
|
{
|
||||||
|
SILVER.setInactive();
|
||||||
|
}
|
||||||
|
if (OreDictionary.getOres("ingotLead").size() <= 0)
|
||||||
|
{
|
||||||
|
LEAD.setInactive();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
ESOTERIC.addProduct(Config.combs.getStackForType(CombType.OCCULT), 20)
|
ESOTERIC.addProduct(Config.combs.getStackForType(CombType.OCCULT), 20)
|
||||||
.setGenome(BeeGenomeManager.getTemplateEsoteric())
|
.setGenome(BeeGenomeManager.getTemplateEsoteric())
|
||||||
.register();
|
.register();
|
||||||
@@ -125,12 +220,10 @@ public enum BeeSpecies implements IAlleleBeeSpecies
|
|||||||
.setGenome(BeeGenomeManager.getTemplateStark())
|
.setGenome(BeeGenomeManager.getTemplateStark())
|
||||||
.register();
|
.register();
|
||||||
AIR.addProduct(Config.combs.getStackForType(CombType.AIRY), 9)
|
AIR.addProduct(Config.combs.getStackForType(CombType.AIRY), 9)
|
||||||
.addSpecialty(new ItemStack(Config.tcNuggets, 1, ThaumcraftHelper.NuggetType.QUICKSILVER.ordinal()), 8)
|
|
||||||
.setGenome(BeeGenomeManager.getTemplateAir())
|
.setGenome(BeeGenomeManager.getTemplateAir())
|
||||||
.register();
|
.register();
|
||||||
FIRE.addProduct(Config.combs.getStackForType(CombType.FIREY), 15)
|
FIRE.addProduct(Config.combs.getStackForType(CombType.FIREY), 15)
|
||||||
.addSpecialty(new ItemStack(Item.blazePowder), 8)
|
.addSpecialty(new ItemStack(Item.blazePowder), 4).setGenome(BeeGenomeManager.getTemplateFire())
|
||||||
.setGenome(BeeGenomeManager.getTemplateFire())
|
|
||||||
.register();
|
.register();
|
||||||
WATER.addProduct(Config.combs.getStackForType(CombType.WATERY), 20)
|
WATER.addProduct(Config.combs.getStackForType(CombType.WATERY), 20)
|
||||||
.addSpecialty(new ItemStack(Block.ice), 1)
|
.addSpecialty(new ItemStack(Block.ice), 1)
|
||||||
@@ -138,7 +231,6 @@ public enum BeeSpecies implements IAlleleBeeSpecies
|
|||||||
.setGenome(BeeGenomeManager.getTemplateWater())
|
.setGenome(BeeGenomeManager.getTemplateWater())
|
||||||
.register();
|
.register();
|
||||||
EARTH.addProduct(Config.combs.getStackForType(CombType.EARTHY), 30)
|
EARTH.addProduct(Config.combs.getStackForType(CombType.EARTHY), 30)
|
||||||
.addSpecialty(new ItemStack(Config.tcMiscResource, 1, ThaumcraftHelper.MiscResource.AMBER.ordinal()), 6)
|
|
||||||
.setGenome(BeeGenomeManager.getTemplateEarth())
|
.setGenome(BeeGenomeManager.getTemplateEarth())
|
||||||
.register();
|
.register();
|
||||||
INFUSED.addProduct(Config.combs.getStackForType(CombType.INFUSED), 20)
|
INFUSED.addProduct(Config.combs.getStackForType(CombType.INFUSED), 20)
|
||||||
@@ -159,14 +251,20 @@ public enum BeeSpecies implements IAlleleBeeSpecies
|
|||||||
NODE.addProduct(Config.combs.getStackForType(CombType.INTELLECT), 20)
|
NODE.addProduct(Config.combs.getStackForType(CombType.INTELLECT), 20)
|
||||||
.setGenome(BeeGenomeManager.getTemplateNode())
|
.setGenome(BeeGenomeManager.getTemplateNode())
|
||||||
.register();
|
.register();
|
||||||
|
REJUVENATING.addProduct(Config.combs.getStackForType(CombType.INTELLECT), 20)
|
||||||
|
.setGenome(BeeGenomeManager.getTemplateRejuvinating())
|
||||||
|
.register();
|
||||||
SKULKING.addProduct(Config.combs.getStackForType(CombType.SKULKING), 10)
|
SKULKING.addProduct(Config.combs.getStackForType(CombType.SKULKING), 10)
|
||||||
.setGenome(BeeGenomeManager.getTemplateSkulking())
|
.setGenome(BeeGenomeManager.getTemplateSkulking())
|
||||||
.register();
|
.register();
|
||||||
BRAINY.addProduct(Config.combs.getStackForType(CombType.SKULKING), 10)
|
BRAINY.addProduct(Config.combs.getStackForType(CombType.SKULKING), 10)
|
||||||
.addProduct(new ItemStack(Item.rottenFlesh), 6)
|
.addProduct(new ItemStack(Item.rottenFlesh), 6)
|
||||||
.addSpecialty(new ItemStack(Config.tcMiscResource, 1, ThaumcraftHelper.MiscResource.ZOMBIE_BRAIN.ordinal()), 2)
|
|
||||||
.setGenome(BeeGenomeManager.getTemplateBrainy())
|
.setGenome(BeeGenomeManager.getTemplateBrainy())
|
||||||
.register();
|
.register();
|
||||||
|
BATTY.addProduct(Config.combs.getStackForType(CombType.SKULKING), 10)
|
||||||
|
.addSpecialty(new ItemStack(Item.gunpowder), 4)
|
||||||
|
.setGenome(BeeGenomeManager.getTemplateBatty())
|
||||||
|
.register();
|
||||||
GOSSAMER.addProduct(new ItemStack(Config.fBeeComb, 1, ForestryHelper.Comb.SILKY.ordinal()), 15)
|
GOSSAMER.addProduct(new ItemStack(Config.fBeeComb, 1, ForestryHelper.Comb.SILKY.ordinal()), 15)
|
||||||
.setGenome(BeeGenomeManager.getTemplateGossamer())
|
.setGenome(BeeGenomeManager.getTemplateGossamer())
|
||||||
.register();
|
.register();
|
||||||
@@ -174,10 +272,6 @@ public enum BeeSpecies implements IAlleleBeeSpecies
|
|||||||
.addSpecialty(new ItemStack(Config.fCraftingResource, 1, ForestryHelper.CraftingMaterial.SILK_WISP.ordinal()), 4)
|
.addSpecialty(new ItemStack(Config.fCraftingResource, 1, ForestryHelper.CraftingMaterial.SILK_WISP.ordinal()), 4)
|
||||||
.setGenome(BeeGenomeManager.getTemplateWispy())
|
.setGenome(BeeGenomeManager.getTemplateWispy())
|
||||||
.register();
|
.register();
|
||||||
BATTY.addProduct(Config.combs.getStackForType(CombType.SKULKING), 10)
|
|
||||||
.addSpecialty(new ItemStack(Item.gunpowder), 4)
|
|
||||||
.setGenome(BeeGenomeManager.getTemplateBatty())
|
|
||||||
.register();
|
|
||||||
GHASTLY.addProduct(Config.combs.getStackForType(CombType.SKULKING), 8)
|
GHASTLY.addProduct(Config.combs.getStackForType(CombType.SKULKING), 8)
|
||||||
.addSpecialty(new ItemStack(Item.ghastTear), 2)
|
.addSpecialty(new ItemStack(Item.ghastTear), 2)
|
||||||
.setGenome(BeeGenomeManager.getTemplateGhastly())
|
.setGenome(BeeGenomeManager.getTemplateGhastly())
|
||||||
@@ -197,6 +291,56 @@ public enum BeeSpecies implements IAlleleBeeSpecies
|
|||||||
.addSpecialty(new ItemStack(Config.jellyBaby), 7)
|
.addSpecialty(new ItemStack(Config.jellyBaby), 7)
|
||||||
.setGenome(BeeGenomeManager.getTemplateDoctoral())
|
.setGenome(BeeGenomeManager.getTemplateDoctoral())
|
||||||
.register();
|
.register();
|
||||||
|
MINIUM.addProduct(Config.combs.getStackForType(CombType.OCCULT), 16)
|
||||||
|
.setGenome(BeeGenomeManager.getTemplateMinium())
|
||||||
|
.register();
|
||||||
|
SPIRIT.addProduct(Config.combs.getStackForType(CombType.SOUL), 13)
|
||||||
|
.setGenome(BeeGenomeManager.getTemplateSpirit())
|
||||||
|
.register();
|
||||||
|
SOUL.addProduct(Config.combs.getStackForType(CombType.SOUL), 24)
|
||||||
|
.setGenome(BeeGenomeManager.getTemplateSoul())
|
||||||
|
.register();
|
||||||
|
IRON.addProduct(new ItemStack(Config.fBeeComb, 1, ForestryHelper.Comb.HONEY.ordinal()), 10)
|
||||||
|
.addSpecialty(Config.nuggets.getStackForType(NuggetType.IRON), 8)
|
||||||
|
.setGenome(BeeGenomeManager.getTemplateIron())
|
||||||
|
.register();
|
||||||
|
GOLD.addProduct(new ItemStack(Config.fBeeComb, 1, ForestryHelper.Comb.HONEY.ordinal()), 10)
|
||||||
|
.addSpecialty(new ItemStack(Item.goldNugget, 1), 6)
|
||||||
|
.setGenome(BeeGenomeManager.getTemplateGold())
|
||||||
|
.register();
|
||||||
|
COPPER.addProduct(new ItemStack(Config.fBeeComb, 1, ForestryHelper.Comb.HONEY.ordinal()), 10)
|
||||||
|
.addSpecialty(Config.nuggets.getStackForType(NuggetType.COPPER), 9)
|
||||||
|
.setGenome(BeeGenomeManager.getTemplateCopper())
|
||||||
|
.register();
|
||||||
|
TIN.addProduct(new ItemStack(Config.fBeeComb, 1, ForestryHelper.Comb.HONEY.ordinal()), 10)
|
||||||
|
.addSpecialty(Config.nuggets.getStackForType(NuggetType.TIN), 9)
|
||||||
|
.setGenome(BeeGenomeManager.getTemplateTin())
|
||||||
|
.register();
|
||||||
|
SILVER.addProduct(new ItemStack(Config.fBeeComb, 1, ForestryHelper.Comb.HONEY.ordinal()), 10)
|
||||||
|
.addSpecialty(Config.nuggets.getStackForType(NuggetType.SILVER), 6)
|
||||||
|
.setGenome(BeeGenomeManager.getTemplateSilver())
|
||||||
|
.register();
|
||||||
|
LEAD.addProduct(new ItemStack(Config.fBeeComb, 1, ForestryHelper.Comb.HONEY.ordinal()), 10)
|
||||||
|
.addSpecialty(Config.nuggets.getStackForType(NuggetType.LEAD), 7)
|
||||||
|
.setGenome(BeeGenomeManager.getTemplateLead())
|
||||||
|
.register();
|
||||||
|
DIAMOND.addProduct(new ItemStack(Config.fBeeComb, 1, ForestryHelper.Comb.HONEY.ordinal()), 10)
|
||||||
|
.addSpecialty(Config.nuggets.getStackForType(NuggetType.DIAMOND), 3)
|
||||||
|
.setGenome(BeeGenomeManager.getTemplateDiamond())
|
||||||
|
.register();
|
||||||
|
EMERALD.addProduct(new ItemStack(Config.fBeeComb, 1, ForestryHelper.Comb.HONEY.ordinal()), 10)
|
||||||
|
.addSpecialty(Config.nuggets.getStackForType(NuggetType.EMERALD), 2)
|
||||||
|
.setGenome(BeeGenomeManager.getTemplateEmerald())
|
||||||
|
.register();
|
||||||
|
CHICKEN.addProduct(new ItemStack(Config.fBeeComb, 1, ForestryHelper.Comb.HONEY.ordinal()), 10)
|
||||||
|
.setGenome(BeeGenomeManager.getTemplateChicken())
|
||||||
|
.register();
|
||||||
|
BEEF.addProduct(new ItemStack(Config.fBeeComb, 1, ForestryHelper.Comb.HONEY.ordinal()), 10)
|
||||||
|
.setGenome(BeeGenomeManager.getTemplateBeef())
|
||||||
|
.register();
|
||||||
|
PORK.addProduct(new ItemStack(Config.fBeeComb, 1, ForestryHelper.Comb.HONEY.ordinal()), 10)
|
||||||
|
.setGenome(BeeGenomeManager.getTemplatePork())
|
||||||
|
.register();
|
||||||
}
|
}
|
||||||
|
|
||||||
private String binomial;
|
private String binomial;
|
||||||
@@ -209,6 +353,7 @@ public enum BeeSpecies implements IAlleleBeeSpecies
|
|||||||
private boolean hasEffect;
|
private boolean hasEffect;
|
||||||
private boolean isSecret;
|
private boolean isSecret;
|
||||||
private boolean isCounted;
|
private boolean isCounted;
|
||||||
|
private boolean isActive;
|
||||||
private IClassification branch;
|
private IClassification branch;
|
||||||
private HashMap products;
|
private HashMap products;
|
||||||
private HashMap specialty;
|
private HashMap specialty;
|
||||||
@@ -216,14 +361,19 @@ public enum BeeSpecies implements IAlleleBeeSpecies
|
|||||||
private String uid;
|
private String uid;
|
||||||
private boolean dominant;
|
private boolean dominant;
|
||||||
|
|
||||||
|
@SideOnly(Side.CLIENT)
|
||||||
|
private Icon[][] icons;
|
||||||
|
|
||||||
|
private final static boolean defaultSecretSetting = true;
|
||||||
|
|
||||||
private BeeSpecies(String speciesName, String genusName, IClassification classification, int firstColour, EnumTemperature preferredTemp, EnumHumidity preferredHumidity, boolean hasGlowEffect, boolean isSpeciesDominant)
|
private BeeSpecies(String speciesName, String genusName, IClassification classification, int firstColour, EnumTemperature preferredTemp, EnumHumidity preferredHumidity, boolean hasGlowEffect, boolean isSpeciesDominant)
|
||||||
{
|
{
|
||||||
this(speciesName, genusName, classification, 0, firstColour, 0xFF6E0D, preferredTemp, preferredHumidity, hasGlowEffect, true, true, isSpeciesDominant);
|
this(speciesName, genusName, classification, 0, firstColour, 0xFF6E0D, preferredTemp, preferredHumidity, hasGlowEffect, defaultSecretSetting, true, isSpeciesDominant);
|
||||||
}
|
}
|
||||||
|
|
||||||
private BeeSpecies(String speciesName, String genusName, IClassification classification, int firstColour, int secondColour, EnumTemperature preferredTemp, EnumHumidity preferredHumidity, boolean hasGlowEffect, boolean isSpeciesDominant)
|
private BeeSpecies(String speciesName, String genusName, IClassification classification, int firstColour, int secondColour, EnumTemperature preferredTemp, EnumHumidity preferredHumidity, boolean hasGlowEffect, boolean isSpeciesDominant)
|
||||||
{
|
{
|
||||||
this(speciesName, genusName, classification, 0, firstColour, secondColour, preferredTemp, preferredHumidity, hasGlowEffect, true, true, isSpeciesDominant);
|
this(speciesName, genusName, classification, 0, firstColour, secondColour, preferredTemp, preferredHumidity, hasGlowEffect, defaultSecretSetting, true, isSpeciesDominant);
|
||||||
}
|
}
|
||||||
|
|
||||||
private BeeSpecies(String speciesName, String genusName, IClassification classification, int body, int firstColour, int secondColour, EnumTemperature preferredTemp, EnumHumidity preferredHumidity, boolean hasGlowEffect, boolean isSpeciesSecret, boolean isSpeciesCounted, boolean isSpeciesDominant)
|
private BeeSpecies(String speciesName, String genusName, IClassification classification, int body, int firstColour, int secondColour, EnumTemperature preferredTemp, EnumHumidity preferredHumidity, boolean hasGlowEffect, boolean isSpeciesSecret, boolean isSpeciesCounted, boolean isSpeciesDominant)
|
||||||
@@ -245,6 +395,7 @@ public enum BeeSpecies implements IAlleleBeeSpecies
|
|||||||
specialty = new HashMap();
|
specialty = new HashMap();
|
||||||
this.branch = classification;
|
this.branch = classification;
|
||||||
this.branch.addMemberSpecies(this);
|
this.branch.addMemberSpecies(this);
|
||||||
|
this.isActive = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
public BeeSpecies setGenome(IAllele genome[])
|
public BeeSpecies setGenome(IAllele genome[])
|
||||||
@@ -275,76 +426,84 @@ public enum BeeSpecies implements IAlleleBeeSpecies
|
|||||||
return BeeManager.beeInterface.getBeeStack(BeeManager.beeInterface.getBee(null, BeeManager.beeInterface.templateAsGenome(genomeTemplate)), beeType);
|
return BeeManager.beeInterface.getBeeStack(BeeManager.beeInterface.getBee(null, BeeManager.beeInterface.templateAsGenome(genomeTemplate)), beeType);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public String getName()
|
public String getName()
|
||||||
{
|
{
|
||||||
return LocalizationManager.getLocalizedString(getUID());
|
return LocalizationManager.getLocalizedString(getUID());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public String getDescription()
|
public String getDescription()
|
||||||
{
|
{
|
||||||
return LocalizationManager.getLocalizedString(getUID() + ".description");
|
return LocalizationManager.getLocalizedString(getUID() + ".description");
|
||||||
}
|
}
|
||||||
|
|
||||||
public int getBodyType()
|
@Override
|
||||||
{
|
|
||||||
return bodyType;
|
|
||||||
}
|
|
||||||
|
|
||||||
public int getPrimaryColor()
|
|
||||||
{
|
|
||||||
return primaryColour;
|
|
||||||
}
|
|
||||||
|
|
||||||
public int getSecondaryColor()
|
|
||||||
{
|
|
||||||
return secondaryColour;
|
|
||||||
}
|
|
||||||
|
|
||||||
public EnumTemperature getTemperature()
|
public EnumTemperature getTemperature()
|
||||||
{
|
{
|
||||||
return temperature;
|
return temperature;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public EnumHumidity getHumidity()
|
public EnumHumidity getHumidity()
|
||||||
{
|
{
|
||||||
return humidity;
|
return humidity;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public boolean hasEffect()
|
public boolean hasEffect()
|
||||||
{
|
{
|
||||||
return hasEffect;
|
return hasEffect;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public BeeSpecies setInactive()
|
||||||
|
{
|
||||||
|
this.isActive = false;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public boolean isActive()
|
||||||
|
{
|
||||||
|
return this.isActive;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public boolean isSecret()
|
public boolean isSecret()
|
||||||
{
|
{
|
||||||
return isSecret;
|
return isSecret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public boolean isCounted()
|
public boolean isCounted()
|
||||||
{
|
{
|
||||||
return isCounted;
|
return isCounted;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public String getBinomial()
|
public String getBinomial()
|
||||||
{
|
{
|
||||||
return binomial;
|
return binomial;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public String getAuthority()
|
public String getAuthority()
|
||||||
{
|
{
|
||||||
return authority;
|
return authority;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public IClassification getBranch()
|
public IClassification getBranch()
|
||||||
{
|
{
|
||||||
return this.branch;
|
return this.branch;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public HashMap getProducts()
|
public HashMap getProducts()
|
||||||
{
|
{
|
||||||
return products;
|
return products;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public HashMap getSpecialty()
|
public HashMap getSpecialty()
|
||||||
{
|
{
|
||||||
return specialty;
|
return specialty;
|
||||||
@@ -363,7 +522,7 @@ public enum BeeSpecies implements IAlleleBeeSpecies
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean isJubilant(World world, int biomeid, int x, int y, int z)
|
public boolean isJubilant(IBeeGenome genome, IBeeHousing housing)
|
||||||
{
|
{
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
@@ -371,15 +530,66 @@ public enum BeeSpecies implements IAlleleBeeSpecies
|
|||||||
private BeeSpecies register()
|
private BeeSpecies register()
|
||||||
{
|
{
|
||||||
BeeManager.breedingManager.registerBeeTemplate(this.getGenome());
|
BeeManager.breedingManager.registerBeeTemplate(this.getGenome());
|
||||||
|
if (!this.isActive)
|
||||||
|
{
|
||||||
|
AlleleManager.alleleRegistry.blacklistAllele(this.getUID());
|
||||||
|
}
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
@Override
|
||||||
* @deprecated Method getAchievement is deprecated
|
public int getIconColour(int renderPass)
|
||||||
*/
|
{
|
||||||
|
int value = 0xffffff;
|
||||||
|
if (renderPass == 0) {
|
||||||
|
value = this.primaryColour;
|
||||||
|
}
|
||||||
|
else if (renderPass == 1) {
|
||||||
|
value = this.secondaryColour;
|
||||||
|
}
|
||||||
|
return value;
|
||||||
|
}
|
||||||
|
|
||||||
public Achievement getAchievement()
|
@Override
|
||||||
|
@SideOnly(Side.CLIENT)
|
||||||
|
public IIconProvider getIconProvider()
|
||||||
|
{
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
@SideOnly(Side.CLIENT)
|
||||||
|
public Icon getIcon(EnumBeeType type, int renderPass)
|
||||||
|
{
|
||||||
|
return icons[type.ordinal()][Math.min(renderPass, 2)];
|
||||||
|
}
|
||||||
|
|
||||||
|
public void registerItemIcons(IconRegister itemMap)
|
||||||
|
{
|
||||||
|
this.icons = new Icon[EnumBeeType.values().length][3];
|
||||||
|
Icon outline = itemMap.registerIcon(ForestryHelper.Name + ":bees/outline");
|
||||||
|
Icon body1 = itemMap.registerIcon(ForestryHelper.Name + ":bees/outline");
|
||||||
|
|
||||||
|
for (int i = 0; i < EnumBeeType.values().length; i++) {
|
||||||
|
if(EnumBeeType.values()[i] == EnumBeeType.NONE)
|
||||||
|
continue;
|
||||||
|
|
||||||
|
icons[i][0] = outline;
|
||||||
|
icons[i][1] = body1;
|
||||||
|
icons[i][2] = itemMap.registerIcon(ForestryHelper.Name + ":bees/" + EnumBeeType.values()[i].toString().toLowerCase(Locale.ENGLISH) + ".body2");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/// --------- Unused Functions ---------------------------------------------
|
||||||
|
|
||||||
|
@Override
|
||||||
|
@SideOnly(Side.CLIENT)
|
||||||
|
public Icon getIcon(short texUID)
|
||||||
{
|
{
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
@SideOnly(Side.CLIENT)
|
||||||
|
public void registerTerrainIcons(IconRegister terrainMap) { }
|
||||||
}
|
}
|
||||||
@@ -36,7 +36,7 @@ public class FlowerProviderAuraNode implements IFlowerProvider
|
|||||||
if (world.isAirBlock(x, y, z) && (blockDown == Block.dirt.blockID || blockDown == Block.grass.blockID))
|
if (world.isAirBlock(x, y, z) && (blockDown == Block.dirt.blockID || blockDown == Block.grass.blockID))
|
||||||
{
|
{
|
||||||
int rand = world.rand.nextInt(10);
|
int rand = world.rand.nextInt(10);
|
||||||
world.setBlockAndMetadataWithNotify(x, y, z, Config.tcPlant.blockID, (rand >= 5) ? 2 : 3);
|
world.setBlockMetadataWithNotify(x, y, z, Config.tcPlant.blockID, (rand >= 5) ? 2 : 3);
|
||||||
System.out.println(x + ", " + y + ", " + ", " + z + " set to flower.");
|
System.out.println(x + ", " + y + ", " + ", " + z + " set to flower.");
|
||||||
flag = true;
|
flag = true;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -39,12 +39,12 @@ public class FlowerProviderThaumcraftFlower implements IFlowerProvider
|
|||||||
{
|
{
|
||||||
if (blockDown == Block.dirt.blockID || blockDown == Block.grass.blockID)
|
if (blockDown == Block.dirt.blockID || blockDown == Block.grass.blockID)
|
||||||
{
|
{
|
||||||
world.setBlockAndMetadataWithNotify(x, y, z, Config.tcPlant.blockID, ThaumcraftHelper.BlockPlant.SHIMMERLEAF.ordinal());
|
world.setBlockMetadataWithNotify(x, y, z, Config.tcPlant.blockID, ThaumcraftHelper.BlockPlant.SHIMMERLEAF.ordinal());
|
||||||
flag = true;
|
flag = true;
|
||||||
}
|
}
|
||||||
else if (blockDown == Block.sand.blockID)
|
else if (blockDown == Block.sand.blockID)
|
||||||
{
|
{
|
||||||
world.setBlockAndMetadataWithNotify(x, y, z, Config.tcPlant.blockID, ThaumcraftHelper.BlockPlant.CINDERPEARL.ordinal());
|
world.setBlockMetadataWithNotify(x, y, z, Config.tcPlant.blockID, ThaumcraftHelper.BlockPlant.CINDERPEARL.ordinal());
|
||||||
flag = true;
|
flag = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -0,0 +1,27 @@
|
|||||||
|
package thaumicbees.block;
|
||||||
|
|
||||||
|
import net.minecraft.block.BlockContainer;
|
||||||
|
import net.minecraft.block.material.Material;
|
||||||
|
import net.minecraft.item.ItemStack;
|
||||||
|
import net.minecraft.tileentity.TileEntity;
|
||||||
|
import net.minecraft.world.World;
|
||||||
|
import forestry.api.apiculture.IBee;
|
||||||
|
import forestry.api.apiculture.IBeeGenome;
|
||||||
|
import forestry.api.apiculture.IBeeHousing;
|
||||||
|
import forestry.api.core.EnumHumidity;
|
||||||
|
import forestry.api.core.EnumTemperature;
|
||||||
|
|
||||||
|
public class BlockEffectJar extends BlockContainer
|
||||||
|
{
|
||||||
|
public BlockEffectJar(int id)
|
||||||
|
{
|
||||||
|
super(id, Material.glass);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public TileEntity createNewTileEntity(World w)
|
||||||
|
{
|
||||||
|
return new TileEntityEffectJar();
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
@@ -2,38 +2,34 @@ package thaumicbees.block;
|
|||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
import cpw.mods.fml.relauncher.Side;
|
|
||||||
import cpw.mods.fml.relauncher.SideOnly;
|
|
||||||
import thaumicbees.item.types.PlankType;
|
|
||||||
import thaumicbees.main.CommonProxy;
|
|
||||||
import net.minecraft.block.Block;
|
import net.minecraft.block.Block;
|
||||||
import net.minecraft.block.BlockWood;
|
|
||||||
import net.minecraft.block.material.Material;
|
import net.minecraft.block.material.Material;
|
||||||
|
import net.minecraft.client.renderer.texture.IconRegister;
|
||||||
import net.minecraft.creativetab.CreativeTabs;
|
import net.minecraft.creativetab.CreativeTabs;
|
||||||
import net.minecraft.item.ItemStack;
|
import net.minecraft.item.ItemStack;
|
||||||
|
import net.minecraft.util.Icon;
|
||||||
|
import thaumicbees.item.types.PlankType;
|
||||||
|
import thaumicbees.main.ThaumicBees;
|
||||||
|
import thaumicbees.main.utils.VersionInfo;
|
||||||
|
import cpw.mods.fml.relauncher.Side;
|
||||||
|
import cpw.mods.fml.relauncher.SideOnly;
|
||||||
|
|
||||||
public class BlockPlanks extends Block
|
public class BlockPlanks extends Block
|
||||||
{
|
{
|
||||||
|
@SideOnly(Side.CLIENT)
|
||||||
|
private Icon[] icons = new Icon[PlankType.values().length];
|
||||||
|
|
||||||
public BlockPlanks(int id)
|
public BlockPlanks(int id)
|
||||||
{
|
{
|
||||||
super(id, Material.wood);
|
super(id, Material.wood);
|
||||||
this.setHardness(2.5f);
|
this.setHardness(2.5f);
|
||||||
this.setResistance(6.0f);
|
this.setResistance(6.0f);
|
||||||
this.setBlockName("tb.planks");
|
this.setUnlocalizedName("tb.planks");
|
||||||
this.setCreativeTab(CreativeTabs.tabBlock);
|
this.setCreativeTab(CreativeTabs.tabBlock);
|
||||||
this.setTextureFile(CommonProxy.TCBEES_ITEMS_IMAGE);
|
if (ThaumicBees.getConfig().AreMagicPlanksFlammable)
|
||||||
Block.setBurnProperties(id, 5, 20);
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public int getBlockTextureFromSideAndMetadata(int side, int meta)
|
|
||||||
{
|
|
||||||
int tx = 256;
|
|
||||||
if (PlankType.getType(meta) != null)
|
|
||||||
{
|
{
|
||||||
tx = PlankType.getType(meta).textureIdx;
|
Block.setBurnProperties(id, 5, 20);
|
||||||
}
|
}
|
||||||
return tx;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@@ -51,4 +47,20 @@ public class BlockPlanks extends Block
|
|||||||
itemsList.add(new ItemStack(this, 1, type.ordinal()));
|
itemsList.add(new ItemStack(this, 1, type.ordinal()));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@SideOnly(Side.CLIENT)
|
||||||
|
@Override
|
||||||
|
public Icon getIcon(int side, int meta)
|
||||||
|
{
|
||||||
|
return this.icons[Math.max(0, Math.min(meta & 7, icons.length-1))];
|
||||||
|
}
|
||||||
|
|
||||||
|
@SideOnly(Side.CLIENT)
|
||||||
|
public void registerIcons(IconRegister par1IconRegister)
|
||||||
|
{
|
||||||
|
for (PlankType t : PlankType.values())
|
||||||
|
{
|
||||||
|
this.icons[t.ordinal()] = par1IconRegister.registerIcon(VersionInfo.ModName + ":" + t.name);
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
@@ -3,41 +3,37 @@ package thaumicbees.block;
|
|||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.Random;
|
import java.util.Random;
|
||||||
|
|
||||||
import thaumicbees.item.types.PlankType;
|
|
||||||
import thaumicbees.main.CommonProxy;
|
|
||||||
import thaumicbees.main.Config;
|
|
||||||
import cpw.mods.fml.relauncher.Side;
|
|
||||||
import cpw.mods.fml.relauncher.SideOnly;
|
|
||||||
import net.minecraft.block.Block;
|
import net.minecraft.block.Block;
|
||||||
import net.minecraft.block.BlockHalfSlab;
|
import net.minecraft.block.BlockHalfSlab;
|
||||||
import net.minecraft.block.material.Material;
|
import net.minecraft.block.material.Material;
|
||||||
|
import net.minecraft.client.renderer.texture.IconRegister;
|
||||||
import net.minecraft.creativetab.CreativeTabs;
|
import net.minecraft.creativetab.CreativeTabs;
|
||||||
import net.minecraft.item.ItemStack;
|
import net.minecraft.item.ItemStack;
|
||||||
|
import net.minecraft.util.Icon;
|
||||||
|
import thaumicbees.item.types.PlankType;
|
||||||
|
import thaumicbees.main.Config;
|
||||||
|
import thaumicbees.main.ThaumicBees;
|
||||||
|
import thaumicbees.main.utils.VersionInfo;
|
||||||
|
import cpw.mods.fml.relauncher.Side;
|
||||||
|
import cpw.mods.fml.relauncher.SideOnly;
|
||||||
|
|
||||||
public class BlockWoodSlab extends BlockHalfSlab
|
public class BlockWoodSlab extends BlockHalfSlab
|
||||||
{
|
{
|
||||||
|
@SideOnly(Side.CLIENT)
|
||||||
|
private Icon[] icons = new Icon[PlankType.values().length];
|
||||||
|
|
||||||
public BlockWoodSlab(int id, boolean doubleSlab)
|
public BlockWoodSlab(int id, boolean doubleSlab)
|
||||||
{
|
{
|
||||||
super(id, doubleSlab, Material.wood);
|
super(id, doubleSlab, Material.wood);
|
||||||
this.setHardness(2.5f);
|
this.setHardness(2.5f);
|
||||||
this.setResistance(6.0f);
|
this.setResistance(6.0f);
|
||||||
this.setBlockName("tb.slab.wood");
|
this.setUnlocalizedName("tb.slab.wood");
|
||||||
this.setCreativeTab(CreativeTabs.tabBlock);
|
this.setCreativeTab(CreativeTabs.tabBlock);
|
||||||
this.setTextureFile(CommonProxy.TCBEES_ITEMS_IMAGE);
|
|
||||||
this.setLightOpacity(doubleSlab ? 255 : 0);
|
this.setLightOpacity(doubleSlab ? 255 : 0);
|
||||||
Block.setBurnProperties(id, 5, 20);
|
if (ThaumicBees.getConfig().AreMagicPlanksFlammable)
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public int getBlockTextureFromSideAndMetadata(int side, int meta)
|
|
||||||
{
|
|
||||||
int tx = 256;
|
|
||||||
if (PlankType.getType(meta & 7) != null)
|
|
||||||
{
|
{
|
||||||
tx = PlankType.getType(meta & 7).textureIdx;
|
Block.setBurnProperties(id, 5, 20);
|
||||||
}
|
}
|
||||||
return tx;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public int idDropped(int id, Random rand, int par3)
|
public int idDropped(int id, Random rand, int par3)
|
||||||
@@ -53,7 +49,7 @@ public class BlockWoodSlab extends BlockHalfSlab
|
|||||||
@Override
|
@Override
|
||||||
public String getFullSlabName(int meta)
|
public String getFullSlabName(int meta)
|
||||||
{
|
{
|
||||||
return this.getBlockName() + "." + PlankType.getType(meta).name;
|
return this.getUnlocalizedName() + "." + PlankType.getType(meta).name;
|
||||||
}
|
}
|
||||||
|
|
||||||
@SideOnly(Side.CLIENT)
|
@SideOnly(Side.CLIENT)
|
||||||
@@ -65,4 +61,20 @@ public class BlockWoodSlab extends BlockHalfSlab
|
|||||||
itemsList.add(new ItemStack(this, 1, type.ordinal()));
|
itemsList.add(new ItemStack(this, 1, type.ordinal()));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@SideOnly(Side.CLIENT)
|
||||||
|
@Override
|
||||||
|
public Icon getIcon(int side, int meta)
|
||||||
|
{
|
||||||
|
return this.icons[Math.max(0, Math.min(meta & 7, icons.length-1))];
|
||||||
|
}
|
||||||
|
|
||||||
|
@SideOnly(Side.CLIENT)
|
||||||
|
public void registerIcons(IconRegister par1IconRegister)
|
||||||
|
{
|
||||||
|
for (PlankType t : PlankType.values())
|
||||||
|
{
|
||||||
|
this.icons[t.ordinal()] = par1IconRegister.registerIcon(VersionInfo.ModName + ":" + t.name);
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
@@ -0,0 +1,28 @@
|
|||||||
|
package thaumicbees.block;
|
||||||
|
|
||||||
|
import thaumicbees.main.utils.EffectJarHousing;
|
||||||
|
import forestry.api.apiculture.IBeeHousing;
|
||||||
|
import net.minecraft.entity.player.EntityPlayer;
|
||||||
|
import net.minecraft.tileentity.TileEntity;
|
||||||
|
import net.minecraft.world.World;
|
||||||
|
|
||||||
|
public class TileEntityEffectJar extends TileEntity
|
||||||
|
{
|
||||||
|
private String ownerName;
|
||||||
|
private EffectJarHousing housingLogic;
|
||||||
|
|
||||||
|
public TileEntityEffectJar()
|
||||||
|
{
|
||||||
|
super();
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setOwner(EntityPlayer player)
|
||||||
|
{
|
||||||
|
this.ownerName = player.username;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getOwner()
|
||||||
|
{
|
||||||
|
return this.ownerName;
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -56,4 +56,10 @@ public class ItemArmorApiarist extends Item implements IArmorApiarist
|
|||||||
ItemStack armorItem = player.inventory.armorInventory[0];
|
ItemStack armorItem = player.inventory.armorInventory[0];
|
||||||
return armorItem != null && armorItem.getItem() instanceof IArmorApiarist;
|
return armorItem != null && armorItem.getItem() instanceof IArmorApiarist;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean protectPlayer(EntityPlayer player, ItemStack armor, String cause, boolean doProtect)
|
||||||
|
{
|
||||||
|
return false;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
@@ -8,13 +8,19 @@ import forestry.api.core.Tabs;
|
|||||||
import forestry.api.recipes.RecipeManagers;
|
import forestry.api.recipes.RecipeManagers;
|
||||||
import thaumicbees.item.types.CapsuleType;
|
import thaumicbees.item.types.CapsuleType;
|
||||||
import thaumicbees.item.types.LiquidType;
|
import thaumicbees.item.types.LiquidType;
|
||||||
|
import thaumicbees.item.types.PlankType;
|
||||||
import thaumicbees.main.CommonProxy;
|
import thaumicbees.main.CommonProxy;
|
||||||
|
import thaumicbees.main.ThaumicBees;
|
||||||
|
import thaumicbees.main.utils.TabThaumicBees;
|
||||||
|
import thaumicbees.main.utils.VersionInfo;
|
||||||
import net.minecraft.block.Block;
|
import net.minecraft.block.Block;
|
||||||
|
import net.minecraft.client.renderer.texture.IconRegister;
|
||||||
import net.minecraft.creativetab.CreativeTabs;
|
import net.minecraft.creativetab.CreativeTabs;
|
||||||
import net.minecraft.entity.player.EntityPlayer;
|
import net.minecraft.entity.player.EntityPlayer;
|
||||||
import net.minecraft.item.Item;
|
import net.minecraft.item.Item;
|
||||||
import net.minecraft.item.ItemStack;
|
import net.minecraft.item.ItemStack;
|
||||||
import net.minecraft.util.EnumMovingObjectType;
|
import net.minecraft.util.EnumMovingObjectType;
|
||||||
|
import net.minecraft.util.Icon;
|
||||||
import net.minecraft.util.MovingObjectPosition;
|
import net.minecraft.util.MovingObjectPosition;
|
||||||
import net.minecraft.world.World;
|
import net.minecraft.world.World;
|
||||||
import net.minecraftforge.liquids.LiquidContainerData;
|
import net.minecraftforge.liquids.LiquidContainerData;
|
||||||
@@ -30,8 +36,7 @@ public class ItemCapsule extends Item
|
|||||||
{
|
{
|
||||||
super(itemId);
|
super(itemId);
|
||||||
this.capsuleType = type;
|
this.capsuleType = type;
|
||||||
this.setTextureFile(CommonProxy.TCBEES_LIQUIDS_IMAGE);
|
this.setCreativeTab(TabThaumicBees.tabThaumicBees);
|
||||||
this.setCreativeTab(Tabs.tabApiculture);
|
|
||||||
this.setHasSubtypes(true);
|
this.setHasSubtypes(true);
|
||||||
this.setMaxStackSize(maxStackSize);
|
this.setMaxStackSize(maxStackSize);
|
||||||
}
|
}
|
||||||
@@ -44,7 +49,7 @@ public class ItemCapsule extends Item
|
|||||||
@Override
|
@Override
|
||||||
public String getItemDisplayName(ItemStack itemStack)
|
public String getItemDisplayName(ItemStack itemStack)
|
||||||
{
|
{
|
||||||
return LiquidType.values()[itemStack.getItemDamage()].getDisplayName() + " " + this.capsuleType.getName();
|
return LiquidType.values()[itemStack.getItemDamage()].getDisplayName() + " " + this.capsuleType.getLocalizedName();
|
||||||
}
|
}
|
||||||
|
|
||||||
public ItemStack getCapsuleForLiquid(LiquidType l)
|
public ItemStack getCapsuleForLiquid(LiquidType l)
|
||||||
@@ -72,25 +77,35 @@ public class ItemCapsule extends Item
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@SideOnly(Side.CLIENT)
|
||||||
|
public void registerIcons(IconRegister par1IconRegister)
|
||||||
|
{
|
||||||
|
this.itemIcon = par1IconRegister.registerIcon(VersionInfo.ModName.toLowerCase() + ":capsule" + this.capsuleType.getName().substring(0, 1).toUpperCase()
|
||||||
|
+ this.capsuleType.getName().substring(1));
|
||||||
|
for (LiquidType t : LiquidType.values())
|
||||||
|
{
|
||||||
|
if (t != LiquidType.EMPTY && t.liquidIcon == null)
|
||||||
|
{
|
||||||
|
t.liquidIcon = par1IconRegister.registerIcon(VersionInfo.ModName.toLowerCase() + ":liquids/" + t.liquidID);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@SideOnly(Side.CLIENT)
|
@SideOnly(Side.CLIENT)
|
||||||
public int getIconFromDamageForRenderPass(int metadata, int pass)
|
public Icon getIconFromDamageForRenderPass(int metadata, int pass)
|
||||||
{
|
{
|
||||||
int index = 0;
|
Icon i = this.itemIcon;
|
||||||
if (pass == 0)
|
if (metadata != 0 && pass == 0)
|
||||||
{
|
{
|
||||||
index = LiquidType.values()[metadata].iconIdx;
|
i = LiquidType.values()[Math.max(0, Math.min(metadata, LiquidType.values().length - 1))].liquidIcon;
|
||||||
}
|
}
|
||||||
else
|
return i;
|
||||||
{
|
|
||||||
index = capsuleType.iconIdx;
|
|
||||||
}
|
|
||||||
return index;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public int getRenderPasses(int metadata)
|
public int getRenderPasses(int metadata)
|
||||||
{
|
{
|
||||||
return 2;
|
return (metadata == 0) ? 1 : 2;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -5,19 +5,22 @@ import java.util.List;
|
|||||||
import thaumicbees.item.types.CombType;
|
import thaumicbees.item.types.CombType;
|
||||||
import thaumicbees.main.CommonProxy;
|
import thaumicbees.main.CommonProxy;
|
||||||
import thaumicbees.main.ThaumicBees;
|
import thaumicbees.main.ThaumicBees;
|
||||||
|
import thaumicbees.main.utils.VersionInfo;
|
||||||
|
import thaumicbees.main.utils.compat.ForestryHelper;
|
||||||
import cpw.mods.fml.relauncher.Side;
|
import cpw.mods.fml.relauncher.Side;
|
||||||
import cpw.mods.fml.relauncher.SideOnly;
|
import cpw.mods.fml.relauncher.SideOnly;
|
||||||
import forestry.api.core.Tabs;
|
import forestry.api.core.Tabs;
|
||||||
|
import net.minecraft.client.renderer.texture.IconRegister;
|
||||||
import net.minecraft.creativetab.CreativeTabs;
|
import net.minecraft.creativetab.CreativeTabs;
|
||||||
import net.minecraft.item.Item;
|
import net.minecraft.item.Item;
|
||||||
import net.minecraft.item.ItemStack;
|
import net.minecraft.item.ItemStack;
|
||||||
|
import net.minecraft.util.Icon;
|
||||||
|
|
||||||
public class ItemComb extends Item
|
public class ItemComb extends Item
|
||||||
{
|
{
|
||||||
public ItemComb(int itemID)
|
public ItemComb(int itemID)
|
||||||
{
|
{
|
||||||
super(itemID);
|
super(itemID);
|
||||||
this.setTextureFile(CommonProxy.FORESTRY_GFX_ITEMS);
|
|
||||||
this.setCreativeTab(Tabs.tabApiculture);
|
this.setCreativeTab(Tabs.tabApiculture);
|
||||||
this.setHasSubtypes(true);
|
this.setHasSubtypes(true);
|
||||||
}
|
}
|
||||||
@@ -55,20 +58,23 @@ public class ItemComb extends Item
|
|||||||
@Override
|
@Override
|
||||||
public int getRenderPasses(int meta)
|
public int getRenderPasses(int meta)
|
||||||
{
|
{
|
||||||
int passes = 2;
|
return 2;
|
||||||
return passes;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@SideOnly(Side.CLIENT)
|
||||||
|
private Icon secondIcon;
|
||||||
|
|
||||||
|
@SideOnly(Side.CLIENT)
|
||||||
|
public void registerIcons(IconRegister par1IconRegister)
|
||||||
|
{
|
||||||
|
this.itemIcon = par1IconRegister.registerIcon(ForestryHelper.Name.toLowerCase() + ":beeCombs.0");
|
||||||
|
this.secondIcon= par1IconRegister.registerIcon(ForestryHelper.Name.toLowerCase() + ":beeCombs.1");
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public int getIconIndex(ItemStack stack, int pass)
|
public Icon getIcon(ItemStack stack, int pass)
|
||||||
{
|
{
|
||||||
int idx = 107;
|
return (pass == 0) ? itemIcon : secondIcon;
|
||||||
// 107, 108 are the base forestry honeycomb textures.
|
|
||||||
if (pass >= 1)
|
|
||||||
{
|
|
||||||
idx = 108;
|
|
||||||
}
|
|
||||||
return idx;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|||||||
@@ -8,20 +8,24 @@ import cpw.mods.fml.relauncher.SideOnly;
|
|||||||
import forestry.api.core.Tabs;
|
import forestry.api.core.Tabs;
|
||||||
import thaumcraft.api.EnumTag;
|
import thaumcraft.api.EnumTag;
|
||||||
import thaumicbees.main.CommonProxy;
|
import thaumicbees.main.CommonProxy;
|
||||||
|
import thaumicbees.main.ThaumicBees;
|
||||||
import thaumicbees.main.utils.LocalizationManager;
|
import thaumicbees.main.utils.LocalizationManager;
|
||||||
|
import thaumicbees.main.utils.TabThaumicBees;
|
||||||
|
import thaumicbees.main.utils.VersionInfo;
|
||||||
|
import thaumicbees.main.utils.compat.ForestryHelper;
|
||||||
|
import net.minecraft.client.renderer.texture.IconRegister;
|
||||||
import net.minecraft.creativetab.CreativeTabs;
|
import net.minecraft.creativetab.CreativeTabs;
|
||||||
import net.minecraft.item.Item;
|
import net.minecraft.item.Item;
|
||||||
import net.minecraft.item.ItemStack;
|
import net.minecraft.item.ItemStack;
|
||||||
|
|
||||||
public class ItemSolidFlux extends Item
|
public class ItemCrystalAspect extends Item
|
||||||
{
|
{
|
||||||
public ItemSolidFlux(int itemId)
|
public ItemCrystalAspect(int itemId)
|
||||||
{
|
{
|
||||||
super(itemId);
|
super(itemId);
|
||||||
this.setTextureFile(CommonProxy.TCBEES_ITEMS_IMAGE);
|
this.setCreativeTab(TabThaumicBees.tabThaumicBees);
|
||||||
this.setIconIndex(18);
|
|
||||||
this.setCreativeTab(Tabs.tabApiculture);
|
|
||||||
this.setHasSubtypes(true);
|
this.setHasSubtypes(true);
|
||||||
|
this.setUnlocalizedName("crystalAspect");
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@@ -38,11 +42,11 @@ public class ItemSolidFlux extends Item
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@SideOnly(Side.CLIENT)
|
||||||
public String getItemDisplayName(ItemStack stack)
|
public void registerIcons(IconRegister par1IconRegister)
|
||||||
{
|
{
|
||||||
return String.format(LocalizationManager.getLocalizedString("tb.resource.crystalFlux"), EnumTag.get(stack.getItemDamage()).name);
|
this.itemIcon = par1IconRegister.registerIcon(VersionInfo.ModName + ":crystalAspect");
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@SideOnly(Side.CLIENT)
|
@SideOnly(Side.CLIENT)
|
||||||
@@ -51,4 +55,9 @@ public class ItemSolidFlux extends Item
|
|||||||
return EnumTag.get(stack.getItemDamage()).color;
|
return EnumTag.get(stack.getItemDamage()).color;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String getItemDisplayName(ItemStack stack)
|
||||||
|
{
|
||||||
|
return String.format(LocalizationManager.getLocalizedString("tb.resource.crystalAspect"), EnumTag.get(stack.getItemDamage()).name);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
@@ -6,20 +6,22 @@ import thaumicbees.item.types.DropType;
|
|||||||
import thaumicbees.item.types.PropolisType;
|
import thaumicbees.item.types.PropolisType;
|
||||||
import thaumicbees.main.CommonProxy;
|
import thaumicbees.main.CommonProxy;
|
||||||
import thaumicbees.main.ThaumicBees;
|
import thaumicbees.main.ThaumicBees;
|
||||||
|
import thaumicbees.main.utils.compat.ForestryHelper;
|
||||||
import cpw.mods.fml.common.registry.LanguageRegistry;
|
import cpw.mods.fml.common.registry.LanguageRegistry;
|
||||||
import cpw.mods.fml.relauncher.Side;
|
import cpw.mods.fml.relauncher.Side;
|
||||||
import cpw.mods.fml.relauncher.SideOnly;
|
import cpw.mods.fml.relauncher.SideOnly;
|
||||||
import forestry.api.core.Tabs;
|
import forestry.api.core.Tabs;
|
||||||
|
import net.minecraft.client.renderer.texture.IconRegister;
|
||||||
import net.minecraft.creativetab.CreativeTabs;
|
import net.minecraft.creativetab.CreativeTabs;
|
||||||
import net.minecraft.item.Item;
|
import net.minecraft.item.Item;
|
||||||
import net.minecraft.item.ItemStack;
|
import net.minecraft.item.ItemStack;
|
||||||
|
import net.minecraft.util.Icon;
|
||||||
|
|
||||||
public class ItemDrop extends Item
|
public class ItemDrop extends Item
|
||||||
{
|
{
|
||||||
public ItemDrop(int itemID)
|
public ItemDrop(int itemID)
|
||||||
{
|
{
|
||||||
super(itemID);
|
super(itemID);
|
||||||
this.setTextureFile(CommonProxy.FORESTRY_GFX_ITEMS);
|
|
||||||
this.setCreativeTab(Tabs.tabApiculture);
|
this.setCreativeTab(Tabs.tabApiculture);
|
||||||
this.setHasSubtypes(true);
|
this.setHasSubtypes(true);
|
||||||
}
|
}
|
||||||
@@ -57,16 +59,20 @@ public class ItemDrop extends Item
|
|||||||
return 2;
|
return 2;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@SideOnly(Side.CLIENT)
|
||||||
|
private Icon secondIcon;
|
||||||
|
|
||||||
|
@SideOnly(Side.CLIENT)
|
||||||
|
public void registerIcons(IconRegister par1IconRegister)
|
||||||
|
{
|
||||||
|
this.itemIcon = par1IconRegister.registerIcon(ForestryHelper.Name.toLowerCase() + ":honeyDrop.0");
|
||||||
|
this.secondIcon= par1IconRegister.registerIcon(ForestryHelper.Name.toLowerCase() + ":honeyDrop.1");
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public int getIconIndex(ItemStack stack, int pass)
|
public Icon getIcon(ItemStack stack, int pass)
|
||||||
{
|
{
|
||||||
int idx = 109;
|
return (pass == 0) ? this.itemIcon : this.secondIcon;
|
||||||
// 109, 110 are the base forestry drop textures.
|
|
||||||
if (pass >= 1)
|
|
||||||
{
|
|
||||||
idx = 110;
|
|
||||||
}
|
|
||||||
return idx;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|||||||
@@ -2,6 +2,9 @@ package thaumicbees.item;
|
|||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
|
import cpw.mods.fml.relauncher.Side;
|
||||||
|
import cpw.mods.fml.relauncher.SideOnly;
|
||||||
|
|
||||||
import thaumcraft.api.AuraNode;
|
import thaumcraft.api.AuraNode;
|
||||||
import thaumcraft.api.EnumTag;
|
import thaumcraft.api.EnumTag;
|
||||||
import thaumcraft.api.ObjectTags;
|
import thaumcraft.api.ObjectTags;
|
||||||
@@ -9,7 +12,11 @@ import thaumcraft.api.ThaumcraftApi;
|
|||||||
import thaumicbees.item.types.HiveFrameType;
|
import thaumicbees.item.types.HiveFrameType;
|
||||||
import thaumicbees.item.types.LiquidType;
|
import thaumicbees.item.types.LiquidType;
|
||||||
import thaumicbees.main.CommonProxy;
|
import thaumicbees.main.CommonProxy;
|
||||||
|
import thaumicbees.main.utils.VersionInfo;
|
||||||
|
import thaumicbees.main.utils.compat.ForestryHelper;
|
||||||
|
import thaumicbees.main.utils.compat.ThaumcraftHelper;
|
||||||
|
|
||||||
|
import net.minecraft.client.renderer.texture.IconRegister;
|
||||||
import net.minecraft.item.Item;
|
import net.minecraft.item.Item;
|
||||||
import net.minecraft.item.ItemStack;
|
import net.minecraft.item.ItemStack;
|
||||||
import net.minecraft.nbt.NBTTagCompound;
|
import net.minecraft.nbt.NBTTagCompound;
|
||||||
@@ -28,16 +35,15 @@ public class ItemMagicHiveFrame extends Item implements IHiveFrame
|
|||||||
super(itemID);
|
super(itemID);
|
||||||
this.type = frameType;
|
this.type = frameType;
|
||||||
this.setMaxDamage(this.type.maxDamage);
|
this.setMaxDamage(this.type.maxDamage);
|
||||||
this.setTextureFile(CommonProxy.TCBEES_ITEMS_IMAGE);
|
|
||||||
this.setIconIndex(this.type.iconIdx);
|
|
||||||
this.setMaxStackSize(1);
|
this.setMaxStackSize(1);
|
||||||
|
this.setUnlocalizedName("frame" + frameType.getName());
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@SideOnly(Side.CLIENT)
|
||||||
public String getItemDisplayName(ItemStack itemStack)
|
public void registerIcons(IconRegister par1IconRegister)
|
||||||
{
|
{
|
||||||
return this.type.getName();
|
this.itemIcon = par1IconRegister.registerIcon(VersionInfo.ModName.toLowerCase() + ":frame" + type.getName());
|
||||||
}
|
}
|
||||||
|
|
||||||
// --------- IHiveFrame functions -----------------------------------------
|
// --------- IHiveFrame functions -----------------------------------------
|
||||||
|
|
||||||
@@ -60,36 +66,43 @@ public class ItemMagicHiveFrame extends Item implements IHiveFrame
|
|||||||
int damage = wear;
|
int damage = wear;
|
||||||
int fluxMod = 1;
|
int fluxMod = 1;
|
||||||
|
|
||||||
// This throttles back the amount of aura consumed by the frame by storing a smidge of data on the item stack.
|
if (ThaumcraftHelper.isActive())
|
||||||
if (this.type.auraPerUse > 0)
|
|
||||||
{
|
{
|
||||||
NBTTagCompound tag;
|
// This throttles back the amount of aura consumed by the frame by storing a smidge of data on the item stack.
|
||||||
if (frame.hasTagCompound())
|
if (this.type.auraPerUse > 0)
|
||||||
{
|
{
|
||||||
tag = frame.getTagCompound();
|
NBTTagCompound tag;
|
||||||
}
|
if (frame.hasTagCompound())
|
||||||
else
|
|
||||||
{
|
|
||||||
tag = new NBTTagCompound();
|
|
||||||
tag.setByte("wearTicks", (byte)0);
|
|
||||||
frame.setTagCompound(tag);
|
|
||||||
}
|
|
||||||
|
|
||||||
int wearTicks = tag.getByte("wearTicks") + 1;
|
|
||||||
|
|
||||||
if (wearTicks == this.type.wearTicksPerAura)
|
|
||||||
{
|
|
||||||
// Attempt to use aura for the frame.
|
|
||||||
if (!ThaumcraftApi.decreaseClosestAura(w, x, y, z, this.type.auraPerUse, true))
|
|
||||||
{
|
{
|
||||||
// Insufficient aura, or no nearby node.
|
tag = frame.getTagCompound();
|
||||||
damage = wear + this.type.auraPerUse * this.type.wearTicksPerAura;
|
}
|
||||||
fluxMod = 1 + w.rand.nextInt(this.type.wearTicksPerAura);
|
else
|
||||||
|
{
|
||||||
|
tag = new NBTTagCompound();
|
||||||
|
tag.setByte("wearTicks", (byte)0);
|
||||||
|
frame.setTagCompound(tag);
|
||||||
}
|
}
|
||||||
wearTicks = 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
tag.setByte("wearTicks", (byte)wearTicks);
|
int wearTicks = tag.getByte("wearTicks") + 1;
|
||||||
|
|
||||||
|
if (wearTicks == this.type.wearTicksPerAura)
|
||||||
|
{
|
||||||
|
// Attempt to use aura for the frame.
|
||||||
|
if (!ThaumcraftApi.decreaseClosestAura(w, x, y, z, this.type.auraPerUse, true))
|
||||||
|
{
|
||||||
|
// Insufficient aura, or no nearby node.
|
||||||
|
damage = wear + this.type.auraPerUse * this.type.wearTicksPerAura;
|
||||||
|
fluxMod = 1 + w.rand.nextInt(this.type.wearTicksPerAura);
|
||||||
|
}
|
||||||
|
wearTicks = 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
tag.setByte("wearTicks", (byte)wearTicks);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
damage += 2;
|
||||||
}
|
}
|
||||||
|
|
||||||
frame.setItemDamage(frame.getItemDamage() + damage);
|
frame.setItemDamage(frame.getItemDamage() + damage);
|
||||||
@@ -109,31 +122,31 @@ public class ItemMagicHiveFrame extends Item implements IHiveFrame
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public float getTerritoryModifier(IBeeGenome genome)
|
public float getTerritoryModifier(IBeeGenome genome, float currentModifier)
|
||||||
{
|
{
|
||||||
return this.type.territoryMod;
|
return this.type.territoryMod;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public float getMutationModifier(IBeeGenome genome, IBeeGenome mate)
|
public float getMutationModifier(IBeeGenome genome, IBeeGenome mate, float currentModifier)
|
||||||
{
|
{
|
||||||
return this.type.mutationMod;
|
return this.type.mutationMod;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public float getLifespanModifier(IBeeGenome genome, IBeeGenome mate)
|
public float getLifespanModifier(IBeeGenome genome, IBeeGenome mate, float currentModifier)
|
||||||
{
|
{
|
||||||
return this.type.lifespanMod;
|
return this.type.lifespanMod;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public float getProductionModifier(IBeeGenome genome)
|
public float getProductionModifier(IBeeGenome genome, float currentModifier)
|
||||||
{
|
{
|
||||||
return this.type.productionMod;
|
return this.type.productionMod;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public float getFloweringModifier(IBeeGenome genome)
|
public float getFloweringModifier(IBeeGenome genome, float currentModifier)
|
||||||
{
|
{
|
||||||
return this.type.floweringMod;
|
return this.type.floweringMod;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -7,17 +7,25 @@ import cpw.mods.fml.relauncher.SideOnly;
|
|||||||
import forestry.api.core.Tabs;
|
import forestry.api.core.Tabs;
|
||||||
import thaumicbees.item.types.ResourceType;
|
import thaumicbees.item.types.ResourceType;
|
||||||
import thaumicbees.main.CommonProxy;
|
import thaumicbees.main.CommonProxy;
|
||||||
|
import thaumicbees.main.ThaumicBees;
|
||||||
|
import thaumicbees.main.utils.TabThaumicBees;
|
||||||
|
import thaumicbees.main.utils.VersionInfo;
|
||||||
|
import thaumicbees.main.utils.compat.ForestryHelper;
|
||||||
|
import net.minecraft.client.renderer.texture.IconRegister;
|
||||||
import net.minecraft.creativetab.CreativeTabs;
|
import net.minecraft.creativetab.CreativeTabs;
|
||||||
import net.minecraft.item.Item;
|
import net.minecraft.item.Item;
|
||||||
import net.minecraft.item.ItemStack;
|
import net.minecraft.item.ItemStack;
|
||||||
|
import net.minecraft.util.Icon;
|
||||||
|
|
||||||
public class ItemMiscResources extends Item
|
public class ItemMiscResources extends Item
|
||||||
{
|
{
|
||||||
|
private Icon[] icons = new Icon[ResourceType.values().length];
|
||||||
|
|
||||||
public ItemMiscResources(int ID)
|
public ItemMiscResources(int ID)
|
||||||
{
|
{
|
||||||
super(ID);
|
super(ID);
|
||||||
this.setTextureFile(CommonProxy.TCBEES_ITEMS_IMAGE);
|
this.setUnlocalizedName("tb.miscResources");
|
||||||
this.setCreativeTab(Tabs.tabApiculture);
|
this.setCreativeTab(TabThaumicBees.tabThaumicBees);
|
||||||
this.setHasSubtypes(true);
|
this.setHasSubtypes(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -44,22 +52,26 @@ public class ItemMiscResources extends Item
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@SideOnly(Side.CLIENT)
|
||||||
|
public void registerIcons(IconRegister par1IconRegister)
|
||||||
|
{
|
||||||
|
for (int i = 0; i < ResourceType.values().length; i++)
|
||||||
|
{
|
||||||
|
this.icons[i] = par1IconRegister.registerIcon(VersionInfo.ModName.toLowerCase() + ":" + ResourceType.values()[i].getName());
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@SideOnly(Side.CLIENT)
|
@SideOnly(Side.CLIENT)
|
||||||
public int getIconFromDamage(int meta)
|
public Icon getIconFromDamage(int meta)
|
||||||
{
|
{
|
||||||
int iconIdx = 0;
|
return icons[meta];
|
||||||
if (meta >= 0 && meta < ResourceType.values().length)
|
|
||||||
{
|
|
||||||
iconIdx = ResourceType.values()[meta].iconIdx;
|
|
||||||
}
|
|
||||||
return iconIdx;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String getItemDisplayName(ItemStack stack)
|
public String getItemDisplayName(ItemStack stack)
|
||||||
{
|
{
|
||||||
return ResourceType.values()[stack.getItemDamage()].getName();
|
return ResourceType.values()[stack.getItemDamage()].getLocalizedName();
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
@@ -0,0 +1,55 @@
|
|||||||
|
package thaumicbees.item;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
import cpw.mods.fml.relauncher.Side;
|
||||||
|
import cpw.mods.fml.relauncher.SideOnly;
|
||||||
|
import thaumicbees.item.types.PollenType;
|
||||||
|
import thaumicbees.main.ThaumicBees;
|
||||||
|
import thaumicbees.main.utils.MoonPhase;
|
||||||
|
import thaumicbees.main.utils.TabThaumicBees;
|
||||||
|
import thaumicbees.main.utils.VersionInfo;
|
||||||
|
import thaumicbees.main.utils.compat.ForestryHelper;
|
||||||
|
import net.minecraft.client.renderer.texture.IconRegister;
|
||||||
|
import net.minecraft.entity.player.EntityPlayer;
|
||||||
|
import net.minecraft.item.Item;
|
||||||
|
import net.minecraft.item.ItemStack;
|
||||||
|
import net.minecraft.server.MinecraftServer;
|
||||||
|
import net.minecraft.util.Icon;
|
||||||
|
|
||||||
|
public class ItemMoonDial extends Item
|
||||||
|
{
|
||||||
|
@SideOnly(Side.CLIENT)
|
||||||
|
private Icon[] icons;
|
||||||
|
|
||||||
|
public ItemMoonDial(int id)
|
||||||
|
{
|
||||||
|
super(id);
|
||||||
|
this.setCreativeTab(TabThaumicBees.tabThaumicBees);
|
||||||
|
this.setUnlocalizedName("moonDial");
|
||||||
|
}
|
||||||
|
|
||||||
|
@SideOnly(Side.CLIENT)
|
||||||
|
public void registerIcons(IconRegister par1IconRegister)
|
||||||
|
{
|
||||||
|
this.icons = new Icon[MoonPhase.values().length];
|
||||||
|
for (int i = 0; i < MoonPhase.values().length; ++i)
|
||||||
|
{
|
||||||
|
this.icons[i] = par1IconRegister.registerIcon(VersionInfo.ModName.toLowerCase() + ":moonDial." + i);
|
||||||
|
}
|
||||||
|
this.itemIcon = this.icons[0];
|
||||||
|
}
|
||||||
|
|
||||||
|
@SideOnly(Side.CLIENT)
|
||||||
|
public void addInformation(ItemStack par1ItemStack, EntityPlayer par2EntityPlayer, List par3List, boolean par4)
|
||||||
|
{
|
||||||
|
par3List.add("\u00A77"
|
||||||
|
+ MoonPhase.getMoonPhaseFromTime(MinecraftServer.getServer().worldServers[0].getWorldTime()).getLocalizedName());
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public Icon getIconFromDamage(int damage)
|
||||||
|
{
|
||||||
|
return this.icons[MoonPhase.getMoonPhaseFromTime(MinecraftServer.getServer().worldServers[0].getWorldTime()).ordinal()];
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,79 @@
|
|||||||
|
package thaumicbees.item;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
import cpw.mods.fml.relauncher.Side;
|
||||||
|
import cpw.mods.fml.relauncher.SideOnly;
|
||||||
|
import thaumcraft.api.EnumTag;
|
||||||
|
import thaumicbees.item.types.NuggetType;
|
||||||
|
import thaumicbees.item.types.PollenType;
|
||||||
|
import thaumicbees.item.types.ResourceType;
|
||||||
|
import thaumicbees.main.CommonProxy;
|
||||||
|
import thaumicbees.main.utils.VersionInfo;
|
||||||
|
import net.minecraft.client.renderer.texture.IconRegister;
|
||||||
|
import net.minecraft.creativetab.CreativeTabs;
|
||||||
|
import net.minecraft.item.Item;
|
||||||
|
import net.minecraft.item.ItemStack;
|
||||||
|
import net.minecraft.util.Icon;
|
||||||
|
|
||||||
|
public class ItemNugget extends Item
|
||||||
|
{
|
||||||
|
@SideOnly(Side.CLIENT)
|
||||||
|
private Icon[] icons;
|
||||||
|
|
||||||
|
public ItemNugget(int itemID)
|
||||||
|
{
|
||||||
|
super(itemID);
|
||||||
|
this.setCreativeTab(CreativeTabs.tabMaterials);
|
||||||
|
this.setHasSubtypes(true);
|
||||||
|
this.setUnlocalizedName("beeNugget");
|
||||||
|
}
|
||||||
|
|
||||||
|
public ItemStack getStackForType(NuggetType type)
|
||||||
|
{
|
||||||
|
return new ItemStack(this, 1, type.ordinal());
|
||||||
|
}
|
||||||
|
|
||||||
|
public ItemStack getStackForType(NuggetType type, int count)
|
||||||
|
{
|
||||||
|
return new ItemStack(this, count, type.ordinal());
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
@SideOnly(Side.CLIENT)
|
||||||
|
public void getSubItems(int par1, CreativeTabs tab, List list)
|
||||||
|
{
|
||||||
|
for (NuggetType type : NuggetType.values())
|
||||||
|
{
|
||||||
|
if (type.isActive())
|
||||||
|
{
|
||||||
|
list.add(new ItemStack(this.itemID, 1, type.ordinal()));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@SideOnly(Side.CLIENT)
|
||||||
|
public void registerIcons(IconRegister par1IconRegister)
|
||||||
|
{
|
||||||
|
this.icons = new Icon[NuggetType.values().length];
|
||||||
|
for (int i = 0; i < NuggetType.values().length; i++)
|
||||||
|
{
|
||||||
|
this.icons[i] = par1IconRegister.registerIcon(VersionInfo.ModName.toLowerCase() + ":nugget"
|
||||||
|
+ NuggetType.values()[i].name().substring(0, 1)
|
||||||
|
+ NuggetType.values()[i].name().substring(1).toLowerCase());
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
@SideOnly(Side.CLIENT)
|
||||||
|
public Icon getIconFromDamage(int meta)
|
||||||
|
{
|
||||||
|
return icons[meta];
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String getItemDisplayName(ItemStack stack)
|
||||||
|
{
|
||||||
|
return NuggetType.values()[stack.getItemDamage()].getName();
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -5,19 +5,21 @@ import java.util.List;
|
|||||||
import thaumicbees.item.types.PollenType;
|
import thaumicbees.item.types.PollenType;
|
||||||
import thaumicbees.main.CommonProxy;
|
import thaumicbees.main.CommonProxy;
|
||||||
import thaumicbees.main.ThaumicBees;
|
import thaumicbees.main.ThaumicBees;
|
||||||
|
import thaumicbees.main.utils.compat.ForestryHelper;
|
||||||
import cpw.mods.fml.relauncher.Side;
|
import cpw.mods.fml.relauncher.Side;
|
||||||
import cpw.mods.fml.relauncher.SideOnly;
|
import cpw.mods.fml.relauncher.SideOnly;
|
||||||
import forestry.api.core.Tabs;
|
import forestry.api.core.Tabs;
|
||||||
|
import net.minecraft.client.renderer.texture.IconRegister;
|
||||||
import net.minecraft.creativetab.CreativeTabs;
|
import net.minecraft.creativetab.CreativeTabs;
|
||||||
import net.minecraft.item.Item;
|
import net.minecraft.item.Item;
|
||||||
import net.minecraft.item.ItemStack;
|
import net.minecraft.item.ItemStack;
|
||||||
|
import net.minecraft.util.Icon;
|
||||||
|
|
||||||
public class ItemPollen extends Item
|
public class ItemPollen extends Item
|
||||||
{
|
{
|
||||||
public ItemPollen(int itemID)
|
public ItemPollen(int itemID)
|
||||||
{
|
{
|
||||||
super(itemID);
|
super(itemID);
|
||||||
this.setTextureFile(CommonProxy.FORESTRY_GFX_ITEMS);
|
|
||||||
this.setCreativeTab(Tabs.tabApiculture);
|
this.setCreativeTab(Tabs.tabApiculture);
|
||||||
this.setHasSubtypes(true);
|
this.setHasSubtypes(true);
|
||||||
}
|
}
|
||||||
@@ -54,16 +56,20 @@ public class ItemPollen extends Item
|
|||||||
return 2;
|
return 2;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@SideOnly(Side.CLIENT)
|
||||||
|
private Icon secondIcon;
|
||||||
|
|
||||||
|
@SideOnly(Side.CLIENT)
|
||||||
|
public void registerIcons(IconRegister par1IconRegister)
|
||||||
|
{
|
||||||
|
this.itemIcon = par1IconRegister.registerIcon(ForestryHelper.Name.toLowerCase() + ":pollen.0");
|
||||||
|
this.secondIcon= par1IconRegister.registerIcon(ForestryHelper.Name.toLowerCase() + ":pollen.1");
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public int getIconIndex(ItemStack stack, int pass)
|
public Icon getIcon(ItemStack stack, int pass)
|
||||||
{
|
{
|
||||||
int idx = 45;
|
return (pass == 0) ? this.itemIcon : this.secondIcon;
|
||||||
// 45, 46 are the base forestry pollen textures.
|
|
||||||
if (pass >= 1)
|
|
||||||
{
|
|
||||||
idx = 46;
|
|
||||||
}
|
|
||||||
return idx;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@@ -71,11 +77,11 @@ public class ItemPollen extends Item
|
|||||||
public int getColorFromItemStack(ItemStack stack, int pass)
|
public int getColorFromItemStack(ItemStack stack, int pass)
|
||||||
{
|
{
|
||||||
int meta = Math.max(0, Math.min(PollenType.values().length - 1, stack.getItemDamage()));
|
int meta = Math.max(0, Math.min(PollenType.values().length - 1, stack.getItemDamage()));
|
||||||
int colour = PollenType.values()[meta].combColour[0];
|
int colour = PollenType.values()[meta].colour[0];
|
||||||
|
|
||||||
if (pass >= 1)
|
if (pass >= 1)
|
||||||
{
|
{
|
||||||
colour = PollenType.values()[meta].combColour[1];
|
colour = PollenType.values()[meta].colour[1];
|
||||||
}
|
}
|
||||||
|
|
||||||
return colour;
|
return colour;
|
||||||
|
|||||||
@@ -4,21 +4,22 @@ import java.util.List;
|
|||||||
|
|
||||||
import thaumicbees.item.types.PropolisType;
|
import thaumicbees.item.types.PropolisType;
|
||||||
import thaumicbees.main.CommonProxy;
|
import thaumicbees.main.CommonProxy;
|
||||||
|
import thaumicbees.main.utils.compat.ForestryHelper;
|
||||||
import cpw.mods.fml.relauncher.Side;
|
import cpw.mods.fml.relauncher.Side;
|
||||||
import cpw.mods.fml.relauncher.SideOnly;
|
import cpw.mods.fml.relauncher.SideOnly;
|
||||||
import forestry.api.core.Tabs;
|
import forestry.api.core.Tabs;
|
||||||
|
import net.minecraft.client.renderer.texture.IconRegister;
|
||||||
import net.minecraft.creativetab.CreativeTabs;
|
import net.minecraft.creativetab.CreativeTabs;
|
||||||
import net.minecraft.item.Item;
|
import net.minecraft.item.Item;
|
||||||
import net.minecraft.item.ItemStack;
|
import net.minecraft.item.ItemStack;
|
||||||
|
import net.minecraft.util.Icon;
|
||||||
|
|
||||||
public class ItemPropolis extends Item
|
public class ItemPropolis extends Item
|
||||||
{
|
{
|
||||||
public ItemPropolis(int id)
|
public ItemPropolis(int id)
|
||||||
{
|
{
|
||||||
super(id);
|
super(id);
|
||||||
this.setTextureFile(CommonProxy.FORESTRY_GFX_ITEMS);
|
|
||||||
this.setCreativeTab(Tabs.tabApiculture);
|
this.setCreativeTab(Tabs.tabApiculture);
|
||||||
this.setIconIndex(98);
|
|
||||||
this.setHasSubtypes(true);
|
this.setHasSubtypes(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -42,6 +43,12 @@ public class ItemPropolis extends Item
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@SideOnly(Side.CLIENT)
|
||||||
|
public void registerIcons(IconRegister par1IconRegister)
|
||||||
|
{
|
||||||
|
this.itemIcon = par1IconRegister.registerIcon(ForestryHelper.Name.toLowerCase() + ":propolis.0");
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public int getColorFromItemStack(ItemStack stack, int pass)
|
public int getColorFromItemStack(ItemStack stack, int pass)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -9,6 +9,7 @@ import forestry.api.arboriculture.IToolGrafter;
|
|||||||
import net.minecraft.block.Block;
|
import net.minecraft.block.Block;
|
||||||
import net.minecraft.entity.Entity;
|
import net.minecraft.entity.Entity;
|
||||||
import net.minecraft.entity.EntityLiving;
|
import net.minecraft.entity.EntityLiving;
|
||||||
|
import net.minecraft.entity.player.EntityPlayer;
|
||||||
import net.minecraft.item.Item;
|
import net.minecraft.item.Item;
|
||||||
import net.minecraft.item.ItemStack;
|
import net.minecraft.item.ItemStack;
|
||||||
import net.minecraft.world.World;
|
import net.minecraft.world.World;
|
||||||
@@ -16,15 +17,13 @@ import net.minecraftforge.common.ForgeHooks;
|
|||||||
|
|
||||||
public class ItemThaumiumGrafter extends Item implements IVisRepairable, IToolGrafter
|
public class ItemThaumiumGrafter extends Item implements IVisRepairable, IToolGrafter
|
||||||
{
|
{
|
||||||
|
|
||||||
public ItemThaumiumGrafter(int id)
|
public ItemThaumiumGrafter(int id)
|
||||||
{
|
{
|
||||||
super(id);
|
super(id);
|
||||||
|
this.setMaxStackSize(1);
|
||||||
|
this.setMaxDamage(15);
|
||||||
|
this.setUnlocalizedName("thaumicbees:thaumiumGrafter");
|
||||||
this.setCreativeTab(forestry.api.core.Tabs.tabArboriculture);
|
this.setCreativeTab(forestry.api.core.Tabs.tabArboriculture);
|
||||||
this.setMaxDamage(25);
|
|
||||||
this.setTextureFile(CommonProxy.TCBEES_ITEMS_IMAGE);
|
|
||||||
this.setIconIndex(21);
|
|
||||||
this.setItemName("tb.thaumiumGrafter");
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@@ -47,7 +46,22 @@ public class ItemThaumiumGrafter extends Item implements IVisRepairable, IToolGr
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean onBlockDestroyed(ItemStack itemstack, World world, int id, int x, int y, int z, EntityLiving entityliving) {
|
public boolean onBlockDestroyed(ItemStack itemstack, World world, int id, int x, int y, int z, EntityLiving entityliving) {
|
||||||
itemstack.damageItem(1, entityliving);
|
int damage = 1;
|
||||||
|
if (id == Config.tcLeaf.blockID)
|
||||||
|
{
|
||||||
|
Block block = Block.blocksList[id];
|
||||||
|
int meta = world.getBlockMetadata(x, y, z) & 1;
|
||||||
|
block.dropBlockAsItemWithChance(world, x, y, z, meta, 0, 0);
|
||||||
|
if (meta == ThaumcraftHelper.TreeType.GREATWOOD.ordinal())
|
||||||
|
{
|
||||||
|
damage = 2;
|
||||||
|
}
|
||||||
|
else if (meta == ThaumcraftHelper.TreeType.SILVERWOOD.ordinal())
|
||||||
|
{
|
||||||
|
damage = 4;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
itemstack.damageItem(damage, entityliving);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -80,8 +94,13 @@ public class ItemThaumiumGrafter extends Item implements IVisRepairable, IToolGr
|
|||||||
{
|
{
|
||||||
if (stack.getItemDamage() > 0)
|
if (stack.getItemDamage() > 0)
|
||||||
{
|
{
|
||||||
if (ThaumcraftApi.decreaseClosestAura(e.worldObj, e.posX, e.posY, e.posZ, 1, true))
|
if (ThaumcraftApi.decreaseClosestAura(e.worldObj, e.posX, e.posY, e.posZ, 2, true))
|
||||||
{
|
{
|
||||||
|
if (e instanceof EntityPlayer)
|
||||||
|
{
|
||||||
|
EntityPlayer p = (EntityPlayer)e;
|
||||||
|
p.addExhaustion(0.19f);
|
||||||
|
}
|
||||||
stack.damageItem(-1, (EntityLiving)e);
|
stack.damageItem(-1, (EntityLiving)e);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -19,9 +19,7 @@ public class ItemThaumiumScoop extends Item implements IVisRepairable
|
|||||||
super(itemID);
|
super(itemID);
|
||||||
this.setMaxStackSize(1);
|
this.setMaxStackSize(1);
|
||||||
this.setMaxDamage(30);
|
this.setMaxDamage(30);
|
||||||
this.setIconIndex(20);
|
this.setUnlocalizedName("thaumicbees:thaumiumScoop");
|
||||||
this.setTextureFile(CommonProxy.TCBEES_ITEMS_IMAGE);
|
|
||||||
this.setItemName("tb.thaumiumScoop");
|
|
||||||
this.setCreativeTab(forestry.api.core.Tabs.tabApiculture);
|
this.setCreativeTab(forestry.api.core.Tabs.tabApiculture);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -2,22 +2,28 @@ package thaumicbees.item;
|
|||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
|
import thaumicbees.item.types.ResourceType;
|
||||||
import thaumicbees.item.types.WaxType;
|
import thaumicbees.item.types.WaxType;
|
||||||
import thaumicbees.main.CommonProxy;
|
import thaumicbees.main.CommonProxy;
|
||||||
import thaumicbees.main.ThaumicBees;
|
import thaumicbees.main.ThaumicBees;
|
||||||
|
import thaumicbees.main.utils.VersionInfo;
|
||||||
import cpw.mods.fml.relauncher.Side;
|
import cpw.mods.fml.relauncher.Side;
|
||||||
import cpw.mods.fml.relauncher.SideOnly;
|
import cpw.mods.fml.relauncher.SideOnly;
|
||||||
import forestry.api.core.Tabs;
|
import forestry.api.core.Tabs;
|
||||||
|
import net.minecraft.client.renderer.texture.IconRegister;
|
||||||
import net.minecraft.creativetab.CreativeTabs;
|
import net.minecraft.creativetab.CreativeTabs;
|
||||||
import net.minecraft.item.Item;
|
import net.minecraft.item.Item;
|
||||||
import net.minecraft.item.ItemStack;
|
import net.minecraft.item.ItemStack;
|
||||||
|
import net.minecraft.util.Icon;
|
||||||
|
|
||||||
public class ItemWax extends Item
|
public class ItemWax extends Item
|
||||||
{
|
{
|
||||||
|
@SideOnly(Side.CLIENT)
|
||||||
|
private Icon secondaryIcon;
|
||||||
|
|
||||||
public ItemWax(int itemID)
|
public ItemWax(int itemID)
|
||||||
{
|
{
|
||||||
super(itemID);
|
super(itemID);
|
||||||
this.setTextureFile(CommonProxy.TCBEES_ITEMS_IMAGE);
|
|
||||||
this.setCreativeTab(Tabs.tabApiculture);
|
this.setCreativeTab(Tabs.tabApiculture);
|
||||||
this.setHasSubtypes(true);
|
this.setHasSubtypes(true);
|
||||||
}
|
}
|
||||||
@@ -32,16 +38,18 @@ public class ItemWax extends Item
|
|||||||
return new ItemStack(this, count, type.ordinal());
|
return new ItemStack(this, count, type.ordinal());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@SideOnly(Side.CLIENT)
|
||||||
|
public void registerIcons(IconRegister par1IconRegister)
|
||||||
|
{
|
||||||
|
this.itemIcon = par1IconRegister.registerIcon(VersionInfo.ModName.toLowerCase() + ":wax.0");
|
||||||
|
this.secondaryIcon = par1IconRegister.registerIcon(VersionInfo.ModName.toLowerCase() + ":wax.1");
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public int getIconIndex(ItemStack stack, int pass)
|
@SideOnly(Side.CLIENT)
|
||||||
|
public Icon getIconFromDamage(int meta)
|
||||||
{
|
{
|
||||||
int idx = 1;
|
return (WaxType.values()[meta].sparkly) ? this.secondaryIcon : this.itemIcon;
|
||||||
int meta = stack.getItemDamage();
|
|
||||||
if (meta >= 0 && meta < WaxType.values().length)
|
|
||||||
{
|
|
||||||
idx = (WaxType.values()[meta].sparkly) ? 0 : 1;
|
|
||||||
}
|
|
||||||
return idx;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|||||||
@@ -20,6 +20,11 @@ public enum CapsuleType
|
|||||||
}
|
}
|
||||||
|
|
||||||
public String getName()
|
public String getName()
|
||||||
|
{
|
||||||
|
return this.name;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getLocalizedName()
|
||||||
{
|
{
|
||||||
return LocalizationManager.getLocalizedString("tb.capsule." + name);
|
return LocalizationManager.getLocalizedString("tb.capsule." + name);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -5,17 +5,18 @@ import cpw.mods.fml.common.registry.LanguageRegistry;
|
|||||||
|
|
||||||
public enum CombType
|
public enum CombType
|
||||||
{
|
{
|
||||||
OCCULT("occult", 0x6e1c6d, 0xff8fff, true),
|
OCCULT("occult", 0xff8fff, 0x6e1c6d, true),
|
||||||
OTHERWORLDLY("otherworldly", 0x000056, 0x765cc1, true),
|
OTHERWORLDLY("otherworldly",0x765cc1, 0x000056, true),
|
||||||
PAPERY("paper", 0x503900, 0xbd9a30, true),
|
PAPERY("paper", 0xbd9a30, 0x503900, true),
|
||||||
STARK("stark", 0xB0B0BC, 0x6e6e79, false),
|
STARK("stark", 0x6e6e79, 0xB0B0BC, false),
|
||||||
AIRY("air", 0xffff7e, 0x717600, false),
|
AIRY("air", 0x717600, 0xffff7e, false),
|
||||||
FIREY("fire", 0xff3C01, 0x740002, false),
|
FIREY("fire", 0x740002, 0xff3C01, false),
|
||||||
WATERY("water", 0x0090ff, 0x00308c, false),
|
WATERY("water", 0x00308c, 0x0090ff, false),
|
||||||
EARTHY("earth", 0x00a000, 0x005100, false),
|
EARTHY("earth", 0x005100, 0x00a000, false),
|
||||||
INFUSED("magic", 0xaa32fc, 0x7A489E, false),
|
INFUSED("magic", 0x7A489E, 0xaa32fc, false),
|
||||||
INTELLECT("aware", 0x618fff, 0xb0092e9, false),
|
INTELLECT("aware", 0xb0092e9, 0x618fff, false),
|
||||||
SKULKING("furtive", 0x545454, 0xcda6cd, true),
|
SKULKING("furtive", 0xcda6cd, 0x545454, true),
|
||||||
|
SOUL("soul", 0x8A4500, 0x3C1E00, true),
|
||||||
;
|
;
|
||||||
|
|
||||||
private CombType(String pName, int colourA, int colourB, boolean show)
|
private CombType(String pName, int colourA, int colourB, boolean show)
|
||||||
|
|||||||
@@ -7,18 +7,20 @@ import thaumicbees.main.utils.LocalizationManager;
|
|||||||
|
|
||||||
public enum HiveFrameType
|
public enum HiveFrameType
|
||||||
{
|
{
|
||||||
MAGIC("magic", 32, 240, 1f, 1f, 1f, 2f, 2, 5,
|
MAGIC("Magic", 32, 240, 1f, 1f, 1f, 2f, 2, 5,
|
||||||
null),
|
null),
|
||||||
RESILIENT("resillient", 33, 840, 1f, 1f, 1f, 2f, 2, 5,
|
RESILIENT("Resilient", 33, 840, 1f, 1f, 1f, 2f, 2, 5,
|
||||||
new ObjectTags().add(EnumTag.ARMOR, 1)),
|
new ObjectTags().add(EnumTag.ARMOR, 1)),
|
||||||
GENTLE("gentle", 34, 200, 1f, 0.7f, 1.5f, 1.4f, 1, 5,
|
GENTLE("Gentle", 34, 200, 1f, 0.7f, 1.5f, 1.4f, 1, 5,
|
||||||
new ObjectTags().add(EnumTag.HEAL, 1).add(EnumTag.LIFE, 1)),
|
new ObjectTags().add(EnumTag.HEAL, 1).add(EnumTag.LIFE, 1)),
|
||||||
METABOLIC("metabolic", 35, 120, 1f, 1.8f, 1f, 1.2f, 5, 5,
|
METABOLIC("Metabolic", 35, 120, 1f, 1.8f, 1f, 1.2f, 5, 5,
|
||||||
new ObjectTags().add(EnumTag.EXCHANGE, 1).add(EnumTag.MOTION, 1)),
|
new ObjectTags().add(EnumTag.EXCHANGE, 1).add(EnumTag.MOTION, 1)),
|
||||||
NECROTIC("necrotic", 36, 290, 1f, 1f, 0.3f, 0.75f, 1, 5,
|
NECROTIC("Necrotic", 36, 290, 1f, 1f, 0.3f, 0.75f, 1, 5,
|
||||||
new ObjectTags().add(EnumTag.DEATH, 3).add(EnumTag.POISON, 2)),
|
new ObjectTags().add(EnumTag.DEATH, 3).add(EnumTag.POISON, 2)),
|
||||||
TEMPORAL("temporal", 37, 300, 1f, 1f, 2.5f, 1f, 1, 5,
|
TEMPORAL("Temporal", 37, 300, 1f, 1f, 2.5f, 1f, 1, 5,
|
||||||
new ObjectTags().add(EnumTag.TIME, 5)),
|
new ObjectTags().add(EnumTag.TIME, 5)),
|
||||||
|
OBLIVION("Oblivion", 38, 60, 1f, 1f, 0.0001f, 0f, 15, 1,
|
||||||
|
new ObjectTags().add(EnumTag.TIME, 5).add(EnumTag.DEATH, 5)),
|
||||||
;
|
;
|
||||||
|
|
||||||
private HiveFrameType(String name, int icon, int damage,
|
private HiveFrameType(String name, int icon, int damage,
|
||||||
@@ -71,6 +73,11 @@ public enum HiveFrameType
|
|||||||
public int wearTicksPerAura;
|
public int wearTicksPerAura;
|
||||||
|
|
||||||
public String getName()
|
public String getName()
|
||||||
|
{
|
||||||
|
return this.frameName;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getLocalizedName()
|
||||||
{
|
{
|
||||||
return LocalizationManager.getLocalizedString("tb.frame." + this.frameName);
|
return LocalizationManager.getLocalizedString("tb.frame." + this.frameName);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,6 +2,7 @@ package thaumicbees.item.types;
|
|||||||
|
|
||||||
import thaumicbees.main.utils.LocalizationManager;
|
import thaumicbees.main.utils.LocalizationManager;
|
||||||
import cpw.mods.fml.common.registry.LanguageRegistry;
|
import cpw.mods.fml.common.registry.LanguageRegistry;
|
||||||
|
import net.minecraft.util.Icon;
|
||||||
import net.minecraftforge.liquids.LiquidDictionary;
|
import net.minecraftforge.liquids.LiquidDictionary;
|
||||||
|
|
||||||
public enum LiquidType
|
public enum LiquidType
|
||||||
@@ -9,45 +10,45 @@ public enum LiquidType
|
|||||||
// Incidentally, Item meta is the liquid ID.
|
// Incidentally, Item meta is the liquid ID.
|
||||||
|
|
||||||
// Args are: forgeLiquidID, Display Name, Icon idx
|
// Args are: forgeLiquidID, Display Name, Icon idx
|
||||||
EMPTY("", 16),
|
EMPTY(""),
|
||||||
|
|
||||||
// Vanilla
|
// Vanilla
|
||||||
WATER("water", 17),
|
WATER("water"),
|
||||||
LAVA("lava", 18),
|
LAVA("lava"),
|
||||||
|
|
||||||
// Forestry
|
// Forestry
|
||||||
BIOMASS("biomass", 19),
|
BIOMASS("biomass"),
|
||||||
BIOFUEL("biofuel", 20),
|
BIOFUEL("biofuel"),
|
||||||
|
|
||||||
// Buildcraft
|
// Buildcraft
|
||||||
OIL("Oil", 21),
|
OIL("Oil"),
|
||||||
FUEL("Fuel", 22),
|
FUEL("Fuel"),
|
||||||
|
|
||||||
// More Forestry
|
// More Forestry
|
||||||
SEEDOIL("seedoil", 23),
|
SEEDOIL("seedoil"),
|
||||||
HONEY("honey", 24),
|
HONEY("honey"),
|
||||||
JUICE("juice", 25),
|
JUICE("juice"),
|
||||||
CRUSHEDICE("ice", 26),
|
CRUSHEDICE("ice"),
|
||||||
MILK("milk", 27),
|
MILK("milk"),
|
||||||
|
|
||||||
// ExtraBees liquids
|
// ExtraBees liquids
|
||||||
ACID("acid", 28),
|
ACID("acid"),
|
||||||
POISON("poison", 29),
|
POISON("poison"),
|
||||||
LIQUIDNITROGEN("liquidNitrogen", 30),
|
LIQUIDNITROGEN("liquidNitrogen"),
|
||||||
DNA("liquidDNA", 31),
|
DNA("liquidDNA"),
|
||||||
|
|
||||||
// Railcraft
|
// Railcraft
|
||||||
CREOSOTEOIL("Creosote Oil", 32),
|
CREOSOTEOIL("Creosote Oil"),
|
||||||
STEAM("Steam", 33),
|
STEAM("Steam"),
|
||||||
;
|
;
|
||||||
public String liquidID;
|
public String liquidID;
|
||||||
public int iconIdx;
|
public int iconIdx;
|
||||||
public boolean available = false;
|
public boolean available = false;
|
||||||
|
public Icon liquidIcon;
|
||||||
|
|
||||||
private LiquidType(String l, int idx)
|
private LiquidType(String l)
|
||||||
{
|
{
|
||||||
this.liquidID = l;
|
this.liquidID = l;
|
||||||
this.iconIdx = idx;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getDisplayName()
|
public String getDisplayName()
|
||||||
|
|||||||
@@ -0,0 +1,49 @@
|
|||||||
|
package thaumicbees.item.types;
|
||||||
|
|
||||||
|
import net.minecraft.item.Item;
|
||||||
|
import thaumicbees.main.utils.LocalizationManager;
|
||||||
|
|
||||||
|
public enum NuggetType
|
||||||
|
{
|
||||||
|
IRON,
|
||||||
|
COPPER,
|
||||||
|
TIN,
|
||||||
|
SILVER,
|
||||||
|
LEAD,
|
||||||
|
DIAMOND,
|
||||||
|
EMERALD,
|
||||||
|
;
|
||||||
|
|
||||||
|
private Item targetIngot;
|
||||||
|
private boolean active;
|
||||||
|
|
||||||
|
private NuggetType()
|
||||||
|
{
|
||||||
|
this.active = true;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setIngotItem(Item target)
|
||||||
|
{
|
||||||
|
this.targetIngot = target;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Item getIngotItem()
|
||||||
|
{
|
||||||
|
return this.targetIngot;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setActive(boolean b)
|
||||||
|
{
|
||||||
|
this.active = b;
|
||||||
|
}
|
||||||
|
|
||||||
|
public boolean isActive()
|
||||||
|
{
|
||||||
|
return this.active;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getName()
|
||||||
|
{
|
||||||
|
return LocalizationManager.getLocalizedString("tb.nugget." + this.toString().toLowerCase());
|
||||||
|
}
|
||||||
|
}
|
||||||