Compare commits

..
14 Commits
Author SHA1 Message Date
MysteriousAges 5f9b122d77 Some polishing, registering all the items with Forge because RG asked for it. *worry* 2013-05-13 13:11:34 -07:00
MysteriousAges 71d203bffc Version++ 2013-05-06 00:24:52 -07:00
MysteriousAges 092c076dba Work on the Effect jar, which is finally done! \o/ 2013-05-06 00:24:06 -07:00
MysteriousAges ebb8298c9d Merge branch 'master' into EffectJar
Conflicts:
	thaumicbees_src/thaumicbees/main/Config.java
	thaumicbees_src/thaumicbees/main/ThaumicBees.java
2013-05-01 12:06:48 -07:00
MysteriousAges ab2f6a64d5 Bee mutation swapping around. 2013-05-01 12:02:26 -07:00
MysteriousAges 62b7d28020 Adding Apatite bees.
Mutation class supports block requirements beneath the apiary. Can use blockId/blockId & meta/ore dictionary entry.
Added Ars Magica recipe for Concentrated compound.
2013-04-28 22:11:56 -07:00
MysteriousAges e5ae2527a9 Many Ars Magica bees! 2013-04-25 20:38:45 -07:00
MysteriousAges aca8b2dcb1 Fixing some texture misses, eliminating dead/useless code that throws errors and dead/useless code that does not throw errors
Starting Ars Magica integration.
New Skulking family sprite. Enjoy nightmares.
2013-04-24 15:43:23 -07:00
MysteriousAges 88ec668999 *tableflip* 2013-04-22 16:03:27 -07:00
MysteriousAges 9729d75252 Work on Effect jar;
Fixing TC3 integration on 1.5
2013-04-21 15:38:52 -07:00
MysteriousAges fc2f40d100 Fixing caps on Fuel.png & Oil.png 2013-04-19 12:10:29 -07:00
MysteriousAges ce0424b468 Fixing caps on "fuel.png" & "oil.png" 2013-04-19 12:10:07 -07:00
MysteriousAges 940846d069 ++ version 2013-04-15 02:28:45 -07:00
MysteriousAges b2d18fbb64 Moon dial
Creative tab
2013-04-15 02:27:33 -07:00
90 changed files with 3091 additions and 619 deletions

No files matched your search

Binary file not shown.
+4 -4
View File
@@ -16,8 +16,8 @@
<property name="clientsrc.dir" value="${mcp.dir}/src/minecraft" /> <property name="clientsrc.dir" value="${mcp.dir}/src/minecraft" />
<property name="mc.version" value="1.5.1"/> <property name="mc.version" value="1.5.1"/>
<property name="forge.version" value="7.7.1.651"/> <property name="forge.version" value="7.7.1.661"/>
<property name="thaumicbees.version" value="1.4.4b"/> <property name="thaumicbees.version" value="1.4.7"/>
<!-- 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" />
@@ -123,9 +123,9 @@
<include name="**/thaumicbees/**" /> <include name="**/thaumicbees/**" />
<include name="**/net/mysteriousages/**" /> <include name="**/net/mysteriousages/**" />
<include name="**/thaumcraft/api/IVisRepairable.class" /> <!--<include name="**/thaumcraft/api/IVisRepairable.class" />
<include name="**/thaumcraft/api/EnumTag.class" /> <include name="**/thaumcraft/api/EnumTag.class" />
<include name="**/thaumcraft/api/ObjectTags.class" /> <include name="**/thaumcraft/api/ObjectTags.class" /> -->
</fileset> </fileset>
</copy> </copy>
+21
View File
@@ -1,3 +1,24 @@
Added the Bee Collector's Jar.
Created an alternate recipe for the Temporal Frame that is always active.
Adjusted TC3 alternate recipe for the Temporal Frame.
Fixed an issue with the "Pick Block" function on the Greatwood & Silverwood planks. Should also stop NEI from providing incorrect block info on them.
Fixed the Node flower growing flowers.
Adding Apatite bees.
1.4.6
Ars Magica integration! 13 new bee species to help you research & cast spells.
Changing mutations around, because I'm still not happy with them. (Again.)
Many icon & texture fixes. (derp!)
1.4.5a
Repaired Thaumcraft 3 integration for 3.0.4a.
Fixed Biofuel capsules being shown as "Empty x Capsule"
Fixed missing texture for oil & fuel capsules
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 1.4.4b
Ported to 1.5! Wooo! Ported to 1.5! Wooo!
+113 -60
View File
@@ -5,12 +5,16 @@
<entry key="item.thaumicbees:jellyBabies.name">Handful of Jelly Babies</entry> <entry key="item.thaumicbees:jellyBabies.name">Handful of Jelly Babies</entry>
<entry key="item.thaumicbees:thaumiumScoop.name">Thaumium Scoop</entry> <entry key="item.thaumicbees:thaumiumScoop.name">Thaumium Scoop</entry>
<entry key="item.thaumicbees:thaumiumGrafter.name">Thaumium Grafter</entry> <entry key="item.thaumicbees:thaumiumGrafter.name">Thaumium Grafter</entry>
<!-- Specially handled Item names -->
<entry key="item.tb.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>
<entry key="tile.tb.slab.wood.greatwood.name">Greatwood Slab</entry> <entry key="tile.tb.slab.wood.greatwood.name">Greatwood Slab</entry>
<entry key="tile.tb.planks.silverwood.name">Silverwood Planks</entry> <entry key="tile.tb.planks.silverwood.name">Silverwood Planks</entry>
<entry key="tile.tb.slab.wood.silverwood.name">Silverwood Slab</entry> <entry key="tile.tb.slab.wood.silverwood.name">Silverwood Slab</entry>
<entry key="tile.tb.effectJar.name">Bee Collector's Jar</entry>
<!-- Comb names --> <!-- Comb names -->
<entry key="tb.comb.occult">Occult Comb</entry> <entry key="tb.comb.occult">Occult Comb</entry>
@@ -25,6 +29,8 @@
<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> <entry key="tb.comb.soul">Soul Comb</entry>
<entry key="tb.comb.essence">Essence Comb</entry>
<entry key="tb.comb.potent">Potent Comb</entry>
<!-- Wax names --> <!-- Wax names -->
<entry key="tb.wax.magic">Magic Wax</entry> <entry key="tb.wax.magic">Magic Wax</entry>
@@ -40,12 +46,14 @@
<!-- Nugget names --> <!-- Nugget names -->
<entry key="tb.nugget.iron">Iron Nugget</entry> <entry key="tb.nugget.iron">Iron Nugget</entry>
<entry key="tb.nugget.steel">Steel Nugget</entry>
<entry key="tb.nugget.copper">Copper Nugget</entry> <entry key="tb.nugget.copper">Copper Nugget</entry>
<entry key="tb.nugget.tin">Tin Nugget</entry> <entry key="tb.nugget.tin">Tin Nugget</entry>
<entry key="tb.nugget.silver">Silver Nugget</entry> <entry key="tb.nugget.silver">Silver Nugget</entry>
<entry key="tb.nugget.lead">Lead Nugget</entry> <entry key="tb.nugget.lead">Lead Nugget</entry>
<entry key="tb.nugget.diamond">Diamond Nugget</entry> <entry key="tb.nugget.diamond">Diamond Shard</entry>
<entry key="tb.nugget.emerald">Emerald Nugget</entry> <entry key="tb.nugget.emerald">Emerald Shard</entry>
<entry key="tb.nugget.apatite">Apatite Shard</entry>
<!-- Propolis names --> <!-- Propolis names -->
<entry key="tb.propolis.dull">Dull Propolis</entry> <entry key="tb.propolis.dull">Dull Propolis</entry>
@@ -61,7 +69,7 @@
<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.startNode">Bees and Magic</entry>
<entry key="tb.resource.beeEnchant">Stark Infusion</entry> <entry key="tb.resource.beeEnchant">Stark Infusion</entry>
<entry key="tb.resource.crystalFlux">Crystalized %s Aspect</entry> <entry key="tb.resource.crystalAspect">Crystalized %s Aspect</entry>
<!-- Frames --> <!-- Frames -->
<entry key="item.frameMagic.name">Magic Frame</entry> <entry key="item.frameMagic.name">Magic Frame</entry>
@@ -81,7 +89,7 @@
<entry key="tb.liquid.water">Water</entry> <entry key="tb.liquid.water">Water</entry>
<entry key="tb.liquid.lava">Lava</entry> <entry key="tb.liquid.lava">Lava</entry>
<entry key="tb.liquid.biomass">Biomass</entry> <entry key="tb.liquid.biomass">Biomass</entry>
<entry key="tb.liquid.biofuel">Empty</entry> <entry key="tb.liquid.biofuel">Biofuel</entry>
<entry key="tb.liquid.Oil">Oil</entry> <entry key="tb.liquid.Oil">Oil</entry>
<entry key="tb.liquid.Fuel">Fuel</entry> <entry key="tb.liquid.Fuel">Fuel</entry>
<entry key="tb.liquid.seedoil">Seed Oil</entry> <entry key="tb.liquid.seedoil">Seed Oil</entry>
@@ -99,7 +107,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>
@@ -108,6 +116,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>
@@ -123,11 +132,7 @@
<entry key="thaumicbees.speciesSupernatural">Supernatural</entry> <entry key="thaumicbees.speciesSupernatural">Supernatural</entry>
<entry key="thaumicbees.speciesSupernatural.description">These bees walk the line between this world and the unseen.|Apinomicon</entry> <entry key="thaumicbees.speciesSupernatural.description">These bees walk the line between this world and the unseen.|Apinomicon</entry>
<entry key="thaumicbees.speciesPupil">Pupil</entry> <entry key="thaumicbees.speciesPupil">Pupil</entry>
<entry key="thaumicbees.speciesPupil.description">"What does that bee want with my paper?!|Yorae, Librarian</entry> <entry key="thaumicbees.speciesPupil.description">"What does that bee want with my paper?!"|Yorae, Librarian</entry>
<entry key="thaumicbees.speciesScholarly">Scholarly</entry>
<entry key="thaumicbees.speciesScholarly.description">"I can't be sure, but I think they might be smarter than me..."|Yorae, Librarian</entry>
<entry key="thaumicbees.speciesSavant">Savant</entry>
<entry key="thaumicbees.speciesSavant.description">lim(x^(i / pi)/ log(e * 7 - ln(32/x^-pi))). Solve for honey.|Note found on Yorae's desk</entry>
<entry key="thaumicbees.speciesStark">Stark</entry> <entry key="thaumicbees.speciesStark">Stark</entry>
<entry key="thaumicbees.speciesStark.description">"These are unusually attracted to shards. This warrents further investigation."|Azanor, Master Thaumaturge</entry> <entry key="thaumicbees.speciesStark.description">"These are unusually attracted to shards. This warrents further investigation."|Azanor, Master Thaumaturge</entry>
<entry key="thaumicbees.speciesAura">Aura</entry> <entry key="thaumicbees.speciesAura">Aura</entry>
@@ -138,10 +143,49 @@
<entry key="thaumicbees.speciesAqua.description">"I tried to breed them once, but that was a wash."|MysteriousAges, Apprentice Thaumaturge</entry> <entry key="thaumicbees.speciesAqua.description">"I tried to breed them once, but that was a wash."|MysteriousAges, Apprentice Thaumaturge</entry>
<entry key="thaumicbees.speciesSolum">Solum</entry> <entry key="thaumicbees.speciesSolum">Solum</entry>
<entry key="thaumicbees.speciesSolum.description">"You're really gonna dig these bees, but watch out - they bore quite easily."|MysteriousAges, Apprentice Comedian</entry> <entry key="thaumicbees.speciesSolum.description">"You're really gonna dig these bees, but watch out - they bore quite easily."|MysteriousAges, Apprentice Comedian</entry>
<entry key="thaumicbees.speciesPraecantatio">Praecantatio</entry>
<entry key="thaumicbees.speciesPraecantatio.description">Beekeeping is magic!|Apinomicon, Preface</entry>
<entry key="thaumicbees.speciesAware">Aware</entry> <entry key="thaumicbees.speciesAware">Aware</entry>
<entry key="thaumicbees.speciesAware.description">"They can see into your soul!"|Florastar, Expert Beekeeper</entry> <entry key="thaumicbees.speciesAware.description">"They can see into your soul!"|Florastar, Expert Beekeeper</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.speciesGhastly">Ghastly</entry>
<entry key="thaumicbees.speciesGhastly.description">"*sigh*... Really, Myst?"|Taveria, irritated Apiarist</entry>
<entry key="thaumicbees.speciesSpidery">Spidery</entry>
<entry key="thaumicbees.speciesSpidery.description">Spiderbee; n. Does whatever a spider-bee does.|Unknown</entry>
<entry key="thaumicbees.speciesTimely">Timely</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.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.description">"Would you like a Jelly Baby?"|Passing stranger with a great scarf and a blue box</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">Ferrous</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">Auric</entry>
<entry key="thaumicbees.speciesGold.description">Not all that glitters is gold.|Ancient Aphorism</entry>
<entry key="thaumicbees.speciesCopper">Cuprum</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">Stannum</entry>
<entry key="thaumicbees.speciesTin.description">While metalic, these bees are suprisingly fragile.|Apinomicon</entry>
<entry key="thaumicbees.speciesSilver">Argentum</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">Plumbum</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">Diamandi</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">Esmeraldi</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.speciesApatite">Apatine</entry>
<entry key="thaumicbees.speciesApatite.description">Day and night the whining droned on. I barricaded the windows and hid in the cellar, but everywhere the high-pitched noise of the apatine bees penetrated the walls and drove me to distraction.|Beekeeping 101</entry>
<entry key="thaumicbees.speciesScholarly">Scholarly</entry>
<entry key="thaumicbees.speciesScholarly.description">"I can't be sure, but I think they might be smarter than me..."|Yorae, Librarian</entry>
<entry key="thaumicbees.speciesSavant">Savant</entry>
<entry key="thaumicbees.speciesSavant.description">lim(x^(i / pi)/ log(e * 7 - ln(32/x^-pi))). Solve for honey.|Note found on Yorae's desk</entry>
<entry key="thaumicbees.speciesPraecantatio">Praecantatio</entry>
<entry key="thaumicbees.speciesPraecantatio.description">Beekeeping is magic!|Apinomicon, Preface</entry>
<entry key="thaumicbees.speciesVis">Vis</entry> <entry key="thaumicbees.speciesVis">Vis</entry>
<entry key="thaumicbees.speciesVis.description">"They can feel changes in the aura, but are not yet able to affect it."|Azanor, research notes</entry> <entry key="thaumicbees.speciesVis.description">"They can feel changes in the aura, but are not yet able to affect it."|Azanor, research notes</entry>
<entry key="thaumicbees.speciesPure">Pure</entry> <entry key="thaumicbees.speciesPure">Pure</entry>
@@ -152,8 +196,6 @@
<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">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.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.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>
<entry key="thaumicbees.speciesBrainy.description">Their combs may be fetid and foul-smelling, but their intelligence is well-developed.|Apinomicon</entry> <entry key="thaumicbees.speciesBrainy.description">Their combs may be fetid and foul-smelling, but their intelligence is well-developed.|Apinomicon</entry>
<entry key="thaumicbees.speciesGossamer">Gossamer</entry> <entry key="thaumicbees.speciesGossamer">Gossamer</entry>
@@ -162,42 +204,47 @@
<entry key="thaumicbees.speciesWispy.description">Their language is garbled and unintelligible. It is probable they are speaking to unnatural beings.|Apinomicon</entry> <entry key="thaumicbees.speciesWispy.description">Their language is garbled and unintelligible. It is probable they are speaking to unnatural beings.|Apinomicon</entry>
<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.description">"*sigh*... Really, Myst?"|Taveria, irritated Apiarist</entry>
<entry key="thaumicbees.speciesTimely">Timely</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.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.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">Poultry</entry>
<entry key="thaumicbees.speciesChicken.description">"Cluck. Cluck cluck! ... You heard me."|Confused bee</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">Beefy</entry>
<entry key="thaumicbees.speciesBeef.description">"Moo, moo, moo. Wait, what?"|Confused bee</entry> <entry key="thaumicbees.speciesBeef.description">"Moo, moo, moo. Wait, what?"|Confused bee</entry>
<entry key="thaumicbees.speciesPork">Porcine</entry> <entry key="thaumicbees.speciesPork">Porcine</entry>
<entry key="thaumicbees.speciesPork.description">"Oink, oink. Er.... bzzz?"|Confused bee</entry> <entry key="thaumicbees.speciesPork.description">"Oink, oink. Er.... bzzz?"|Confused bee</entry>
<entry key="thaumicbees.speciesMinium">Minium</entry>
<entry key="thaumicbees.speciesMinium.description">It may be possible to exploit their mercurial and changeable nature.|Apinomicon</entry>
<entry key="thaumicbees.speciesEssence">Essence</entry>
<entry key="thaumicbees.speciesEssence.description">Drawing from motes of dust in the air and ground, they concentrate the energy</entry>
<entry key="thaumicbees.speciesQuintessence">Quintessential</entry>
<entry key="thaumicbees.speciesQuintessence.description">The heart of magic lies dormant in all things.|Apinomicon, preface</entry>
<entry key="thaumicbees.speciesErde">Erde</entry>
<entry key="thaumicbees.speciesErde.description">Empowered by the Earth, their produce is infused with its essence.|Apinomicon</entry>
<entry key="thaumicbees.speciesLuft">Luft</entry>
<entry key="thaumicbees.speciesLuft.description">Swift as the wind, and lighter than air.|Apinomicon</entry>
<entry key="thaumicbees.speciesFeuer">Feuer</entry>
<entry key="thaumicbees.speciesFeuer.description">Their colony can reach temperatures that boil water and melt metals.|Apinomicon</entry>
<entry key="thaumicbees.speciesWasser">Wasser</entry>
<entry key="thaumicbees.speciesWasser.description">Through prolonged exposure to liquids, their combs are quite wet and heavy.|Apinomicon</entry>
<entry key="thaumicbees.speciesBlitz">Blitz</entry>
<entry key="thaumicbees.speciesBlitz.description">They can travel vast distances in a blink, and are known for starting many wildfires.|Apinomicon</entry>
<entry key="thaumicbees.speciesStaude">Staude</entry>
<entry key="thaumicbees.speciesStaude.description">They have an affinity for all that is green and grows.|Apinomicon</entry>
<entry key="thaumicbees.speciesEis">Eis</entry>
<entry key="thaumicbees.speciesEis.description">"They keep stealing stuff from me, and I never see them. They're far too slippery."|MysteriousAges, incorrigible punster</entry>
<entry key="thaumicbees.speciesMagma">Magma</entry>
<entry key="thaumicbees.speciesMagma.description">As they fly by, they sear the surface of the landscape, eventually scouring all plants and fragile minerals away.|Apinomicon</entry>
<entry key="thaumicbees.speciesArkanen">Arkanen</entry>
<entry key="thaumicbees.speciesArkanen.description">"Curious creatures, though their produce is quite useful."|Mithion, Adept</entry>
<entry key="thaumicbees.speciesVortex">Vortex</entry>
<entry key="thaumicbees.speciesVortex.description">Ravenous for mana, they may be dangerous for any caster.|Apinomicon</entry>
<entry key="thaumicbees.speciesWight">Wight</entry>
<entry key="thaumicbees.speciesWight.description">"They attract magical spirits; not always docile."|Mithion, Adept</entry>
<!-- Blank species entries
<entry key="thaumicbees.species"></entry>
<entry key="thaumicbees.species.description"></entry>
-->
<!-- Bee Alleles --> <!-- Bee Alleles -->
<entry key="thaumicbees.effectCurative">Cleansing</entry> <entry key="thaumicbees.effectCurative">Cleansing</entry>
@@ -207,38 +254,44 @@
<entry key="thaumicbees.effectNodeGeneration">Aura Attract</entry> <entry key="thaumicbees.effectNodeGeneration">Aura Attract</entry>
<entry key="thaumicbees.effectNodePurify">Purify Aura</entry> <entry key="thaumicbees.effectNodePurify">Purify Aura</entry>
<entry key="thaumicbees.effectNodeFlux">Aura Flux</entry> <entry key="thaumicbees.effectNodeFlux">Aura Flux</entry>
<entry key="thuamicbees.effectNodeCharge">Aura Charge</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>
<entry key="thaumicbees.Ghast">Ghastly</entry> <entry key="thaumicbees.Ghast">Ghastly</entry>
<entry key="thaumicbees.effectManaDrainer">Vortex</entry>
<entry key="thaumicbees.effectAMWisp">Spiritual</entry>
<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">Thaumic Flowers</entry>
<entry key="tb.bees.flower.arsmagica">Exotic Flowers</entry>
<entry key="tb.bees.flower.node">Node</entry> <entry key="tb.bees.flower.node">Node</entry>
<!-- Classifications --> <!-- Classifications -->
<entry key="classification.arcane">Arcane</entry> <entry key="classification.arcane">Arcane</entry>
<entry key="classification.arcane.description"></entry> <entry key="classification.arcane.description">These bees have inexplicable affinity for magic.|Apinomicon</entry>
<entry key="classification.supernatural">Supernatural</entry> <entry key="classification.supernatural">Supernatural</entry>
<entry key="classification.supernatural.description"></entry> <entry key="classification.supernatural.description">No longer ordinary bees, they have been associated with many odd occurances.|Apinomicon</entry>
<entry key="classification.scholarly">Scholarly</entry> <entry key="classification.scholarly">Scholarly</entry>
<entry key="classification.scholarly.description"></entry> <entry key="classification.scholarly.description">The caste of bees which have great intellect and deductive ability.|Apinomicon</entry>
<entry key="classification.thaumic">Thaumic</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">Unpleasant and malicious. Treat this group with caution.|Apinomicon</entry>
<entry key="classification.vis">Aware</entry> <entry key="classification.magic">Aware</entry>
<entry key="classification.vis.description"></entry> <entry key="classification.magic.description">It is unclear whether they are sentient, but they have suprising awareness of their surroundings.|Apinomicon</entry>
<entry key="classification.time">Time</entry> <entry key="classification.time">Time</entry>
<entry key="classification.time.description"></entry> <entry key="classification.time.description">Though clever use of time travel, these bees accomplish twice as much in one day.|Apinomicon</entry>
<entry key="classification.soul">Soulful</entry> <entry key="classification.soul">Soulful</entry>
<entry key="classification.soul.description"></entry> <entry key="classification.soul.description">It would be eerie to think that they collected the souls of the deceased.|Apinomicon</entry>
<entry key="classification.alchemical">Alchemical</entry>
<entry key="classification.alchemical.description"></entry>
<entry key="classification.metallic">Metallic</entry> <entry key="classification.metallic">Metallic</entry>
<entry key="classification.metallic.description"></entry> <entry key="classification.metallic.description">They collect fragments of metal and combine them into larger portions.|Apinomicon</entry>
<entry key="classification.gem">Gem</entry> <entry key="classification.gem">Gem</entry>
<entry key="classification.gem.description"></entry> <entry key="classification.gem.description">They collect fragments of precious gems in their combs.|Apinomicon</entry>
<entry key="classification.thaumic">Thaumic</entry>
<entry key="classification.thaumic.description">These bees have an increased affinity to magic and aura.|Apinomicon</entry>
<entry key="classification.fleshy">Fleshy</entry> <entry key="classification.fleshy">Fleshy</entry>
<entry key="classification.fleshy.description"></entry> <entry key="classification.fleshy.description">Through an unknown mechanism, these bees accrue chunks of animal flesh. Somehow, it's still edible.|Apinomicon</entry>
<entry key="classification.alchemical">Alchemical</entry>
<entry key="classification.alchemical.description">These bees have a changeable nature.|Apinomicon</entry>
<entry key="classification.essential">Essential</entry>
<entry key="classification.essential.description">These bees have an increased affinity for aspected magic.|Apinomicon</entry>
</properties> </properties>
@@ -0,0 +1,582 @@
# Blender v2.61 (sub 0) OBJ File: 'untitled.blend'
# www.blender.org
o jarLid
v 0.662251 0.792153 0.427678
v 0.662251 0.792153 0.561617
v 0.567542 0.792153 0.656327
v 0.433603 0.792153 0.656327
v 0.338893 0.792153 0.561618
v 0.338893 0.792153 0.427678
v 0.500572 0.792153 0.494648
v 0.433603 0.792153 0.332969
v 0.567542 0.792153 0.332969
v 0.670335 0.764287 0.424330
v 0.670335 0.764287 0.564966
v 0.570890 0.764287 0.664411
v 0.430254 0.764287 0.664411
v 0.330809 0.764287 0.564966
v 0.330809 0.764287 0.424330
v 0.430254 0.764287 0.324885
v 0.500572 0.764287 0.494648
v 0.570890 0.764287 0.324885
vt 0.492673 0.825009
vt 0.525702 0.795846
vt 0.646961 0.969937
vt 0.608157 0.990808
vt 0.031140 0.631984
vt 0.074045 0.639292
vt 0.050933 0.785797
vt 0.006872 0.785813
vt 0.081042 0.977922
vt 0.038143 0.987974
vt 0.013744 0.777223
vt 0.057805 0.777207
vt 0.342147 0.199526
vt 0.338921 0.243469
vt 0.187294 0.207947
vt 0.197740 0.165696
vt 0.544028 0.191123
vt 0.550896 0.234645
vt 0.600295 0.357122
vt 0.644058 0.362232
vt 0.602062 0.512194
vt 0.560298 0.499944
vt 0.600562 0.155067
vt 0.644339 0.150074
vt 0.560944 0.012139
vt 0.602740 0.000000
vt 0.608113 0.498928
vt 0.649745 0.750816
vt 0.324872 0.675127
vt 0.400562 0.350255
vt 0.148673 0.391886
vt 0.000000 0.599437
vt 0.046785 0.851326
vt 0.005154 0.599437
vt 0.330026 0.675127
vt 0.249183 1.000000
vt 0.041631 0.851326
vt 0.501072 0.958366
vt 0.324194 0.325913
vt 0.648389 0.190915
vt 0.648389 0.460910
vt 0.458480 0.651825
vt 0.189908 0.651825
vt 0.017180 0.452320
vt 0.341374 0.317323
vt 0.207088 0.643235
vt 0.025770 0.189197
vt 0.349964 0.324195
vt 0.025770 0.459192
vt 0.201935 0.000000
vt 0.336220 0.325913
vt 0.012026 0.190915
vt 0.458481 0.000000
vt 0.189909 -0.000000
vn 0.679110 0.278604 -0.679110
vn 0.960403 0.278615 0.000000
vn 0.679109 0.278615 0.679106
vn 0.000000 0.278615 0.960403
vn -0.679105 0.278615 0.679109
vn -0.960403 0.278615 0.000000
vn -0.679105 0.278616 -0.679109
vn 0.000000 0.278615 -0.960403
vn 0.620930 0.740440 -0.257210
vn 0.257210 0.740440 -0.620930
vn 0.000000 1.000000 0.000000
vn 0.620930 0.740440 0.257179
vn 0.257210 0.740440 0.620930
vn -0.257179 0.740440 0.620930
vn -0.620930 0.740440 0.257210
vn -0.620930 0.740440 -0.257210
vn -0.257179 0.740440 -0.620930
vn 0.000000 -1.000000 0.000000
vn 0.328410 -0.513199 -0.792901
vn 0.792901 -0.513199 -0.328410
vn 0.792901 -0.513199 0.328440
vn 0.328440 -0.513199 0.792901
vn -0.328440 -0.513199 0.792901
vn -0.792932 -0.513199 0.328440
vn -0.792901 -0.513199 -0.328440
vn -0.328440 -0.513199 -0.792901
s off
f 1/1/1 10/2/1 18/3/1
f 1/1/1 18/3/1 9/4/1
f 10/5/2 1/6/2 2/7/2
f 10/5/2 2/7/2 11/8/2
f 3/9/3 12/10/3 11/11/3
f 3/9/3 11/11/3 2/12/3
f 4/13/4 13/14/4 12/15/4
f 4/13/4 12/15/4 3/16/4
f 5/17/5 14/18/5 13/14/5
f 5/17/5 13/14/5 4/13/5
f 6/19/6 15/20/6 14/21/6
f 6/19/6 14/21/6 5/22/6
f 8/23/7 16/24/7 15/20/7
f 8/23/7 15/20/7 6/19/7
f 9/25/8 18/26/8 16/24/8
f 9/25/8 16/24/8 8/23/8
s 1
f 1/27/9 9/28/10 7/29/11
f 2/30/12 1/27/9 7/29/11
f 3/31/13 2/30/12 7/29/11
f 4/32/14 3/31/13 7/29/11
f 5/33/15 4/34/14 7/35/11
f 6/36/16 5/37/15 7/29/11
f 8/38/17 6/36/16 7/29/11
f 9/28/10 8/38/17 7/29/11
f 17/39/18 18/40/19 10/41/20
f 11/42/21 17/39/18 10/41/20
f 12/43/22 17/39/18 11/42/21
f 13/44/23 17/45/18 12/46/22
f 14/47/24 17/48/18 13/49/23
f 15/50/25 17/51/18 14/52/24
f 16/53/26 17/39/18 15/54/25
f 18/40/19 17/39/18 16/53/26
o jarBase
v 0.586676 0.028885 0.286775
v 0.586676 0.627663 0.286775
v 0.414468 0.627663 0.286775
v 0.414468 0.028885 0.286775
v 0.292699 0.627663 0.408544
v 0.292699 0.028885 0.408544
v 0.292699 0.627663 0.580752
v 0.292699 0.028885 0.580752
v 0.414468 0.627663 0.702521
v 0.414468 0.028885 0.702521
v 0.586676 0.627663 0.702521
v 0.586676 0.028885 0.702521
v 0.708445 0.627663 0.580752
v 0.708445 0.028885 0.580752
v 0.708445 0.627663 0.408544
v 0.708445 0.028885 0.408544
v 0.500572 0.017159 0.494648
v 0.560845 0.706413 0.349137
v 0.440299 0.706413 0.349137
v 0.355061 0.706413 0.434375
v 0.355061 0.706413 0.554921
v 0.440300 0.706413 0.640159
v 0.560845 0.706413 0.640159
v 0.646083 0.706413 0.554920
v 0.646083 0.706413 0.434375
v 0.560845 0.764881 0.349137
v 0.440299 0.764881 0.349137
v 0.355061 0.764881 0.434375
v 0.355061 0.764881 0.554921
v 0.440300 0.764881 0.640159
v 0.560845 0.764881 0.640159
v 0.646083 0.764881 0.554920
v 0.646083 0.764881 0.434375
v 0.596243 0.003573 0.263678
v 0.404901 0.003573 0.263678
v 0.404901 0.633581 0.263678
v 0.596243 0.633580 0.263678
v 0.269602 0.003573 0.398977
v 0.269602 0.633581 0.398977
v 0.269602 0.003573 0.590319
v 0.269602 0.633581 0.590319
v 0.404901 0.003573 0.725618
v 0.404901 0.633581 0.725618
v 0.596243 0.003573 0.725618
v 0.596243 0.633581 0.725618
v 0.731542 0.003573 0.590319
v 0.731542 0.633581 0.590319
v 0.731542 0.003573 0.398977
v 0.731542 0.633580 0.398977
v 0.500572 0.003573 0.494648
v 0.433603 0.721081 0.332969
v 0.567542 0.721080 0.332969
v 0.338893 0.721081 0.427678
v 0.338893 0.721081 0.561618
v 0.433603 0.721081 0.656327
v 0.567542 0.721081 0.656327
v 0.662251 0.721081 0.561617
v 0.662251 0.721080 0.427678
v 0.433603 0.764830 0.332969
v 0.567542 0.764830 0.332969
v 0.338893 0.764830 0.427678
v 0.338893 0.764830 0.561618
v 0.433603 0.764830 0.656327
v 0.567542 0.764830 0.656327
v 0.662251 0.764830 0.561617
v 0.662251 0.764830 0.427678
vt 0.897412 0.384835
vt 0.897412 0.173090
vt 0.797595 0.173090
vt 0.797595 0.384835
vt 0.818211 0.268012
vt 0.818211 0.056267
vt 0.718393 0.056267
vt 0.718393 0.268012
vt 0.777909 0.678223
vt 0.777909 0.889966
vt 0.877726 0.889966
vt 0.877726 0.678223
vt 0.817596 0.319163
vt 0.817596 0.530907
vt 0.917413 0.530907
vt 0.917413 0.319163
vt 0.882340 0.406610
vt 0.882340 0.618355
vt 0.982158 0.618355
vt 0.982158 0.406610
vt 0.881285 0.612768
vt 0.881285 0.824513
vt 0.981102 0.824513
vt 0.981102 0.612768
vt 0.670291 0.319645
vt 0.670291 0.531390
vt 0.770109 0.531390
vt 0.770109 0.319645
vt 0.852746 0.536544
vt 0.852746 0.324799
vt 0.752929 0.324799
vt 0.752929 0.536544
vt 0.854462 0.336299
vt 0.824517 0.286892
vt 0.754645 0.286892
vt 0.754645 0.336299
vt 0.984538 0.633510
vt 0.984538 0.584103
vt 0.914665 0.584103
vt 0.884720 0.633510
vt 0.759011 0.817811
vt 0.788956 0.867218
vt 0.858828 0.867218
vt 0.858828 0.817811
vt 0.788390 0.950593
vt 0.788390 1.000000
vt 0.858262 1.000000
vt 0.888207 0.950593
vt 0.823928 0.889797
vt 0.853874 0.939204
vt 0.923746 0.939204
vt 0.923746 0.889797
vt 0.877361 0.869181
vt 0.877361 0.918588
vt 0.947233 0.918588
vt 0.977178 0.869181
vt 0.668573 0.536544
vt 0.698519 0.585951
vt 0.768391 0.585951
vt 0.768391 0.536544
vt 0.752929 0.585951
vt 0.822801 0.585951
vt 0.750644 0.137427
vt 0.750644 0.096811
vt 0.680772 0.096811
vt 0.680772 0.137427
vt 0.979701 0.372791
vt 0.979701 0.332175
vt 0.909828 0.332175
vt 0.909828 0.372791
vt 0.790674 0.862064
vt 0.790674 0.902681
vt 0.860546 0.902681
vt 0.860546 0.862064
vt 0.707645 0.959383
vt 0.707645 1.000000
vt 0.777517 1.000000
vt 0.777517 0.959383
vt 0.685512 0.880792
vt 0.685512 0.921408
vt 0.755384 0.921408
vt 0.755384 0.880792
vt 0.666048 0.925460
vt 0.666048 0.966076
vt 0.735920 0.966076
vt 0.735920 0.925460
vt 0.683057 0.585951
vt 0.683057 0.626568
vt 0.752929 0.626568
vt 0.822801 0.626568
vt 0.718750 0.375000
vt 0.875000 0.375000
vt 0.843750 0.687500
vt 0.687500 0.656250
vt 0.967358 0.400183
vt 0.873608 0.400183
vt 0.873608 0.118933
vt 0.967358 0.087683
vt 0.822829 0.901835
vt 0.666579 0.901835
vt 0.666579 0.620585
vt 0.822829 0.620585
vt 0.982820 0.535099
vt 0.857820 0.535099
vt 0.857820 0.253849
vt 0.982820 0.222599
vt 0.834116 0.281250
vt 0.677866 0.281250
vt 0.677866 0.000000
vt 0.834116 0.000000
vt 0.889178 0.312500
vt 0.795428 0.312500
vt 0.795428 0.000000
vt 0.889178 0.031250
vt 0.679410 0.005633
vt 0.835660 0.005633
vt 0.835660 0.286883
vt 0.710660 0.286883
vt 0.667297 0.383590
vt 0.792297 0.383590
vt 0.792297 0.664840
vt 0.667297 0.664840
vt 0.812500 0.750000
vt 0.687500 0.718750
vt 0.982168 0.829767
vt 0.982168 0.986017
vt 0.919668 0.954767
vt 0.919668 0.861017
vt 0.817675 0.867975
vt 0.661425 0.867975
vt 0.692675 0.774225
vt 0.786425 0.774225
vt 0.875000 0.656250
vt 0.875000 0.531250
vt 0.937500 0.531250
vt 0.937500 0.656250
vt 0.984538 0.121564
vt 0.828288 0.121564
vt 0.859538 0.027814
vt 0.984538 0.027814
vt 0.826178 0.623521
vt 0.826178 0.467271
vt 0.888678 0.498521
vt 0.888678 0.592271
vt 0.832637 0.797125
vt 0.957637 0.797125
vt 0.957637 0.890875
vt 0.832637 0.890875
vt 0.937500 0.375000
vt 0.875000 0.500000
vt 0.812500 0.781250
vt 0.687500 0.781250
vt 0.875000 0.781250
vt 0.875000 0.812500
vt 0.958224 0.659120
vt 0.864474 0.659120
vt 0.864474 0.627870
vt 0.958224 0.627870
vt 0.872564 0.031250
vt 0.810064 0.031250
vt 0.810064 0.000000
vt 0.872564 0.000000
vt 0.913143 0.617084
vt 0.788143 0.617084
vt 0.788143 0.585834
vt 0.913143 0.585834
vt 0.917884 0.561021
vt 0.980384 0.561021
vt 0.980384 0.592271
vt 0.917884 0.592271
vt 0.803431 0.765462
vt 0.928431 0.765462
vt 0.928431 0.796712
vt 0.803431 0.796712
vt 0.679323 0.945850
vt 0.741823 0.945850
vt 0.741823 0.977100
vt 0.679323 0.977100
vt 0.856845 0.759676
vt 0.757027 0.659859
vt 0.715682 0.759676
vt 0.757027 0.859494
vt 0.779536 1.000000
vt 0.779536 0.858837
vt 0.679718 0.958655
vt 0.884507 0.957419
vt 0.784690 0.857601
vt 0.784690 0.998764
vt 0.925853 0.900182
vt 0.784690 0.900182
vt 0.884507 1.000000
vt 0.954944 0.896941
vt 0.855127 0.996758
vt 0.996290 0.996758
vt 0.856845 0.618513
vt 0.956662 0.659859
vt 0.981102 0.318719
vt 0.856102 0.443719
vt 0.793602 0.256219
vt 0.988800 0.133264
vt 0.988800 0.289514
vt 0.801300 0.227014
vt 0.862974 0.068719
vt 0.987974 0.162469
vt 0.800474 0.256219
vt 0.819698 0.018898
vt 0.975948 0.018898
vt 0.913448 0.206398
vt 0.812500 0.093750
vt 0.906250 0.000000
vt 1.000000 0.187500
vt 0.661904 0.317001
vt 0.661904 0.160751
vt 0.849404 0.254501
vt 0.750500 0.438566
vt 0.656750 0.313566
vt 0.844250 0.251066
vt 0.891288 0.397334
vt 0.735038 0.397334
vt 0.828788 0.209834
vn 0.000000 -0.000000 1.000000
vn 0.707107 -0.000000 0.707107
vn 1.000000 0.000000 0.000000
vn 0.707107 0.000000 -0.707107
vn 0.000000 0.000000 -1.000000
vn -0.707107 0.000000 -0.707107
vn -1.000000 0.000000 0.000000
vn -0.707107 -0.000000 0.707107
vn 0.000000 -0.620815 0.783957
vn 0.554342 -0.620814 0.554342
vn 0.783958 -0.620814 -0.000000
vn 0.554339 -0.620816 -0.554342
vn 0.000000 -0.620815 -0.783957
vn -0.554342 -0.620816 -0.554340
vn -0.783957 -0.620815 -0.000000
vn -0.554342 -0.620814 0.554342
vn 0.707102 0.000000 -0.707111
vn -0.707111 0.000000 -0.707103
vn 0.000004 0.620814 -0.783958
vn -0.554340 0.620815 -0.554343
vn -0.783958 0.620814 0.000000
vn -0.554340 0.620815 0.554343
vn 0.000000 0.620814 0.783958
vn 0.554343 0.620815 0.554340
vn 0.783958 0.620814 -0.000004
vn 0.554342 0.620813 -0.554342
vn -0.707103 0.000000 -0.707111
vn -0.707103 0.000000 0.707111
vn 0.707111 0.000000 0.707103
vn 0.000000 0.999969 0.000000
vn -0.302011 0.614032 0.729179
vn 0.302011 0.614032 0.729179
vn 0.729179 0.614032 0.302011
vn 0.729179 0.614032 -0.302011
vn 0.302011 0.614032 -0.729179
vn -0.302011 0.614032 -0.729179
vn -0.729179 0.614032 -0.302011
vn -0.729179 0.614032 0.302011
vn -0.297098 -0.630238 -0.717277
vn 0.297098 -0.630238 -0.717277
vn -0.717277 -0.630238 -0.297098
vn -0.717277 -0.630238 0.297098
vn -0.297098 -0.630238 0.717277
vn 0.297098 -0.630238 0.717277
vn 0.717277 -0.630238 0.297098
vn 0.717277 -0.630238 -0.297098
s off
f 19/55/27 20/56/27 21/57/27
f 19/55/27 21/57/27 22/58/27
f 22/59/28 21/60/28 23/61/28
f 22/59/28 23/61/28 24/62/28
f 24/63/29 23/64/29 25/65/29
f 24/63/29 25/65/29 26/66/29
f 26/67/30 25/68/30 27/69/30
f 26/67/30 27/69/30 28/70/30
f 28/71/31 27/72/31 29/73/31
f 28/71/31 29/73/31 30/74/31
f 30/75/32 29/76/32 31/77/32
f 30/75/32 31/77/32 32/78/32
f 32/79/33 31/80/33 33/81/33
f 32/79/33 33/81/33 34/82/33
f 20/83/34 19/84/34 34/85/34
f 20/83/34 34/85/34 33/86/34
f 20/87/35 36/88/35 37/89/35
f 20/87/35 37/89/35 21/90/35
f 21/91/36 37/92/36 38/93/36
f 21/91/36 38/93/36 23/94/36
f 23/95/37 38/96/37 39/97/37
f 23/95/37 39/97/37 25/98/37
f 25/99/38 39/100/38 40/101/38
f 25/99/38 40/101/38 27/102/38
f 27/103/39 40/104/39 41/105/39
f 27/103/39 41/105/39 29/106/39
f 29/107/40 41/108/40 42/109/40
f 29/107/40 42/109/40 31/110/40
f 31/111/41 42/112/41 43/113/41
f 31/111/41 43/113/41 33/114/41
f 33/86/42 43/115/42 36/116/42
f 33/86/42 36/116/42 20/83/42
f 36/117/27 44/118/27 45/119/27
f 36/117/27 45/119/27 37/120/27
f 37/121/28 45/122/28 46/123/28
f 37/121/28 46/123/28 38/124/28
f 38/125/29 46/126/29 47/127/29
f 38/125/29 47/127/29 39/128/29
f 39/129/43 47/130/43 48/131/43
f 39/129/43 48/131/43 40/132/43
f 40/133/31 48/134/31 49/135/31
f 40/133/31 49/135/31 41/136/31
f 41/137/44 49/138/44 50/139/44
f 41/137/44 50/139/44 42/140/44
f 42/141/33 50/142/33 51/143/33
f 42/141/33 51/143/33 43/115/33
f 43/115/34 51/143/34 44/144/34
f 43/115/34 44/144/34 36/116/34
f 52/145/31 53/146/31 54/147/31
f 52/145/31 54/147/31 55/148/31
f 53/149/32 56/150/32 57/151/32
f 53/149/32 57/151/32 54/152/32
f 56/153/33 58/154/33 59/155/33
f 56/153/33 59/155/33 57/156/33
f 58/157/34 60/158/34 61/159/34
f 58/157/34 61/159/34 59/160/34
f 60/161/27 62/162/27 63/163/27
f 60/161/27 63/163/27 61/164/27
f 62/165/28 64/166/28 65/167/28
f 62/165/28 65/167/28 63/168/28
f 64/169/29 66/170/29 67/171/29
f 64/169/29 67/171/29 65/172/29
f 66/173/30 52/174/30 55/175/30
f 66/173/30 55/175/30 67/176/30
f 55/148/45 54/147/45 69/177/45
f 55/148/45 69/177/45 70/178/45
f 54/179/46 57/180/46 71/181/46
f 54/179/46 71/181/46 69/182/46
f 57/183/47 59/184/47 72/185/47
f 57/183/47 72/185/47 71/186/47
f 59/187/48 61/188/48 73/189/48
f 59/187/48 73/189/48 72/190/48
f 61/191/49 63/192/49 74/193/49
f 61/191/49 74/193/49 73/194/49
f 63/195/50 65/196/50 75/197/50
f 63/195/50 75/197/50 74/198/50
f 65/199/51 67/200/51 76/201/51
f 65/199/51 76/201/51 75/202/51
f 67/203/52 55/189/52 70/204/52
f 67/203/52 70/204/52 76/146/52
f 70/178/31 69/177/31 77/205/31
f 70/178/31 77/205/31 78/206/31
f 69/177/53 71/207/53 79/208/53
f 69/177/53 79/208/53 77/205/53
f 71/209/33 72/210/33 80/211/33
f 71/209/33 80/211/33 79/212/33
f 72/213/54 73/214/54 81/215/54
f 72/213/54 81/215/54 80/216/54
f 73/217/27 74/218/27 82/219/27
f 73/217/27 82/219/27 81/220/27
f 74/221/55 75/222/55 83/223/55
f 74/221/55 83/223/55 82/224/55
f 75/225/29 76/226/29 84/227/29
f 75/225/29 84/227/29 83/228/29
f 76/229/30 70/230/30 78/231/30
f 76/229/30 78/231/30 84/232/30
s 1
f 35/233/56 19/234/57 22/235/58
f 24/236/59 35/233/56 22/235/58
f 26/237/60 35/238/56 24/239/59
f 28/240/61 35/241/56 26/242/60
f 30/243/62 35/244/56 28/245/61
f 32/246/63 35/247/56 30/248/62
f 34/249/64 35/233/56 32/250/63
f 19/234/57 35/233/56 34/249/64
f 53/251/65 52/252/66 68/253/18
f 56/254/67 53/255/65 68/256/18
f 58/257/68 56/258/67 68/259/18
f 60/260/69 58/261/68 68/262/18
f 62/263/70 60/264/69 68/265/18
f 64/266/71 62/267/70 68/268/18
f 66/269/72 64/270/71 68/271/18
f 52/272/66 66/273/72 68/274/18
Binary file not shown.

After

Width:  |  Height:  |  Size: 8.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 272 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 47 KiB

@@ -0,0 +1,8 @@
0*64
1*2
2*2
1*2
0*96
3*4
0*128
4*2
Binary file not shown.

After

Width:  |  Height:  |  Size: 48 KiB

@@ -0,0 +1,8 @@
0*64
1*2
2*2
1*2
0*96
3*4
0*128
4*2
Binary file not shown.

After

Width:  |  Height:  |  Size: 450 B

@@ -0,0 +1,8 @@
0*64
1*2
2*2
1*2
0*96
3*4
0*128
4*2
Binary file not shown.

After

Width:  |  Height:  |  Size: 48 KiB

@@ -0,0 +1,8 @@
0*64
1*2
2*2
1*2
0*96
3*4
0*128
4*2
Binary file not shown.

After

Width:  |  Height:  |  Size: 488 B

@@ -0,0 +1,8 @@
0*64
1*2
2*2
1*2
0*96
3*4
0*128
4*2
Binary file not shown.

After

Width:  |  Height:  |  Size: 48 KiB

@@ -0,0 +1,8 @@
0*64
1*2
2*2
1*2
0*96
3*4
0*128
4*2
File renamed without changes.

Before

Width:  |  Height:  |  Size: 1.1 KiB

After

Width:  |  Height:  |  Size: 1.1 KiB

File renamed without changes.

Before

Width:  |  Height:  |  Size: 1.1 KiB

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 47 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.9 KiB

After

Width:  |  Height:  |  Size: 47 KiB

@@ -0,0 +1,8 @@
0*3
1*3
2*3
3*3
4*3
5*3
6*3
7*3
Binary file not shown.

After

Width:  |  Height:  |  Size: 5.3 KiB

@@ -0,0 +1,119 @@
package net.mysteriousages.utils.gui;
import java.util.ArrayList;
import java.util.List;
import net.minecraft.inventory.IInventory;
import net.minecraft.inventory.Slot;
import net.minecraft.item.ItemStack;
import net.minecraftforge.oredict.OreDictionary;
/**
*
* @author MysteriousAges
*
*/
public class SlotCustomItems extends Slot
{
private List<ItemStack> items;
public SlotCustomItems(IInventory inventory, int slotIndex, int xPos, int yPos)
{
this(inventory, slotIndex, xPos, yPos, new ItemStack[0]);
}
public SlotCustomItems(IInventory inventory, int slotIndex, int xPos, int yPos, ItemStack... items)
{
super(inventory, slotIndex, xPos, yPos);
this.items = new ArrayList<ItemStack>();
for (ItemStack i : items)
{
this.items.add(i);
}
}
/**
*
* @return List of valid ItemStacks
*/
public List<ItemStack> getValidItems()
{
return this.items;
}
public void addValidItem(ItemStack newItem)
{
boolean contains = false;
for (int i = 0; i < this.items.size(); ++i)
{
ItemStack s = this.items.get(i);
if (s.itemID == newItem.itemID)
{
if (s.getItemDamage() == OreDictionary.WILDCARD_VALUE)
{
contains = true;
break;
}
else if (s.getItemDamage() == newItem.getItemDamage())
{
contains = true;
break;
}
}
}
if (!contains)
{
this.items.add(newItem);
}
}
/**
*
* @param removeItem ItemStack to remove.
*/
public void removeValidItem(ItemStack removeItem)
{
for (int i = 0; i < this.items.size(); ++i)
{
ItemStack s = this.items.get(i);
if (s.itemID == removeItem.itemID)
{
if (s.getItemDamage() == OreDictionary.WILDCARD_VALUE)
{
this.items.remove(i);
break;
}
else if (s.getItemDamage() == removeItem.getItemDamage())
{
this.items.remove(i);
break;
}
}
}
}
@Override
public boolean isItemValid(ItemStack itemStack)
{
boolean flag = false;
for (int i = 0; i < this.items.size(); ++i)
{
if (this.items.get(i).itemID == itemStack.itemID)
{
if (this.items.get(i).getItemDamage() == itemStack.getItemDamage())
{
flag = true;
break;
}
else
{
flag = this.items.get(i).getItemDamage() ==OreDictionary.WILDCARD_VALUE;
break;
}
}
}
return flag;
}
}
+67 -30
View File
@@ -1,55 +1,93 @@
package thaumicbees.bees; package thaumicbees.bees;
import net.minecraft.potion.Potion; import net.minecraft.potion.Potion;
import thaumicbees.main.utils.compat.ArsMagicaHelper;
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.apiculture.IAlleleFlowers;
import forestry.api.genetics.AlleleManager; import forestry.api.genetics.AlleleManager;
import forestry.api.genetics.IAllele; import forestry.api.genetics.IAllele;
import forestry.api.genetics.IAlleleEffect;
public class Allele implements IAllele public class Allele implements IAllele
{ {
public static AlleleInteger fertilityHighDominant; public static AlleleInteger fertilityHighDominant;
public static AlleleFloat speedBlinding;
public static IAlleleFlowers flowerBookshelf; public static IAlleleFlowers flowerBookshelf;
public static IAlleleFlowers flowerThaumcraft; public static IAlleleFlowers flowerThaumcraft;
public static IAlleleFlowers flowerArsMagica;
public static IAlleleFlowers flowerAuraNode; public static IAlleleFlowers flowerAuraNode;
@Deprecated @Deprecated
public static IAlleleFlowers flowerNodePurify; public static IAlleleFlowers flowerNodePurify;
@Deprecated @Deprecated
public static IAlleleFlowers flowerNodeFluxify; public static IAlleleFlowers flowerNodeFluxify;
public static AlleleEffectCure cleansingEffect; public static IAlleleEffect cleansingEffect;
public static AlleleEffectPotion digSpeed; public static IAlleleEffect digSpeed;
public static AlleleEffectPotion moveSpeed; public static IAlleleEffect moveSpeed;
public static AlleleEffectPotion slowSpeed; public static IAlleleEffect slowSpeed;
public static AlleleEffectSpawnMob spawnBrainyZombie;
public static AlleleEffectSpawnMob spawnWisp; public static IAlleleEffect spawnBrainyZombie;
public static AlleleEffectSpawnMob spawnBats; public static IAlleleEffect spawnWisp;
public static AlleleEffectSpawnMob spawnGhast; public static IAlleleEffect spawnBats;
public static AlleleEffectAuraNodeAttract effectNodeAttract; public static IAlleleEffect spawnGhast;
public static AlleleEffectAuraNodePurify effectNodePurify; public static IAlleleEffect spawnSpider;
public static AlleleEffectAuraNodeFlux effectNodeFlux; public static IAlleleEffect spawnManaDrainer;
public static AlleleEffectAuraNodeCharge effectNodeCharge; public static IAlleleEffect spawnWispOrHecate;
public static IAlleleEffect effectNodeAttract;
public static IAlleleEffect effectNodePurify;
public static IAlleleEffect effectNodeFlux;
public static IAlleleEffect effectNodeCharge;
public static void setupAdditionalAlleles() public static void setupAdditionalAlleles()
{ {
Allele.fertilityHighDominant = new AlleleInteger("fertilityHighDominant", 3, true); Allele.fertilityHighDominant = new AlleleInteger("fertilityHighDominant", 3, true);
Allele.speedBlinding = new AlleleFloat("speedBlinding", 2f, false);
Allele.flowerBookshelf = new AlleleFlower("flowerBookshelf", new FlowerProviderBookshelf(), true); Allele.flowerBookshelf = new AlleleFlower("flowerBookshelf", new FlowerProviderBookshelf(), true);
if (ThaumcraftHelper.isActive()) if (ThaumcraftHelper.isActive())
{ {
FlowerProviderAuraNode provider = new FlowerProviderAuraNode();
Allele.flowerThaumcraft = new AlleleFlower("flowerThaumcraftPlant", new FlowerProviderThaumcraftFlower(), false); Allele.flowerThaumcraft = new AlleleFlower("flowerThaumcraftPlant", new FlowerProviderThaumcraftFlower(), false);
Allele.flowerAuraNode = new AlleleFlower("flowerAuraNode", new FlowerProviderAuraNode(), true); Allele.flowerAuraNode = new AlleleFlower("flowerAuraNode", provider, true);
Allele.flowerNodePurify = new AlleleFlower("flowerAuraNodePurify", new FlowerProviderAuraNode(), false); Allele.flowerNodePurify = new AlleleFlower("flowerAuraNodePurify", provider, false);
Allele.flowerNodeFluxify = new AlleleFlower("flowerAuraNodeFlux", new FlowerProviderAuraNode(), false); Allele.flowerNodeFluxify = new AlleleFlower("flowerAuraNodeFlux", provider, false);
Allele.spawnBrainyZombie = new AlleleEffectSpawnMob("effectBrainy", false, ThaumcraftHelper.Entity.BRAINY_ZOMBIE.entityID)
.setAggrosPlayerOnSpawn().setThrottle(800).setSpawnsOnPlayerNear(null).setMaxMobsInSpawnZone(2);
Allele.spawnBats = new AlleleEffectSpawnMob("effectBatty", false, ThaumcraftHelper.Entity.FIREBAT.entityID)
.setThrottle(300).setSpawnsOnPlayerNear("Bat");
Allele.spawnWisp = new AlleleEffectSpawnWisp("effectWispy", false, ThaumcraftHelper.Entity.WISP.entityID, "thaumcraft.wisplive")
.setThrottle(1800).setChanceToSpawn(79);
} }
else else
{ {
Allele.flowerThaumcraft = (IAlleleFlowers)Allele.getBaseAllele("flowersVanilla"); Allele.flowerThaumcraft = Allele.flowerAuraNode = (IAlleleFlowers)Allele.getBaseAllele("flowersVanilla");
Allele.flowerAuraNode = (IAlleleFlowers)Allele.getBaseAllele("flowersVanilla"); Allele.flowerNodePurify = Allele.flowerNodeFluxify = (IAlleleFlowers)Allele.getBaseAllele("flowersVanilla");
Allele.flowerNodePurify = (IAlleleFlowers)Allele.getBaseAllele("flowersVanilla");
Allele.flowerNodeFluxify = (IAlleleFlowers)Allele.getBaseAllele("flowersVanilla"); Allele.spawnBrainyZombie = Allele.spawnBats = Allele.spawnWisp = (IAlleleEffect)Allele.getBaseAllele("effectNone");
}
if (ArsMagicaHelper.isActive())
{
Allele.flowerArsMagica = new AlleleFlower("flowerArsMagicaPlant", new FlowerProviderArsMagicaFlower(), false);
//String id, boolean isDominant, int throttle, String[] mobs, int[] chance
Allele.spawnManaDrainer = new AlleleEffectSpawnMobWeighted("effectManaDrainer", true, 20,
new String[] { "ArsMagica.MobManaCreeper", "ArsMagica.ManaVortex" },
new int[] { 60, 2 });
Allele.spawnWispOrHecate = new AlleleEffectSpawnMobWeighted("effectAMWisp", true, 20,
new String[] { "ArsMagica.MobWisp", "ArsMagica.MobHecate" },
new int[] { 40, 3 });
}
else
{
Allele.flowerArsMagica = (IAlleleFlowers)Allele.getBaseAllele("flowersVanilla");
Allele.spawnManaDrainer = Allele.spawnWispOrHecate = (IAlleleEffect)Allele.getBaseAllele("effectNone");
} }
Allele.effectNodeAttract = new AlleleEffectAuraNodeAttract("effectNodeGeneration", false, 400); Allele.effectNodeAttract = new AlleleEffectAuraNodeAttract("effectNodeGeneration", false, 400);
@@ -62,17 +100,11 @@ public class Allele implements IAllele
Allele.moveSpeed = new AlleleEffectPotion("effectMoveSpeed", Potion.moveSpeed, 10, 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.spawnBrainyZombie = new AlleleEffectSpawnMob("effectBrainy", false, ThaumcraftHelper.Entity.BRAINY_ZOMBIE.entityID); Allele.spawnGhast = new AlleleEffectSpawnMob("Ghast", false, "Ghast", "mob.ghast.moan")
Allele.spawnBrainyZombie.setAggrosPlayerOnSpawn().setThrottle(800).setSpawnsOnPlayerNear(null).setMaxMobsInSpawnZone(2); .setThrottle(2060).setChanceToSpawn(10).setMaxMobsInSpawnZone(1);
Allele.spawnBats = new AlleleEffectSpawnMob("effectBatty", false, ThaumcraftHelper.Entity.FIREBAT.entityID); Allele.spawnSpider = new AlleleEffectSpawnMob("Spider", false, "Spider", "mob.spider.step")
Allele.spawnBats.setThrottle(300).setSpawnsOnPlayerNear("Bat"); .setThrottle(400).setChanceToSpawn(70).setMaxMobsInSpawnZone(4);
Allele.spawnWisp = new AlleleEffectSpawnWisp("effectWispy", false, ThaumcraftHelper.Entity.WISP.entityID, "thaumcraft.wisplive");
Allele.spawnWisp.setThrottle(1800).setChanceToSpawn(79);
Allele.spawnGhast = new AlleleEffectSpawnMob("Ghast", false, "Ghast", "mob.ghast.moan");
Allele.spawnGhast.setThrottle(2060).setChanceToSpawn(10).setMaxMobsInSpawnZone(1);
} }
private String uid; private String uid;
@@ -93,6 +125,11 @@ public class Allele implements IAllele
return AlleleManager.alleleRegistry.getAllele("forestry." + name); return AlleleManager.alleleRegistry.getAllele("forestry." + name);
} }
public static IAllele getAllele(String name)
{
return AlleleManager.alleleRegistry.getAllele(name);
}
public Allele(String id, boolean isDominant) public Allele(String id, boolean isDominant)
{ {
this.uid = "thaumicbees." + id; this.uid = "thaumicbees." + id;
@@ -2,10 +2,9 @@ package thaumicbees.bees;
import java.lang.reflect.Method; import java.lang.reflect.Method;
import thaumcraft.api.AuraNode;
import thaumcraft.api.EnumNodeType;
import thaumcraft.api.ObjectTags; import thaumcraft.api.ObjectTags;
import thaumcraft.api.ThaumcraftApi; import thaumcraft.api.ThaumcraftApi;
import thaumcraft.api.aura.AuraNode;
import net.minecraft.world.World; import net.minecraft.world.World;
import forestry.api.apiculture.IBeeGenome; import forestry.api.apiculture.IBeeGenome;
import forestry.api.apiculture.IBeeHousing; import forestry.api.apiculture.IBeeHousing;
@@ -2,10 +2,10 @@ package thaumicbees.bees;
import net.minecraft.item.ItemStack; import net.minecraft.item.ItemStack;
import net.minecraft.world.World; import net.minecraft.world.World;
import thaumcraft.api.AuraNode;
import thaumcraft.api.EnumTag; import thaumcraft.api.EnumTag;
import thaumcraft.api.ObjectTags; import thaumcraft.api.ObjectTags;
import thaumcraft.api.ThaumcraftApi; import thaumcraft.api.ThaumcraftApi;
import thaumcraft.api.aura.AuraNode;
import thaumicbees.main.Config; import thaumicbees.main.Config;
import forestry.api.apiculture.IBeeGenome; import forestry.api.apiculture.IBeeGenome;
import forestry.api.apiculture.IBeeHousing; import forestry.api.apiculture.IBeeHousing;
@@ -161,16 +161,13 @@ public class AlleleEffectSpawnMob extends AlleleEffect
if (entitiesCount < this.maxMobsInArea && mob.getCanSpawnHere()) if (entitiesCount < this.maxMobsInArea && mob.getCanSpawnHere())
{ {
if (mob.getCanSpawnHere()) spawnedFlag = world.spawnEntityInWorld(mob);
if (this.aggosOnPlayer && player != null)
{ {
spawnedFlag = world.spawnEntityInWorld(mob); if (ItemArmorApiarist.getNumberPiecesWorn(player) < 4)
if (this.aggosOnPlayer && player != null)
{ {
if (ItemArmorApiarist.getNumberPiecesWorn(player) < 4) // Protect fully suited player from initial murder intent.
{ mob.setAttackTarget(player);
// Protect fully suited player from initial murder intent.
mob.setAttackTarget(player);
}
} }
} }
} }
@@ -0,0 +1,103 @@
package thaumicbees.bees;
import net.minecraft.entity.EntityList;
import net.minecraft.entity.Entity;
import net.minecraft.entity.EntityLiving;
import net.minecraft.world.World;
import forestry.api.apiculture.IAlleleBeeEffect;
import forestry.api.apiculture.IBeeGenome;
import forestry.api.apiculture.IBeeHousing;
import forestry.api.genetics.IEffectData;
public class AlleleEffectSpawnMobWeighted extends AlleleEffect
{
private int throttle;
private String[] entityNames;
private int[] spawnChance;
public AlleleEffectSpawnMobWeighted(String id, boolean isDominant, int throttle, String[] mobs, int[] chance)
{
super(id, isDominant);
this.throttle = throttle;
if (mobs.length != chance.length)
{
throw new IllegalArgumentException("Array lengths must be equal!");
}
this.entityNames = mobs;
this.spawnChance = chance;
}
@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 value = storedData.getInteger(0);
if (value >= this.throttle)
{
if (this.spawnMob(genome, housing))
{
storedData.setInteger(0, 0);
}
}
else
{
storedData.setInteger(0, value + 1);
}
return storedData;
}
protected boolean spawnMob(IBeeGenome genome, IBeeHousing housing)
{
boolean flag = false;
World w = housing.getWorld();
int roll = 0;
for (int i = 0; i < this.spawnChance.length && !flag; ++i)
{
roll = 100 - w.rand.nextInt(100)+1;
if (roll < this.spawnChance[i])
{
flag = true;
Entity mob = EntityList.createEntityByName(this.entityNames[i], w);
double[] coords = this.randomMobSpawnCoords(w, genome, housing);
mob.setPositionAndRotation(coords[0], coords[1], coords[2], w.rand.nextFloat() * 360f, 0f);
if (mob instanceof EntityLiving)
{
if (((EntityLiving)mob).getCanSpawnHere())
{
w.spawnEntityInWorld(mob);
}
}
else
{
w.spawnEntityInWorld(mob);
}
}
}
return flag;
}
protected double[] randomMobSpawnCoords(World world, IBeeGenome bee, IBeeHousing housing)
{
double pos[] = new double[3];
pos[0] = housing.getXCoord() + world.rand.nextDouble() * (bee.getTerritory()[0] * housing.getTerritoryModifier(bee, 1f)) - bee.getTerritory()[0] / 2;
pos[1] = housing.getYCoord() + world.rand.nextDouble() * (bee.getTerritory()[1] * housing.getTerritoryModifier(bee, 1f)) - bee.getTerritory()[1] / 2;
pos[2] = housing.getZCoord() + world.rand.nextDouble() * (bee.getTerritory()[2] * housing.getTerritoryModifier(bee, 1f)) - bee.getTerritory()[2] / 2;
return pos;
}
}
@@ -0,0 +1,21 @@
package thaumicbees.bees;
import forestry.api.genetics.IAlleleFloat;
public class AlleleFloat extends Allele implements IAlleleFloat
{
private float value;
public AlleleFloat(String id, float val, boolean isDominant)
{
super(id, isDominant);
this.value = val;
}
@Override
public float getValue()
{
return this.value;
}
}
@@ -15,15 +15,16 @@ public enum BeeClassification implements IClassification
ARCANE("Arcane", "Arcanus"), ARCANE("Arcane", "Arcanus"),
SUPERNATURAL("Supernatural", "Occultus"), SUPERNATURAL("Supernatural", "Occultus"),
SCHOLARLY("Scholarly", "Docto"), SCHOLARLY("Scholarly", "Docto"),
THAUMIC("Thaumic", "Thaumis"),
SKULKING("Skulking", "Malevolens"), SKULKING("Skulking", "Malevolens"),
VIS("Vis", "Vis"), MAGICAL("Magic", "Magica"),
TIME("Time", "Tempestivus"), TIME("Time", "Tempestivus"),
SOUL("Soul", "Animus"), SOUL("Soul", "Animus"),
ALCHEMICAL("Alchemical", "Alchimia"),
METALLIC("Metallic", "Metallicis"), METALLIC("Metallic", "Metallicis"),
GEM("Gem", "Lapidi"), GEM("Gem", "Lapidi"),
THAUMIC("Thaumic", "Thaumis"),
FLESHY("Fleshy", "Carnosa"), FLESHY("Fleshy", "Carnosa"),
ALCHEMICAL("Alchemical", "Alchimia"),
ESSENTIAL("Essential", "Essentia"),
; ;
private String uID; private String uID;
@@ -1,5 +1,6 @@
package thaumicbees.bees; package thaumicbees.bees;
import thaumicbees.main.utils.compat.ExtraBeesHelper;
import net.minecraft.item.ItemStack; import net.minecraft.item.ItemStack;
import net.minecraft.nbt.NBTTagCompound; import net.minecraft.nbt.NBTTagCompound;
import net.minecraft.nbt.NBTTagList; import net.minecraft.nbt.NBTTagList;
@@ -429,6 +430,19 @@ public class BeeGenomeManager
return genome; return genome;
} }
public static IAllele[] getTemplateSpidery()
{
IAllele[] genome = getTemplateBaseMalevolent();
genome[EnumBeeChromosome.SPECIES.ordinal()] = BeeSpecies.SPIDERY;
genome[EnumBeeChromosome.CAVE_DWELLING.ordinal()] = Allele.getBaseAllele("boolTrue");
genome[EnumBeeChromosome.NOCTURNAL.ordinal()] = Allele.getBaseAllele("boolTrue");
genome[EnumBeeChromosome.TERRITORY.ordinal()] = Allele.getBaseAllele("territoryLarger");
genome[EnumBeeChromosome.EFFECT.ordinal()] = Allele.spawnSpider;
return genome;
}
private static IAllele[] getTemplateBaseTemporal() private static IAllele[] getTemplateBaseTemporal()
{ {
IAllele[] genome = getTemplateBaseThaumic(); IAllele[] genome = getTemplateBaseThaumic();
@@ -613,6 +627,17 @@ public class BeeGenomeManager
return genome; return genome;
} }
public static IAllele[] getTemplateApatite()
{
IAllele[] genome = getTemplateBaseMetallic();
genome[EnumBeeChromosome.SPECIES.ordinal()] = BeeSpecies.APATITE;
genome[EnumBeeChromosome.SPEED.ordinal()] = Allele.getBaseAllele("speedNorm");
genome[EnumBeeChromosome.LIFESPAN.ordinal()] = Allele.getBaseAllele("lifespanNormal");
return genome;
}
public static IAllele[] getTemplateChicken() public static IAllele[] getTemplateChicken()
{ {
IAllele[] genome = getTemplateBaseMetallic(); IAllele[] genome = getTemplateBaseMetallic();
@@ -639,6 +664,194 @@ public class BeeGenomeManager
return genome; return genome;
} }
private static IAllele[] getTemplateBaseMagica()
{
IAllele[] genome = getTemplateBaseThaumic();
genome[EnumBeeChromosome.FLOWER_PROVIDER.ordinal()] = Allele.flowerArsMagica;
return genome;
}
public static IAllele[] getTemplateEssence()
{
IAllele[] genome = getTemplateBaseMagica();
genome[EnumBeeChromosome.SPECIES.ordinal()] = BeeSpecies.ESSENCE;
genome[EnumBeeChromosome.SPEED.ordinal()] = Allele.getBaseAllele("speedNorm");
genome[EnumBeeChromosome.FERTILITY.ordinal()] = Allele.getBaseAllele("fertilityHigh");
genome[EnumBeeChromosome.TEMPERATURE_TOLERANCE.ordinal()] = Allele.getBaseAllele("toleranceBoth1");
genome[EnumBeeChromosome.FLOWERING.ordinal()] = Allele.getBaseAllele("floweringSlow");
return genome;
}
public static IAllele[] getTemplateQuintessence()
{
IAllele[] genome = getTemplateEssence();
genome[EnumBeeChromosome.SPECIES.ordinal()] = BeeSpecies.QUINTESSENCE;
genome[EnumBeeChromosome.LIFESPAN.ordinal()] = Allele.getBaseAllele("lifespanElongated");
genome[EnumBeeChromosome.FERTILITY.ordinal()] = Allele.getBaseAllele("fertilityHigh");
genome[EnumBeeChromosome.FLOWERING.ordinal()] = Allele.getBaseAllele("floweringAverage");
genome[EnumBeeChromosome.EFFECT.ordinal()] = Allele.getBaseAllele("effectMisanthrope");
return genome;
}
public static IAllele[] getTemplateEarthAM()
{
IAllele[] genome = getTemplateBaseMagica();
genome[EnumBeeChromosome.SPECIES.ordinal()] = BeeSpecies.EARTH_AM;
genome[EnumBeeChromosome.FLOWERING.ordinal()] = Allele.getBaseAllele("floweringFaster");
genome[EnumBeeChromosome.CAVE_DWELLING.ordinal()] = Allele.getBaseAllele("boolTrue");
genome[EnumBeeChromosome.LIFESPAN.ordinal()] = Allele.getBaseAllele("lifespanLongest");
genome[EnumBeeChromosome.FERTILITY.ordinal()] = Allele.getBaseAllele("fertilityHigh");
return genome;
}
public static IAllele[] getTemplateAirAM()
{
IAllele[] genome = getTemplateBaseMagica();
genome[EnumBeeChromosome.SPECIES.ordinal()] = BeeSpecies.AIR_AM;
genome[EnumBeeChromosome.SPEED.ordinal()] = Allele.getBaseAllele("speedFast");
genome[EnumBeeChromosome.TERRITORY.ordinal()] = Allele.getBaseAllele("territoryMaximum");
genome[EnumBeeChromosome.TOLERANT_FLYER.ordinal()] = Allele.getBaseAllele("boolTrue");
genome[EnumBeeChromosome.TEMPERATURE_TOLERANCE.ordinal()] = Allele.getBaseAllele("toleranceBoth2");
return genome;
}
public static IAllele[] getTemplateFireAM()
{
IAllele[] genome = getTemplateBaseMagica();
genome[EnumBeeChromosome.SPECIES.ordinal()] = BeeSpecies.FIRE_AM;
genome[EnumBeeChromosome.SPEED.ordinal()] = Allele.getBaseAllele("speedNorm");
genome[EnumBeeChromosome.CAVE_DWELLING.ordinal()] = Allele.getBaseAllele("boolTrue");
genome[EnumBeeChromosome.NOCTURNAL.ordinal()] = Allele.getBaseAllele("boolTrue");
genome[EnumBeeChromosome.FLOWERING.ordinal()] = Allele.getBaseAllele("floweringFast");
genome[EnumBeeChromosome.EFFECT.ordinal()] = Allele.getBaseAllele("effectIgnition");
return genome;
}
public static IAllele[] getTemplateWaterAM()
{
IAllele[] genome = getTemplateBaseMagica();
genome[EnumBeeChromosome.SPECIES.ordinal()] = BeeSpecies.WATER_AM;
genome[EnumBeeChromosome.HUMIDITY_TOLERANCE.ordinal()] = Allele.getBaseAllele("toleranceDown1");
genome[EnumBeeChromosome.CAVE_DWELLING.ordinal()] = Allele.getBaseAllele("boolTrue");
genome[EnumBeeChromosome.TOLERANT_FLYER.ordinal()] = Allele.getBaseAllele("boolTrue");
genome[EnumBeeChromosome.LIFESPAN.ordinal()] = Allele.getBaseAllele("lifespanElongated");
return genome;
}
public static IAllele[] getTemplateLightning()
{
IAllele[] genome = getTemplateBaseMagica();
genome[EnumBeeChromosome.SPECIES.ordinal()] = BeeSpecies.LIGHTNING;
genome[EnumBeeChromosome.LIFESPAN.ordinal()] = Allele.getBaseAllele("lifespanShortest");
genome[EnumBeeChromosome.TERRITORY.ordinal()] = Allele.getBaseAllele("territoryMaximum");
genome[EnumBeeChromosome.SPEED.ordinal()] = Allele.speedBlinding;
genome[EnumBeeChromosome.NOCTURNAL.ordinal()] = Allele.getBaseAllele("boolTrue");
if (ExtraBeesHelper.isActive())
{
genome[EnumBeeChromosome.EFFECT.ordinal()] = Allele.getAllele("extrabees.effect.lightning");
}
return genome;
}
public static IAllele[] getTemplatePlant()
{
IAllele[] genome = getTemplateBaseMagica();
genome[EnumBeeChromosome.SPECIES.ordinal()] = BeeSpecies.PLANT;
genome[EnumBeeChromosome.FLOWERING.ordinal()] = Allele.getBaseAllele("floweringFastest");
genome[EnumBeeChromosome.SPEED.ordinal()] = Allele.getBaseAllele("speedNorm");
genome[EnumBeeChromosome.CAVE_DWELLING.ordinal()] = Allele.getBaseAllele("boolTrue");
genome[EnumBeeChromosome.HUMIDITY_TOLERANCE.ordinal()] = Allele.getBaseAllele("toleranceBoth1");
return genome;
}
public static IAllele[] getTemplateIce()
{
IAllele[] genome = getTemplateBaseMagica();
genome[EnumBeeChromosome.SPECIES.ordinal()] = BeeSpecies.ICE;
genome[EnumBeeChromosome.TEMPERATURE_TOLERANCE.ordinal()] = Allele.getBaseAllele("toleranceUp2");
genome[EnumBeeChromosome.HUMIDITY_TOLERANCE.ordinal()] = Allele.getBaseAllele("toleranceDown2");
genome[EnumBeeChromosome.TOLERANT_FLYER.ordinal()] = Allele.getBaseAllele("boolTrue");
genome[EnumBeeChromosome.SPEED.ordinal()] = Allele.getBaseAllele("speedSlowest");
genome[EnumBeeChromosome.LIFESPAN.ordinal()] = Allele.getBaseAllele("lifespanLongest");
genome[EnumBeeChromosome.EFFECT.ordinal()] = Allele.getBaseAllele("effectGlacial");
return genome;
}
public static IAllele[] getTemplateMagma()
{
IAllele[] genome = getTemplateBaseMagica();
genome[EnumBeeChromosome.SPECIES.ordinal()] = BeeSpecies.MAGMA;
genome[EnumBeeChromosome.TEMPERATURE_TOLERANCE.ordinal()] = Allele.getBaseAllele("toleranceDown2");
genome[EnumBeeChromosome.TOLERANT_FLYER.ordinal()] = Allele.getBaseAllele("boolTrue");
genome[EnumBeeChromosome.CAVE_DWELLING.ordinal()] = Allele.getBaseAllele("boolTrue");
genome[EnumBeeChromosome.LIFESPAN.ordinal()] = Allele.getBaseAllele("lifespanElongated");
genome[EnumBeeChromosome.EFFECT.ordinal()] = Allele.getBaseAllele("effectIgnition");
return genome;
}
public static IAllele[] getTemplateArcaneAM()
{
IAllele[] genome = getTemplateBaseMagica();
genome[EnumBeeChromosome.SPECIES.ordinal()] = BeeSpecies.ARCANE_AM;
genome[EnumBeeChromosome.FERTILITY.ordinal()] = Allele.getBaseAllele("fertilityLow");
genome[EnumBeeChromosome.TEMPERATURE_TOLERANCE.ordinal()] = Allele.getBaseAllele("toleranceBoth2");
genome[EnumBeeChromosome.HUMIDITY_TOLERANCE.ordinal()] = Allele.getBaseAllele("toleranceBoth1");
genome[EnumBeeChromosome.NOCTURNAL.ordinal()] = Allele.getBaseAllele("boolTrue");
return genome;
}
public static IAllele[] getTemplateVortex()
{
IAllele[] genome = getTemplateBaseMagica();
genome[EnumBeeChromosome.SPECIES.ordinal()] = BeeSpecies.VORTEX;
genome[EnumBeeChromosome.NOCTURNAL.ordinal()] = Allele.getBaseAllele("boolTrue");
genome[EnumBeeChromosome.LIFESPAN.ordinal()] = Allele.getBaseAllele("lifespanLonger");
genome[EnumBeeChromosome.FERTILITY.ordinal()] = Allele.getBaseAllele("fertilityHigh");
genome[EnumBeeChromosome.TERRITORY.ordinal()] = Allele.getBaseAllele("territoryLarger");
genome[EnumBeeChromosome.EFFECT.ordinal()] = Allele.spawnManaDrainer;
return genome;
}
public static IAllele[] getTemplateWight()
{
IAllele[] genome = getTemplateBaseMagica();
genome[EnumBeeChromosome.SPECIES.ordinal()] = BeeSpecies.WIGHT;
genome[EnumBeeChromosome.NOCTURNAL.ordinal()] = Allele.getBaseAllele("boolTrue");
genome[EnumBeeChromosome.CAVE_DWELLING.ordinal()] = Allele.getBaseAllele("boolTrue");
genome[EnumBeeChromosome.SPEED.ordinal()] = Allele.getBaseAllele("speedFast");
genome[EnumBeeChromosome.EFFECT.ordinal()] = Allele.spawnWispOrHecate;
return genome;
}
public static ItemStack getBeeNBTForSpecies(BeeSpecies species, EnumBeeType beeType) public static ItemStack getBeeNBTForSpecies(BeeSpecies species, EnumBeeType beeType)
{ {
+228 -76
View File
@@ -1,19 +1,27 @@
package thaumicbees.bees; package thaumicbees.bees;
import forestry.api.apiculture.*; import forestry.api.apiculture.*;
import forestry.api.core.BlockInterface;
import forestry.api.core.ItemInterface;
import forestry.api.genetics.IAllele; import forestry.api.genetics.IAllele;
import forestry.api.genetics.IGenome; import forestry.api.genetics.IGenome;
import java.util.ArrayList; import java.util.ArrayList;
import net.minecraft.block.Block;
import net.minecraft.item.ItemStack;
import net.minecraftforge.oredict.OreDictionary;
import cpw.mods.fml.common.FMLLog; import cpw.mods.fml.common.FMLLog;
import thaumcraft.api.AuraNode;
import thaumcraft.api.EnumNodeType;
import thaumcraft.api.ThaumcraftApi; import thaumcraft.api.ThaumcraftApi;
import thaumcraft.api.aura.AuraNode;
import thaumcraft.api.aura.EnumNodeType;
import thaumicbees.main.ThaumicBees; import thaumicbees.main.ThaumicBees;
import thaumicbees.main.utils.MoonPhase; import thaumicbees.main.utils.MoonPhase;
import thaumicbees.main.utils.compat.ArsMagicaHelper;
import thaumicbees.main.utils.compat.EquivalentExchangeHelper; import thaumicbees.main.utils.compat.EquivalentExchangeHelper;
import thaumicbees.main.utils.compat.ExtraBeesHelper; import thaumicbees.main.utils.compat.ExtraBeesHelper;
import thaumicbees.main.utils.compat.ForestryHelper;
import thaumicbees.main.utils.compat.ThaumcraftHelper; import thaumicbees.main.utils.compat.ThaumcraftHelper;
public class BeeMutation implements IBeeMutation public class BeeMutation implements IBeeMutation
@@ -21,10 +29,13 @@ public class BeeMutation implements IBeeMutation
private static BeeMutation Esoteric; private static BeeMutation Esoteric;
private static BeeMutation Esoteric1; private static BeeMutation Esoteric1;
private static BeeMutation Mysterious; private static BeeMutation Mysterious;
private static BeeMutation Mysterious2;
private static BeeMutation Mysterious1; private static BeeMutation Mysterious1;
private static BeeMutation Arcane; private static BeeMutation Arcane;
private static BeeMutation Charmed; private static BeeMutation Charmed;
private static BeeMutation Charmed1;
private static BeeMutation Enchanted; private static BeeMutation Enchanted;
private static BeeMutation Enchanted1;
private static BeeMutation Supernatural; private static BeeMutation Supernatural;
private static BeeMutation Stark; private static BeeMutation Stark;
private static BeeMutation Fire; private static BeeMutation Fire;
@@ -33,25 +44,15 @@ public class BeeMutation implements IBeeMutation
private static BeeMutation Scholarly; private static BeeMutation Scholarly;
private static BeeMutation Savant; private static BeeMutation Savant;
private static BeeMutation Aware; private static BeeMutation Aware;
private static BeeMutation Vis;
private static BeeMutation Vis1;
private static BeeMutation Pure;
private static BeeMutation Flux;
private static BeeMutation Node;
private static BeeMutation Node1;
private static BeeMutation Skulking; private static BeeMutation Skulking;
private static BeeMutation Brainy;
private static BeeMutation Gossamer;
private static BeeMutation Wispy;
private static BeeMutation Batty;
private static BeeMutation Ghastly; private static BeeMutation Ghastly;
private static BeeMutation Spidery;
private static BeeMutation Timely; private static BeeMutation Timely;
private static BeeMutation Lordly; private static BeeMutation Lordly;
private static BeeMutation Doctoral; private static BeeMutation Doctoral;
private static BeeMutation Spirit; private static BeeMutation Spirit;
private static BeeMutation Spirit1; private static BeeMutation Spirit1;
private static BeeMutation Soul; private static BeeMutation Soul;
private static BeeMutation Minium;
private static BeeMutation Iron; private static BeeMutation Iron;
private static BeeMutation Gold; private static BeeMutation Gold;
private static BeeMutation Copper; private static BeeMutation Copper;
@@ -60,13 +61,39 @@ public class BeeMutation implements IBeeMutation
private static BeeMutation Lead; private static BeeMutation Lead;
private static BeeMutation Diamond; private static BeeMutation Diamond;
private static BeeMutation Emerald; private static BeeMutation Emerald;
private static BeeMutation Lead1; private static BeeMutation Apatite;
private static BeeMutation Lead2;
private static BeeMutation Vis;
private static BeeMutation Vis1;
private static BeeMutation Pure;
private static BeeMutation Flux;
private static BeeMutation Node;
private static BeeMutation Node1;
private static BeeMutation Rejuvination;
private static BeeMutation Rejuvination1;
private static BeeMutation Brainy;
private static BeeMutation Gossamer;
private static BeeMutation Wispy;
private static BeeMutation Batty;
private static BeeMutation Beef; private static BeeMutation Beef;
private static BeeMutation Chicken; private static BeeMutation Chicken;
private static BeeMutation Pork; private static BeeMutation Pork;
private static BeeMutation Aura;
private static BeeMutation Aura1; private static BeeMutation Minium;
private static BeeMutation Essence;
private static BeeMutation Quintessence;
private static BeeMutation EarthAM;
private static BeeMutation AirAM;
private static BeeMutation FireAM;
private static BeeMutation WaterAM;
private static BeeMutation Lightning;
private static BeeMutation Ice;
private static BeeMutation Plant;
private static BeeMutation Magma;
private static BeeMutation ArcaneAM;
private static BeeMutation Vortex;
private static BeeMutation Wight;
public static void setupMutations() public static void setupMutations()
{ {
@@ -74,128 +101,149 @@ public class BeeMutation implements IBeeMutation
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(Allele.getBaseSpecies("Ended"), BeeSpecies.ESOTERIC, BeeSpecies.MYSTERIOUS, 15); BeeMutation.Mysterious = new BeeMutation(Allele.getBaseSpecies("Ended"), BeeSpecies.ESOTERIC, BeeSpecies.MYSTERIOUS, 8);
BeeMutation.Mysterious1 = new BeeMutation(Allele.getBaseSpecies("Demonic"), BeeSpecies.ESOTERIC, BeeSpecies.MYSTERIOUS, 4); BeeMutation.Mysterious1 = new BeeMutation(Allele.getBaseSpecies("Demonic"), BeeSpecies.ESOTERIC, BeeSpecies.MYSTERIOUS, 11);
BeeMutation.Mysterious2 = new BeeMutation(Allele.getBaseSpecies("Monastic"), BeeSpecies.ESOTERIC, BeeSpecies.MYSTERIOUS, 9);
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, 12);
BeeMutation.Charmed1 = new BeeMutation(Allele.getBaseSpecies("Diligent"), Allele.getBaseSpecies("Monastic"), BeeSpecies.CHARMED, 18);
BeeMutation.Enchanted = new BeeMutation(BeeSpecies.CHARMED, Allele.getBaseSpecies("Valiant"), BeeSpecies.ENCHANTED, 8); BeeMutation.Enchanted = new BeeMutation(BeeSpecies.CHARMED, Allele.getBaseSpecies("Valiant"), BeeSpecies.ENCHANTED, 8);
BeeMutation.Supernatural = new BeeMutation(BeeSpecies.CHARMED, BeeSpecies.ENCHANTED, BeeSpecies.SUPERNATURAL, 10) BeeMutation.Enchanted1 = new BeeMutation(BeeSpecies.CHARMED, Allele.getBaseSpecies("Monastic"), BeeSpecies.ENCHANTED, 8);
BeeMutation.Supernatural = new BeeMutation(BeeSpecies.CHARMED, BeeSpecies.ENCHANTED, BeeSpecies.SUPERNATURAL, 6)
.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(Allele.getBaseSpecies("Hermitic"), BeeSpecies.ENCHANTED, BeeSpecies.PUPIL, 10);
BeeMutation.Ghastly = new BeeMutation(BeeSpecies.SKULKING, BeeSpecies.SOUL, BeeSpecies.GHASTLY, 13);
BeeMutation.Stark = new BeeMutation(BeeSpecies.ARCANE, BeeSpecies.SUPERNATURAL, BeeSpecies.STARK, 8); BeeMutation.Stark = new BeeMutation(BeeSpecies.ARCANE, BeeSpecies.SUPERNATURAL, BeeSpecies.STARK, 8);
BeeMutation.Spidery = new BeeMutation(BeeSpecies.SKULKING, Allele.getBaseSpecies("Tropical"), BeeSpecies.SPIDERY, 10);
BeeMutation.Aware = new BeeMutation(Allele.getBaseSpecies("Demonic"), Allele.getBaseSpecies("Edenic"), BeeSpecies.AWARE, 12);
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);
BeeMutation.Minium = new BeeMutation(Allele.getBaseSpecies("Sinister"), BeeSpecies.MYSTERIOUS, BeeSpecies.MINIUM, 11); BeeMutation.Spirit = new BeeMutation(Allele.getBaseSpecies("Fiendish"), BeeSpecies.ENCHANTED, BeeSpecies.SPIRIT, 8);
BeeMutation.Spirit1 = new BeeMutation(Allele.getBaseSpecies("Fiendish"), Allele.getBaseSpecies("Ended"), BeeSpecies.SPIRIT, 13);
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.Soul = new BeeMutation(Allele.getBaseSpecies("Fiendish"), BeeSpecies.SPIRIT, BeeSpecies.SOUL, 11);
BeeMutation.Iron = new BeeMutation(Allele.getBaseSpecies("Industrious"), Allele.getBaseSpecies("Diligent"), BeeSpecies.IRON, 10); BeeMutation.Iron = new BeeMutation(Allele.getBaseSpecies("Industrious"), Allele.getBaseSpecies("Common"), BeeSpecies.IRON, 8)
.setBlockRequired(Block.blockIron);
baseA = (BeeSpecies.MINIUM.isActive()) ? BeeSpecies.MINIUM : Allele.getBaseSpecies("Imperial"); baseA = (BeeSpecies.MINIUM.isActive()) ? BeeSpecies.MINIUM : Allele.getBaseSpecies("Imperial");
baseB = (BeeSpecies.LEAD.isActive()) ? BeeSpecies.LEAD : BeeSpecies.IRON; baseB = (BeeSpecies.LEAD.isActive()) ? BeeSpecies.LEAD : BeeSpecies.IRON;
BeeMutation.Gold = new BeeMutation(baseA, baseB, BeeSpecies.GOLD, 8); BeeMutation.Gold = new BeeMutation(baseA, baseB, BeeSpecies.GOLD, 5)
.setBlockRequired(Block.blockGold);
if (BeeSpecies.COPPER.isActive()) if (BeeSpecies.COPPER.isActive())
{ {
BeeMutation.Copper = new BeeMutation(Allele.getBaseSpecies("Industrious"), Allele.getBaseSpecies("Meadows"), BeeSpecies.COPPER, 12); BeeMutation.Copper = new BeeMutation(Allele.getBaseSpecies("Industrious"), Allele.getBaseSpecies("Meadows"), BeeSpecies.COPPER, 10);
if (OreDictionary.getOres("blockCopper").size() > 0)
{
Copper.setBlockRequired("blockCopper");
}
} }
if (BeeSpecies.TIN.isActive()) if (BeeSpecies.TIN.isActive())
{ {
BeeMutation.Tin = new BeeMutation(Allele.getBaseSpecies("Industrious"), Allele.getBaseSpecies("Forest"), BeeSpecies.TIN, 12); BeeMutation.Tin = new BeeMutation(Allele.getBaseSpecies("Industrious"), Allele.getBaseSpecies("Forest"), BeeSpecies.TIN, 9);
if (OreDictionary.getOres("blockTin").size() > 0)
{
Tin.setBlockRequired("blockTin");
}
} }
if (BeeSpecies.SILVER.isActive()) if (BeeSpecies.SILVER.isActive())
{ {
BeeMutation.Silver = new BeeMutation(Allele.getBaseSpecies("Imperial"), Allele.getBaseSpecies("Modest"), BeeSpecies.SILVER, 10); BeeMutation.Silver = new BeeMutation(Allele.getBaseSpecies("Imperial"), Allele.getBaseSpecies("Modest"), BeeSpecies.SILVER, 8);
if (OreDictionary.getOres("blockSilver").size() > 0)
{
Silver.setBlockRequired("blockSilver");
}
} }
if (BeeSpecies.LEAD.isActive()) if (BeeSpecies.LEAD.isActive())
{ {
if (BeeSpecies.COPPER.isActive())
{
BeeMutation.Lead = new BeeMutation(Allele.getBaseSpecies("Industrious"), BeeSpecies.COPPER, BeeSpecies.LEAD, 13);
}
if (BeeSpecies.TIN.isActive()) if (BeeSpecies.TIN.isActive())
{ {
BeeMutation.Lead1 = new BeeMutation(Allele.getBaseSpecies("Industrious"), BeeSpecies.TIN, BeeSpecies.LEAD, 13); baseA = BeeSpecies.TIN;
}
else if (BeeSpecies.COPPER.isActive())
{
baseA = BeeSpecies.COPPER;
}
else
{
baseA = BeeSpecies.IRON;
}
BeeMutation.Lead = new BeeMutation(baseA, Allele.getBaseSpecies("Common"), BeeSpecies.LEAD, 8);
if (OreDictionary.getOres("blockLead").size() > 0)
{
Lead.setBlockRequired("blockLead");
} }
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); BeeMutation.Diamond = new BeeMutation(Allele.getBaseSpecies("Austere"), BeeSpecies.GOLD, BeeSpecies.DIAMOND, 4)
.setBlockRequired(Block.blockDiamond);
baseA = (BeeSpecies.SILVER.isActive()) ? BeeSpecies.SILVER : Allele.getBaseSpecies("Imperial"); baseA = (BeeSpecies.SILVER.isActive()) ? BeeSpecies.SILVER : Allele.getBaseSpecies("Imperial");
BeeMutation.Emerald = new BeeMutation(Allele.getBaseSpecies("Austere"), baseA, BeeSpecies.EMERALD, 6); BeeMutation.Emerald = new BeeMutation(Allele.getBaseSpecies("Austere"), baseA, BeeSpecies.EMERALD, 4)
.setBlockRequired(Block.blockEmerald);
if (BeeSpecies.BEEF.isActive()) BeeMutation.Apatite = new BeeMutation(BeeSpecies.EARTH, Allele.getBaseSpecies("Rural"), BeeSpecies.APATITE, 6)
{ .setBlockAndMetaRequired(BlockInterface.getBlock("resources").itemID, ForestryHelper.BlockResource.APATITE.ordinal());
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... baseA = (ExtraBeesHelper.isActive()) ? Allele.getExtraSpecies("desolate") : Allele.getBaseSpecies("Modest");
if (ExtraBeesHelper.isActive()) BeeMutation.Skulking = new BeeMutation(BeeSpecies.MYSTERIOUS, baseA, BeeSpecies.SKULKING, 10);
{
BeeMutation.Skulking = new BeeMutation(BeeSpecies.MYSTERIOUS, Allele.getExtraSpecies("desolate"), BeeSpecies.SKULKING, 10);
BeeMutation.Ghastly = new BeeMutation(BeeSpecies.SKULKING, Allele.getExtraSpecies("creeper"), BeeSpecies.GHASTLY, 13);
}
else
{
BeeMutation.Skulking = new BeeMutation(BeeSpecies.MYSTERIOUS, Allele.getBaseSpecies("Modest"), BeeSpecies.SKULKING, 10);
BeeMutation.Ghastly = new BeeMutation(BeeSpecies.SKULKING, Allele.getBaseSpecies("Austere"), BeeSpecies.GHASTLY, 13);
}
if (ThaumcraftHelper.isActive()) if (ThaumcraftHelper.isActive())
{ {
BeeMutation.Scholarly = new BeeMutation(BeeSpecies.PUPIL, BeeSpecies.ARCANE, BeeSpecies.SCHOLARLY, 8); BeeMutation.Scholarly = new BeeMutation(BeeSpecies.PUPIL, Allele.getBaseSpecies("Hermitic"), BeeSpecies.SCHOLARLY, 8);
BeeMutation.Savant = new BeeMutation(BeeSpecies.PUPIL, BeeSpecies.SCHOLARLY, BeeSpecies.SAVANT, 6); BeeMutation.Savant = new BeeMutation(BeeSpecies.PUPIL, BeeSpecies.SCHOLARLY, BeeSpecies.SAVANT, 6);
BeeMutation.Aware = new BeeMutation(Allele.getBaseSpecies("Demonic"), Allele.getBaseSpecies("Edenic"), BeeSpecies.AWARE, 12);
BeeMutation.Vis = new BeeMutation(BeeSpecies.AWARE, BeeSpecies.ARCANE, BeeSpecies.VIS, 9) BeeMutation.Vis = new BeeMutation(BeeSpecies.AWARE, BeeSpecies.ARCANE, BeeSpecies.VIS, 9)
.setAuraNodeRequired(40); .setAuraNodeRequired(40);
BeeMutation.Vis1 = new BeeMutation(BeeSpecies.AWARE, BeeSpecies.STARK, BeeSpecies.VIS, 12) BeeMutation.Vis1 = new BeeMutation(BeeSpecies.AWARE, BeeSpecies.STARK, BeeSpecies.VIS, 12)
.setAuraNodeRequired(80); .setAuraNodeRequired(80);
BeeMutation.Pure = new BeeMutation(BeeSpecies.VIS, Allele.getBaseSpecies("Edenic"), BeeSpecies.PURE, 7) BeeMutation.Pure = new BeeMutation(BeeSpecies.VIS, Allele.getBaseSpecies("Edenic"), BeeSpecies.PURE, 7)
.setAuraNodeTypeRequired(5, EnumNodeType.PURE).setMoonPhaseBonus(MoonPhase.NEW, MoonPhase.NEW, 1.6f); .setAuraNodeTypeRequired(5, EnumNodeType.PURE).setMoonPhaseBonus(MoonPhase.NEW, MoonPhase.NEW, 1.6f);
BeeMutation.Flux = new BeeMutation(BeeSpecies.VIS, Allele.getBaseSpecies("Edenic"), BeeSpecies.FLUX, 7) BeeMutation.Flux = new BeeMutation(BeeSpecies.VIS, Allele.getBaseSpecies("Edenic"), BeeSpecies.FLUX, 7)
.setAuraNodeTypeRequired(30, EnumNodeType.UNSTABLE).setMoonPhaseBonus(MoonPhase.FULL, MoonPhase.FULL, 1.6f); .setAuraNodeTypeRequired(30, EnumNodeType.UNSTABLE).setMoonPhaseBonus(MoonPhase.FULL, MoonPhase.FULL, 1.6f);
BeeMutation.Node = new BeeMutation(BeeSpecies.PURE, BeeSpecies.FLUX, BeeSpecies.NODE, 2) BeeMutation.Node = new BeeMutation(BeeSpecies.VIS, Allele.getBaseSpecies("Hermitic"), BeeSpecies.NODE, 2)
.setAuraNodeRequired(4).setMoonPhaseRestricted(MoonPhase.WANING_HALF, MoonPhase.WANING_HALF); .setAuraNodeRequired(4).setMoonPhaseRestricted(MoonPhase.WANING_HALF, MoonPhase.WANING_HALF);
BeeMutation.Node1 = new BeeMutation(BeeSpecies.PURE, BeeSpecies.FLUX, BeeSpecies.NODE, 2) BeeMutation.Node1 = new BeeMutation(BeeSpecies.VIS, Allele.getBaseSpecies("Hermitic"), BeeSpecies.NODE, 2)
.setAuraNodeRequired(4).setMoonPhaseRestricted(MoonPhase.WAXING_HALF, MoonPhase.WAXING_HALF); .setAuraNodeRequired(4).setMoonPhaseRestricted(MoonPhase.WAXING_HALF, MoonPhase.WAXING_HALF);
BeeMutation.Beef = new BeeMutation(Allele.getBaseSpecies("Common"), BeeSpecies.SKULKING, BeeSpecies.BEEF, 10);
BeeMutation.Chicken = new BeeMutation(Allele.getBaseSpecies("Common"), BeeSpecies.SKULKING, BeeSpecies.CHICKEN, 10);
BeeMutation.Pork = new BeeMutation(Allele.getBaseSpecies("Common"), BeeSpecies.SKULKING, BeeSpecies.PORK, 10);
if (ExtraBeesHelper.isActive()) if (ExtraBeesHelper.isActive())
{ {
BeeMutation.Brainy = new BeeMutation(BeeSpecies.SKULKING, Allele.getExtraSpecies("rotten"), BeeSpecies.BRAINY, 12); 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.Gossamer = new BeeMutation(BeeSpecies.SKULKING, Allele.getExtraSpecies("ancient"), BeeSpecies.GOSSAMER, 10);
BeeMutation.Batty = new BeeMutation(BeeSpecies.SKULKING, Allele.getExtraSpecies("rock"), BeeSpecies.BATTY, 14); 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.Rejuvination = new BeeMutation(BeeSpecies.VIS, Allele.getExtraSpecies("energetic"), BeeSpecies.REJUVENATING, 3);
BeeMutation.Aura1 = new BeeMutation(BeeSpecies.VIS, Allele.getExtraSpecies("energetic"), BeeSpecies.REJUVENATING, 3); BeeMutation.Rejuvination1 = new BeeMutation(BeeSpecies.VIS, Allele.getExtraSpecies("energetic"), BeeSpecies.REJUVENATING, 3);
} }
else else
{ {
BeeMutation.Brainy = new BeeMutation(BeeSpecies.SKULKING, Allele.getBaseSpecies("Sinister"), BeeSpecies.BRAINY, 10); BeeMutation.Brainy = new BeeMutation(BeeSpecies.SKULKING, Allele.getBaseSpecies("Sinister"), BeeSpecies.BRAINY, 10);
BeeMutation.Gossamer = new BeeMutation(BeeSpecies.SKULKING, BeeSpecies.SUPERNATURAL, BeeSpecies.GOSSAMER, 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.Batty = new BeeMutation(BeeSpecies.SKULKING, Allele.getBaseSpecies("Frugal"), BeeSpecies.BATTY, 11);
BeeMutation.Aura = new BeeMutation(BeeSpecies.VIS, Allele.getBaseSpecies("Industrious"), BeeSpecies.REJUVENATING, 3); BeeMutation.Rejuvination = new BeeMutation(BeeSpecies.VIS, Allele.getBaseSpecies("Industrious"), BeeSpecies.REJUVENATING, 3);
BeeMutation.Aura1 = new BeeMutation(BeeSpecies.VIS, Allele.getBaseSpecies("Industrious"), BeeSpecies.REJUVENATING, 3); BeeMutation.Rejuvination1 = new BeeMutation(BeeSpecies.VIS, Allele.getBaseSpecies("Industrious"), BeeSpecies.REJUVENATING, 3);
} }
BeeMutation.Gossamer.setMoonPhaseRestricted(MoonPhase.FULL, MoonPhase.WANING_CRESCENT); BeeMutation.Gossamer.setMoonPhaseRestricted(MoonPhase.FULL, MoonPhase.WANING_CRESCENT);
BeeMutation.Wispy = new BeeMutation(BeeSpecies.GOSSAMER, Allele.getBaseSpecies("Cultivated"), BeeSpecies.WISPY, 8); BeeMutation.Wispy = new BeeMutation(BeeSpecies.GOSSAMER, BeeSpecies.SOUL, BeeSpecies.WISPY, 8);
BeeMutation.Aura.setMoonPhaseRestricted(MoonPhase.WANING_CRESCENT, MoonPhase.WANING_CRESCENT); BeeMutation.Rejuvination.setAuraNodeRequired(15).setMoonPhaseRestricted(MoonPhase.WAXING_HALF, MoonPhase.WANING_HALF)
BeeMutation.Aura1.setMoonPhaseRestricted(MoonPhase.WAXING_CRESCENT, MoonPhase.WAXING_CRESCENT); .setMoonPhaseBonus(MoonPhase.FULL, MoonPhase.FULL, 6);
BeeMutation.Rejuvination1.setAuraNodeRequired(15).setMoonPhaseRestricted(MoonPhase.WAXING_HALF, MoonPhase.WANING_HALF)
.setMoonPhaseBonus(MoonPhase.FULL, MoonPhase.FULL, 6);
} }
else else
{ {
@@ -215,6 +263,35 @@ public class BeeMutation implements IBeeMutation
{ {
BeeMutation.Minium = new BeeMutation(Allele.getBaseSpecies("Frugal"), BeeSpecies.PUPIL, BeeSpecies.MINIUM, 10); BeeMutation.Minium = new BeeMutation(Allele.getBaseSpecies("Frugal"), BeeSpecies.PUPIL, BeeSpecies.MINIUM, 10);
} }
if (ArsMagicaHelper.isActive())
{
BeeMutation.Essence = new BeeMutation(BeeSpecies.ESOTERIC, BeeSpecies.CHARMED, BeeSpecies.ESSENCE, 15);
BeeMutation.Quintessence = new BeeMutation(BeeSpecies.ESSENCE, Allele.getBaseSpecies("Austere"), BeeSpecies.QUINTESSENCE, 7);
BeeMutation.EarthAM = new BeeMutation(BeeSpecies.ESSENCE, BeeSpecies.EARTH, BeeSpecies.EARTH_AM, 12);
BeeMutation.AirAM = new BeeMutation(BeeSpecies.ESSENCE, BeeSpecies.AIR, BeeSpecies.AIR_AM, 12);
BeeMutation.FireAM = new BeeMutation(BeeSpecies.ESSENCE, BeeSpecies.FIRE, BeeSpecies.FIRE_AM, 12);
BeeMutation.WaterAM = new BeeMutation(BeeSpecies.ESSENCE, BeeSpecies.WATER, BeeSpecies.WATER_AM, 12);
BeeMutation.Lightning = new BeeMutation(BeeSpecies.AIR_AM, BeeSpecies.FIRE_AM, BeeSpecies.LIGHTNING, 8);
BeeMutation.Ice = new BeeMutation(BeeSpecies.WATER_AM, Allele.getBaseSpecies("Icy"), BeeSpecies.ICE, 8);
BeeMutation.Plant = new BeeMutation(BeeSpecies.EARTH_AM, BeeSpecies.WATER_AM, BeeSpecies.PLANT, 8);
BeeMutation.Magma = new BeeMutation(BeeSpecies.FIRE_AM, BeeSpecies.EARTH_AM, BeeSpecies.MAGMA, 8);
BeeMutation.ArcaneAM = new BeeMutation(BeeSpecies.QUINTESSENCE, Allele.getBaseSpecies("Hermitic"), BeeSpecies.ARCANE_AM, 6);
BeeMutation.Wight = new BeeMutation(BeeSpecies.SOUL, BeeSpecies.SKULKING, BeeSpecies.WIGHT, 10);
if (ExtraBeesHelper.isActive())
{
BeeMutation.Vortex = new BeeMutation(BeeSpecies.QUINTESSENCE, Allele.getExtraSpecies("creeper"), BeeSpecies.VORTEX, 12);
}
else
{
BeeMutation.Vortex = new BeeMutation(BeeSpecies.QUINTESSENCE, Allele.getBaseSpecies("Austere"), BeeSpecies.VORTEX, 12);
}
}
} }
private IAllele parent1; private IAllele parent1;
@@ -229,6 +306,10 @@ public class BeeMutation implements IBeeMutation
private boolean nodeRequired; private boolean nodeRequired;
private EnumNodeType nodeType; private EnumNodeType nodeType;
private double nodeRange; private double nodeRange;
private boolean requiresBlock;
private int requiredBlockId;
private int requiredBlockMeta;
private String requiredBlockOreDictEntry;
public BeeMutation(IAlleleBeeSpecies species0, IAlleleBeeSpecies species1, BeeSpecies resultSpecies, int percentChance) public BeeMutation(IAlleleBeeSpecies species0, IAlleleBeeSpecies species1, BeeSpecies resultSpecies, int percentChance)
{ {
@@ -240,6 +321,9 @@ public class BeeMutation implements IBeeMutation
this.isMoonRestricted = false; this.isMoonRestricted = false;
this.moonPhaseMutationBonus = -1f; this.moonPhaseMutationBonus = -1f;
this.nodeType = null; this.nodeType = null;
this.requiresBlock = false;
this.requiredBlockMeta = OreDictionary.WILDCARD_VALUE;
this.requiredBlockOreDictEntry = null;
BeeManager.breedingManager.registerBeeMutation(this); BeeManager.breedingManager.registerBeeMutation(this);
} }
@@ -291,6 +375,32 @@ public class BeeMutation implements IBeeMutation
} }
} }
if (this.requiresBlock)
{
int blockId = housing.getWorld().getBlockId(housing.getXCoord(), housing.getYCoord() - 1, housing.getZCoord());
int blockMeta = housing.getWorld().getBlockMetadata(housing.getXCoord(), housing.getYCoord() - 1, housing.getZCoord());
if (this.requiredBlockOreDictEntry != null)
{
int dicId = OreDictionary.getOreID(new ItemStack(blockId, 1, blockMeta));
if (dicId != -1)
{
if (!OreDictionary.getOreName(dicId).equals(this.requiredBlockOreDictEntry))
{
chance = 0;
}
}
else
{
chance = 0;
}
}
else if (this.requiredBlockId != blockId || (this.requiredBlockMeta != OreDictionary.WILDCARD_VALUE && this.requiredBlockMeta != blockMeta))
{
chance = 0;
}
}
finalChance = Math.round(chance finalChance = Math.round(chance
* housing.getMutationModifier((IBeeGenome) genome0, * housing.getMutationModifier((IBeeGenome) genome0,
(IBeeGenome) genome1, chance) (IBeeGenome) genome1, chance)
@@ -353,6 +463,48 @@ public class BeeMutation implements IBeeMutation
return isSecret; return isSecret;
} }
public BeeMutation setBlockRequired(int blockId)
{
this.requiresBlock = true;
this.requiredBlockId = blockId;
return this;
}
public BeeMutation setBlockRequired(Block block)
{
this.requiresBlock = true;
this.requiredBlockId = block.blockID;
return this;
}
public BeeMutation setBlockAndMetaRequired(int blockId, int meta)
{
this.requiresBlock = true;
this.requiredBlockId = blockId;
this.requiredBlockMeta = meta;
return this;
}
public BeeMutation setBlockAndMetaRequired(Block block, int meta)
{
this.requiresBlock = true;
this.requiredBlockId = block.blockID;
this.requiredBlockMeta = meta;
return this;
}
public BeeMutation setBlockRequired(String oreDictEntry)
{
this.requiresBlock = true;
this.requiredBlockOreDictEntry = oreDictEntry;
return this;
}
public BeeMutation setMoonPhaseRestricted(MoonPhase begin, MoonPhase end) public BeeMutation setMoonPhaseRestricted(MoonPhase begin, MoonPhase end)
{ {
this.isMoonRestricted = true; this.isMoonRestricted = true;
+227 -81
View File
@@ -16,6 +16,8 @@ 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.VersionInfo;
import thaumicbees.main.utils.compat.ArsMagicaHelper;
import thaumicbees.main.utils.compat.EquivalentExchangeHelper; 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;
@@ -49,54 +51,30 @@ public enum BeeSpecies implements IAlleleBeeSpecies, IIconProvider
BeeClassification.SUPERNATURAL, 0x005614, EnumTemperature.NORMAL, EnumHumidity.NORMAL, true, true), BeeClassification.SUPERNATURAL, 0x005614, EnumTemperature.NORMAL, EnumHumidity.NORMAL, true, true),
PUPIL("Pupil", "disciplina", PUPIL("Pupil", "disciplina",
BeeClassification.SCHOLARLY, 0xFFFF00, EnumTemperature.NORMAL, EnumHumidity.ARID, false, true), BeeClassification.SCHOLARLY, 0xFFFF00, EnumTemperature.NORMAL, EnumHumidity.ARID, false, true),
SCHOLARLY("Scholarly", "studiosis",
BeeClassification.SCHOLARLY, 0x6E0000, EnumTemperature.NORMAL, EnumHumidity.ARID, false, false),
SAVANT("Savant", "philologus",
BeeClassification.SCHOLARLY, 0x6E1C6D, EnumTemperature.NORMAL, EnumHumidity.ARID, true, false),
STARK("Stark", "torridae", STARK("Stark", "torridae",
BeeClassification.THAUMIC, 0xCCCCCC, 0x999999, EnumTemperature.NORMAL, EnumHumidity.NORMAL, true, false), BeeClassification.MAGICAL, 0xCCCCCC, 0x999999, EnumTemperature.NORMAL, EnumHumidity.NORMAL, true, false),
AIR("Aura", "ventosa", AIR("Aura", "ventosa",
BeeClassification.THAUMIC, 0xD9D636, 0xA19E10, EnumTemperature.NORMAL, EnumHumidity.NORMAL, true, true), BeeClassification.MAGICAL, 0xD9D636, 0xA19E10, EnumTemperature.NORMAL, EnumHumidity.NORMAL, true, true),
FIRE("Ignis", "praefervidus", FIRE("Ignis", "praefervidus",
BeeClassification.THAUMIC, 0xE50B0B, 0x95132F, EnumTemperature.HOT, EnumHumidity.ARID, true, true), BeeClassification.MAGICAL, 0xE50B0B, 0x95132F, EnumTemperature.HOT, EnumHumidity.ARID, true, true),
WATER("Aqua", "umidus", WATER("Aqua", "umidus",
BeeClassification.THAUMIC, 0x36CFD9, 0x1054A1, EnumTemperature.NORMAL, EnumHumidity.DAMP, true, true), BeeClassification.MAGICAL, 0x36CFD9, 0x1054A1, EnumTemperature.NORMAL, EnumHumidity.DAMP, true, true),
EARTH("Solum", "sordida", EARTH("Solum", "sordida",
BeeClassification.THAUMIC, 0x005100, 0x00a000, EnumTemperature.NORMAL, EnumHumidity.NORMAL, true, true), BeeClassification.MAGICAL, 0x005100, 0x00a000, EnumTemperature.NORMAL, EnumHumidity.NORMAL, true, true),
INFUSED("Praecantatio", "azanorius",
BeeClassification.THAUMIC, 0xaa32fc, 0x7A489E, EnumTemperature.NORMAL, EnumHumidity.NORMAL, true, true),
AWARE("Aware", "sensibilis", AWARE("Aware", "sensibilis",
BeeClassification.VIS, 0xb0092e9, EnumTemperature.NORMAL, EnumHumidity.NORMAL, false, false), BeeClassification.MAGICAL, 0xb0092e9, EnumTemperature.NORMAL, EnumHumidity.NORMAL, false, false),
VIS("Vis", "arcanus saecula",
BeeClassification.VIS, 0x004c99, EnumTemperature.NORMAL, EnumHumidity.NORMAL, false, false),
PURE("Pure", "arcanus puritatem",
BeeClassification.VIS, 0xb0092e9, EnumTemperature.NORMAL, EnumHumidity.NORMAL, true, false),
FLUX("Flux", "arcanus labe",
BeeClassification.VIS, 0x004c99, EnumTemperature.NORMAL, EnumHumidity.NORMAL, true, false),
NODE("Node", "conficiens",
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",
BeeClassification.SKULKING, 0x83FF70, 0xe15236, EnumTemperature.NORMAL, EnumHumidity.NORMAL, false, true),
GOSSAMER("Gossamer", "perlucidus",
BeeClassification.SKULKING, 0x183f66, 0xe15236, EnumTemperature.NORMAL, EnumHumidity.NORMAL, false, true),
WISPY("Wispy", "umbrabilis",
BeeClassification.SKULKING, 0x9cb8d5, 0xe15236, EnumTemperature.NORMAL, EnumHumidity.NORMAL, false, false),
BATTY("Batty", "chiroptera",
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),
SPIDERY("Spidery", "araneolus",
BeeClassification.SKULKING, 0x0888888, 0x222222, EnumTemperature.NORMAL, EnumHumidity.NORMAL, false, true),
TIMELY("Timely", "gallifreis", TIMELY("Timely", "gallifreis",
BeeClassification.TIME, 0xC6AF86, EnumTemperature.NORMAL, EnumHumidity.NORMAL, false, true), BeeClassification.TIME, 0xC6AF86, EnumTemperature.NORMAL, EnumHumidity.NORMAL, false, true),
LORDLY("Lordly", "rassilonis", LORDLY("Lordly", "rassilonis",
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", SPIRIT("Spirit", "larva",
BeeClassification.SOUL, 0xb2964b, EnumTemperature.WARM, EnumHumidity.NORMAL, false, true), BeeClassification.SOUL, 0xb2964b, EnumTemperature.WARM, EnumHumidity.NORMAL, false, true),
SOUL("Soul", "anima", SOUL("Soul", "anima",
@@ -117,12 +95,72 @@ public enum BeeSpecies implements IAlleleBeeSpecies, IIconProvider
BeeClassification.GEM, 0x209581, 0x8DF5E3, EnumTemperature.NORMAL, EnumHumidity.NORMAL, true, false), BeeClassification.GEM, 0x209581, 0x8DF5E3, EnumTemperature.NORMAL, EnumHumidity.NORMAL, true, false),
EMERALD("Emerald", "prasinus", EMERALD("Emerald", "prasinus",
BeeClassification.GEM, 0x005300, 0x17DD62, EnumTemperature.NORMAL, EnumHumidity.NORMAL, true, false), BeeClassification.GEM, 0x005300, 0x17DD62, EnumTemperature.NORMAL, EnumHumidity.NORMAL, true, false),
APATITE("Apatite", "apatite",
BeeClassification.GEM, 0x2EA7EC, 0x001D51, EnumTemperature.NORMAL, EnumHumidity.NORMAL, false, false),
// --------- Thaumcraft Bees ---------------------------------------------------------------------------------------
SCHOLARLY("Scholarly", "studiosis",
BeeClassification.SCHOLARLY, 0x6E0000, EnumTemperature.NORMAL, EnumHumidity.ARID, false, false),
SAVANT("Savant", "philologus",
BeeClassification.SCHOLARLY, 0x6E1C6D, EnumTemperature.NORMAL, EnumHumidity.ARID, true, false),
INFUSED("Praecantatio", "azanorius",
BeeClassification.THAUMIC, 0xaa32fc, 0x7A489E, EnumTemperature.NORMAL, EnumHumidity.NORMAL, true, true),
VIS("Vis", "arcanus saecula",
BeeClassification.THAUMIC, 0x004c99, EnumTemperature.NORMAL, EnumHumidity.NORMAL, false, false),
PURE("Pure", "arcanus puritatem",
BeeClassification.THAUMIC, 0xb0092e9, EnumTemperature.NORMAL, EnumHumidity.NORMAL, true, false),
FLUX("Flux", "arcanus labe",
BeeClassification.THAUMIC, 0x004c99, EnumTemperature.NORMAL, EnumHumidity.NORMAL, true, false),
NODE("Node", "conficiens",
BeeClassification.THAUMIC, 0xFFF266, 0xFF8CE9, EnumTemperature.NORMAL, EnumHumidity.NORMAL, true, false),
REJUVENATING("Rejuvenating", "arcanus vitae",
BeeClassification.THAUMIC, 0x91D0D9, EnumTemperature.NORMAL, EnumHumidity.NORMAL, true, false),
BRAINY("Brainy", "cerebrum",
BeeClassification.THAUMIC, 0x83FF70, 0xe15236, EnumTemperature.NORMAL, EnumHumidity.NORMAL, false, true),
GOSSAMER("Gossamer", "perlucidus",
BeeClassification.THAUMIC, 0x183f66, 0xe15236, EnumTemperature.NORMAL, EnumHumidity.NORMAL, false, true),
WISPY("Wispy", "umbrabilis",
BeeClassification.THAUMIC, 0x9cb8d5, 0xe15236, EnumTemperature.NORMAL, EnumHumidity.NORMAL, false, false),
BATTY("Batty", "chiroptera",
BeeClassification.THAUMIC, 0x27350d, 0xe15236, EnumTemperature.NORMAL, EnumHumidity.NORMAL, false, true),
CHICKEN("Chicken", "pullus", CHICKEN("Chicken", "pullus",
BeeClassification.FLESHY, 0x7D431E, 0xE0905E, EnumTemperature.NORMAL, EnumHumidity.NORMAL, false, true), BeeClassification.FLESHY, 0x7D431E, 0xE0905E, EnumTemperature.NORMAL, EnumHumidity.NORMAL, false, true),
BEEF("Beef", "bubulae", BEEF("Beef", "bubulae",
BeeClassification.FLESHY, 0x40221A, 0xAC6753, EnumTemperature.NORMAL, EnumHumidity.NORMAL, false, true), BeeClassification.FLESHY, 0x40221A, 0xAC6753, EnumTemperature.NORMAL, EnumHumidity.NORMAL, false, true),
PORK("Pork", "porcina", PORK("Pork", "porcina",
BeeClassification.FLESHY, 0x725D2F, 0xD2BF93, EnumTemperature.NORMAL, EnumHumidity.NORMAL, false, true), BeeClassification.FLESHY, 0x725D2F, 0xD2BF93, EnumTemperature.NORMAL, EnumHumidity.NORMAL, false, true),
// --------- Equivalent Exchange Bees -----------------------------------------------------------------------------
MINIUM("Minium", "mutabilis",
BeeClassification.ALCHEMICAL, 0xac0921, 0x3a030b, EnumTemperature.NORMAL, EnumHumidity.NORMAL, false, true),
// --------- Ars Magica Bees --------------------------------------------------------------------------------------
ESSENCE("Essence", "essentia",
BeeClassification.ESSENTIAL, 0x86BBC5, 0xE3A55B, EnumTemperature.NORMAL, EnumHumidity.NORMAL, false, true),
QUINTESSENCE("Quintessence", "cor essentia",
BeeClassification.ESSENTIAL, 0xE3A45B, 0xE3A55B, EnumTemperature.NORMAL, EnumHumidity.NORMAL, true, true),
EARTH_AM("Erde", "magica terra",
BeeClassification.ESSENTIAL, 0xAA875E, 0xE3A55B, EnumTemperature.WARM, EnumHumidity.ARID, false, false),
AIR_AM("Luft", "magica aer",
BeeClassification.ESSENTIAL, 0xD5EB9D, 0xE3A55B, EnumTemperature.NORMAL, EnumHumidity.NORMAL, false, false),
FIRE_AM("Feuer", "magica ignis",
BeeClassification.ESSENTIAL, 0x93451E, 0xE3A55B, EnumTemperature.HOT, EnumHumidity.ARID, false, false),
WATER_AM("Wasser", "magica aqua",
BeeClassification.ESSENTIAL, 0x3B7D8C, 0xE3A55B, EnumTemperature.NORMAL, EnumHumidity.DAMP, false, false),
LIGHTNING("Blitz", "magica fulgur",
BeeClassification.ESSENTIAL, 0xEBEFA1, 0xE3A55B, EnumTemperature.NORMAL, EnumHumidity.NORMAL, false, false),
PLANT("Staude", "magica herba",
BeeClassification.ESSENTIAL, 0x49B549, 0xE3A55B, EnumTemperature.NORMAL, EnumHumidity.NORMAL, false, false),
ICE("Eis", "magica glacium",
BeeClassification.ESSENTIAL, 0x86BAC6, 0xE3A55B, EnumTemperature.COLD, EnumHumidity.NORMAL, false, false),
MAGMA("Magma", "magica torrens igneus",
BeeClassification.ESSENTIAL, 0x932B1E, 0xE3A55B, EnumTemperature.HELLISH, EnumHumidity.ARID, false, false),
ARCANE_AM("Arkanen", "magica arcanum",
BeeClassification.ESSENTIAL, 0x76184D, 0xE3A55B, EnumTemperature.NORMAL, EnumHumidity.NORMAL, true, false),
VORTEX("Vortex", "gurges",
BeeClassification.ESSENTIAL, 0x71BBE2, 0x0B35A8, EnumTemperature.NORMAL, EnumHumidity.NORMAL, false, true),
WIGHT("Wight", "vectem",
BeeClassification.ESSENTIAL, 0xB50000, 0x4C4837, EnumTemperature.NORMAL, EnumHumidity.NORMAL, false, false),
; ;
public static void setupBeeSpecies() public static void setupBeeSpecies()
@@ -141,9 +179,8 @@ public enum BeeSpecies implements IAlleleBeeSpecies, IIconProvider
{ {
SCHOLARLY.setInactive(); SCHOLARLY.setInactive();
SAVANT.setInactive(); SAVANT.setInactive();
AIR.setInactive();
EARTH.setInactive();
INFUSED.setInactive(); INFUSED.setInactive();
VIS.setInactive();
PURE.setInactive(); PURE.setInactive();
FLUX.setInactive(); FLUX.setInactive();
NODE.setInactive(); NODE.setInactive();
@@ -166,6 +203,38 @@ public enum BeeSpecies implements IAlleleBeeSpecies, IIconProvider
MINIUM.setInactive(); MINIUM.setInactive();
} }
if (ArsMagicaHelper.isActive())
{
QUINTESSENCE.addSpecialty(new ItemStack(Config.amArcaneCompound), 5);
EARTH_AM.addSpecialty(new ItemStack(Config.amEssenceEarth), 7);
AIR_AM.addSpecialty(new ItemStack(Config.amEssenceAir), 7);
FIRE_AM.addSpecialty(new ItemStack(Config.amEssenceFire), 7);
WATER_AM.addSpecialty(new ItemStack(Config.amEssenceWater), 7);
LIGHTNING.addSpecialty(new ItemStack(Config.amEssenceLightning), 7);
PLANT.addSpecialty(new ItemStack(Config.amEssencePlant), 7);
ICE.addSpecialty(new ItemStack(Config.amEssenceIce), 7);
MAGMA.addSpecialty(new ItemStack(Config.amEssenceMagma), 7);
ARCANE_AM.addSpecialty(new ItemStack(Config.amEssenceArcane), 11);
VORTEX.addSpecialty(new ItemStack(Config.amArcaneCompound), 15);
WIGHT.addSpecialty(new ItemStack(Item.enderPearl), 11);
}
else
{
ESSENCE.setInactive();
QUINTESSENCE.setInactive();
EARTH_AM.setInactive();
AIR_AM.setInactive();
FIRE_AM.setInactive();
WATER_AM.setInactive();
LIGHTNING.setInactive();
PLANT.setInactive();
ICE.setInactive();
MAGMA.setInactive();
ARCANE_AM.setInactive();
VORTEX.setInactive();
WIGHT.setInactive();
}
// Oredict bees // Oredict bees
if (OreDictionary.getOres("ingotCopper").size() <= 0) if (OreDictionary.getOres("ingotCopper").size() <= 0)
{ {
@@ -184,7 +253,6 @@ public enum BeeSpecies implements IAlleleBeeSpecies, IIconProvider
LEAD.setInactive(); 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();
@@ -220,62 +288,35 @@ public enum BeeSpecies implements IAlleleBeeSpecies, IIconProvider
.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(Item.feather), 4)
.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), 4).setGenome(BeeGenomeManager.getTemplateFire()) .addSpecialty(new ItemStack(Item.blazePowder), 4).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)
.addSpecialty(new ItemStack(Config.fPollen, 1, ForestryHelper.Pollen.CRYSTALLINE.ordinal()), 5)
.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(Block.obsidian), 4)
.setGenome(BeeGenomeManager.getTemplateEarth()) .setGenome(BeeGenomeManager.getTemplateEarth())
.register(); .register();
INFUSED.addProduct(Config.combs.getStackForType(CombType.INFUSED), 20)
.setGenome(BeeGenomeManager.getTemplateInfused())
.register();
AWARE.addProduct(Config.combs.getStackForType(CombType.INTELLECT), 18) AWARE.addProduct(Config.combs.getStackForType(CombType.INTELLECT), 18)
.setGenome(BeeGenomeManager.getTemplateAware()) .setGenome(BeeGenomeManager.getTemplateAware())
.register(); .register();
VIS.addProduct(Config.combs.getStackForType(CombType.INTELLECT), 25)
.setGenome(BeeGenomeManager.getTemplateVis())
.register();
PURE.addProduct(Config.combs.getStackForType(CombType.INTELLECT), 20)
.setGenome(BeeGenomeManager.getTemplatePure())
.register();
FLUX.addProduct(Config.combs.getStackForType(CombType.INTELLECT), 20)
.setGenome(BeeGenomeManager.getTemplateFlux())
.register();
NODE.addProduct(Config.combs.getStackForType(CombType.INTELLECT), 20)
.setGenome(BeeGenomeManager.getTemplateNode())
.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();
BRAINY.addProduct(Config.combs.getStackForType(CombType.SKULKING), 10)
.addProduct(new ItemStack(Item.rottenFlesh), 6)
.setGenome(BeeGenomeManager.getTemplateBrainy())
.register();
BATTY.addProduct(Config.combs.getStackForType(CombType.SKULKING), 10)
.addSpecialty(new ItemStack(Item.gunpowder), 4)
.setGenome(BeeGenomeManager.getTemplateBatty())
.register(); .register();
GOSSAMER.addProduct(new ItemStack(Config.fBeeComb, 1, ForestryHelper.Comb.SILKY.ordinal()), 15)
.setGenome(BeeGenomeManager.getTemplateGossamer())
.register();
WISPY.addProduct(new ItemStack(Config.fBeeComb, 1, ForestryHelper.Comb.SILKY.ordinal()), 22)
.addSpecialty(new ItemStack(Config.fCraftingResource, 1, ForestryHelper.CraftingMaterial.SILK_WISP.ordinal()), 4)
.setGenome(BeeGenomeManager.getTemplateWispy())
.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())
.register(); .register();
SPIDERY.addProduct(Config.combs.getStackForType(CombType.SKULKING), 13)
.addProduct(new ItemStack(Item.silk), 8)
.addSpecialty(new ItemStack(Item.spiderEye), 8)
.setGenome(BeeGenomeManager.getTemplateSpidery())
.register();
TIMELY.addProduct(new ItemStack(Config.fBeeComb, 1, ForestryHelper.Comb.DRIPPING.ordinal()), 25) TIMELY.addProduct(new ItemStack(Config.fBeeComb, 1, ForestryHelper.Comb.DRIPPING.ordinal()), 25)
.addProduct(Config.pollen.getStackForType(PollenType.PHASED), 10) .addProduct(Config.pollen.getStackForType(PollenType.PHASED), 10)
.setGenome(BeeGenomeManager.getTemplateTimely()) .setGenome(BeeGenomeManager.getTemplateTimely())
@@ -291,9 +332,6 @@ public enum BeeSpecies implements IAlleleBeeSpecies, IIconProvider
.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) SPIRIT.addProduct(Config.combs.getStackForType(CombType.SOUL), 13)
.setGenome(BeeGenomeManager.getTemplateSpirit()) .setGenome(BeeGenomeManager.getTemplateSpirit())
.register(); .register();
@@ -303,11 +341,11 @@ public enum BeeSpecies implements IAlleleBeeSpecies, IIconProvider
IRON.addProduct(new ItemStack(Config.fBeeComb, 1, ForestryHelper.Comb.HONEY.ordinal()), 10) IRON.addProduct(new ItemStack(Config.fBeeComb, 1, ForestryHelper.Comb.HONEY.ordinal()), 10)
.addSpecialty(Config.nuggets.getStackForType(NuggetType.IRON), 8) .addSpecialty(Config.nuggets.getStackForType(NuggetType.IRON), 8)
.setGenome(BeeGenomeManager.getTemplateIron()) .setGenome(BeeGenomeManager.getTemplateIron())
.register(); .register();
GOLD.addProduct(new ItemStack(Config.fBeeComb, 1, ForestryHelper.Comb.HONEY.ordinal()), 10) GOLD.addProduct(new ItemStack(Config.fBeeComb, 1, ForestryHelper.Comb.HONEY.ordinal()), 10)
.addSpecialty(new ItemStack(Item.goldNugget, 1), 6) .addSpecialty(new ItemStack(Item.goldNugget, 1), 6)
.setGenome(BeeGenomeManager.getTemplateGold()) .setGenome(BeeGenomeManager.getTemplateGold())
.register(); .register();
COPPER.addProduct(new ItemStack(Config.fBeeComb, 1, ForestryHelper.Comb.HONEY.ordinal()), 10) COPPER.addProduct(new ItemStack(Config.fBeeComb, 1, ForestryHelper.Comb.HONEY.ordinal()), 10)
.addSpecialty(Config.nuggets.getStackForType(NuggetType.COPPER), 9) .addSpecialty(Config.nuggets.getStackForType(NuggetType.COPPER), 9)
.setGenome(BeeGenomeManager.getTemplateCopper()) .setGenome(BeeGenomeManager.getTemplateCopper())
@@ -332,6 +370,44 @@ public enum BeeSpecies implements IAlleleBeeSpecies, IIconProvider
.addSpecialty(Config.nuggets.getStackForType(NuggetType.EMERALD), 2) .addSpecialty(Config.nuggets.getStackForType(NuggetType.EMERALD), 2)
.setGenome(BeeGenomeManager.getTemplateEmerald()) .setGenome(BeeGenomeManager.getTemplateEmerald())
.register(); .register();
APATITE.addProduct(new ItemStack(Config.fBeeComb, 1, ForestryHelper.Comb.HONEY.ordinal()), 10)
.addSpecialty(Config.nuggets.getStackForType(NuggetType.APATITE), 2)
.setGenome(BeeGenomeManager.getTemplateApatite())
.register();
INFUSED.addProduct(Config.combs.getStackForType(CombType.INFUSED), 20)
.setGenome(BeeGenomeManager.getTemplateInfused())
.register();
VIS.addProduct(Config.combs.getStackForType(CombType.INTELLECT), 25)
.setGenome(BeeGenomeManager.getTemplateVis())
.register();
PURE.addProduct(Config.combs.getStackForType(CombType.INTELLECT), 20)
.setGenome(BeeGenomeManager.getTemplatePure())
.register();
FLUX.addProduct(Config.combs.getStackForType(CombType.INTELLECT), 20)
.setGenome(BeeGenomeManager.getTemplateFlux())
.register();
NODE.addProduct(Config.combs.getStackForType(CombType.INTELLECT), 20)
.setGenome(BeeGenomeManager.getTemplateNode())
.register();
REJUVENATING.addProduct(Config.combs.getStackForType(CombType.INTELLECT), 20)
.setGenome(BeeGenomeManager.getTemplateRejuvinating())
.register();
BRAINY.addProduct(Config.combs.getStackForType(CombType.SKULKING), 10)
.addProduct(new ItemStack(Item.rottenFlesh), 6)
.setGenome(BeeGenomeManager.getTemplateBrainy())
.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)
.setGenome(BeeGenomeManager.getTemplateGossamer())
.register();
WISPY.addProduct(new ItemStack(Config.fBeeComb, 1, ForestryHelper.Comb.SILKY.ordinal()), 22)
.addSpecialty(new ItemStack(Config.fCraftingResource, 1, ForestryHelper.CraftingMaterial.SILK_WISP.ordinal()), 4)
.setGenome(BeeGenomeManager.getTemplateWispy())
.register();
CHICKEN.addProduct(new ItemStack(Config.fBeeComb, 1, ForestryHelper.Comb.HONEY.ordinal()), 10) CHICKEN.addProduct(new ItemStack(Config.fBeeComb, 1, ForestryHelper.Comb.HONEY.ordinal()), 10)
.setGenome(BeeGenomeManager.getTemplateChicken()) .setGenome(BeeGenomeManager.getTemplateChicken())
.register(); .register();
@@ -341,6 +417,51 @@ public enum BeeSpecies implements IAlleleBeeSpecies, IIconProvider
PORK.addProduct(new ItemStack(Config.fBeeComb, 1, ForestryHelper.Comb.HONEY.ordinal()), 10) PORK.addProduct(new ItemStack(Config.fBeeComb, 1, ForestryHelper.Comb.HONEY.ordinal()), 10)
.setGenome(BeeGenomeManager.getTemplatePork()) .setGenome(BeeGenomeManager.getTemplatePork())
.register(); .register();
MINIUM.addProduct(Config.combs.getStackForType(CombType.OCCULT), 16)
.setGenome(BeeGenomeManager.getTemplateMinium())
.register();
ESSENCE.addProduct(Config.combs.getStackForType(CombType.ESSENCE), 12)
.setGenome(BeeGenomeManager.getTemplateEssence())
.register();
QUINTESSENCE.addProduct(Config.combs.getStackForType(CombType.ESSENCE), 23)
.setGenome(BeeGenomeManager.getTemplateQuintessence())
.register();
EARTH_AM.addProduct(Config.combs.getStackForType(CombType.POTENT), 12)
.setGenome(BeeGenomeManager.getTemplateEarthAM())
.register();
AIR_AM.addProduct(Config.combs.getStackForType(CombType.POTENT), 12)
.setGenome(BeeGenomeManager.getTemplateAirAM())
.register();
FIRE_AM.addProduct(Config.combs.getStackForType(CombType.POTENT), 12)
.setGenome(BeeGenomeManager.getTemplateFireAM())
.register();
WATER_AM.addProduct(Config.combs.getStackForType(CombType.POTENT), 12)
.setGenome(BeeGenomeManager.getTemplateWaterAM())
.register();
LIGHTNING.addProduct(Config.combs.getStackForType(CombType.POTENT), 12)
.setGenome(BeeGenomeManager.getTemplateLightning())
.register();
PLANT.addProduct(Config.combs.getStackForType(CombType.POTENT), 12)
.setGenome(BeeGenomeManager.getTemplatePlant())
.register();
ICE.addProduct(Config.combs.getStackForType(CombType.POTENT), 12)
.setGenome(BeeGenomeManager.getTemplateIce())
.register();
MAGMA.addProduct(Config.combs.getStackForType(CombType.POTENT), 12)
.setGenome(BeeGenomeManager.getTemplateMagma())
.register();
ARCANE_AM.addProduct(Config.combs.getStackForType(CombType.POTENT), 19)
.setGenome(BeeGenomeManager.getTemplateArcaneAM())
.register();
VORTEX.addProduct(Config.combs.getStackForType(CombType.ESSENCE), 10)
.setGenome(BeeGenomeManager.getTemplateVortex())
.register();
WIGHT.addProduct(Config.combs.getStackForType(CombType.SOUL), 30)
.addProduct(Config.combs.getStackForType(CombType.SKULKING), 10)
.setGenome(BeeGenomeManager.getTemplateWight())
.register();
} }
private String binomial; private String binomial;
@@ -563,22 +684,47 @@ public enum BeeSpecies implements IAlleleBeeSpecies, IIconProvider
{ {
return icons[type.ordinal()][Math.min(renderPass, 2)]; return icons[type.ordinal()][Math.min(renderPass, 2)];
} }
private static final BeeSpecies[] skulkingIconBees = { SKULKING, GHASTLY, SPIDERY, BRAINY, GOSSAMER, WISPY, BATTY, VORTEX, WISPY };
public void registerItemIcons(IconRegister itemMap) public void registerItemIcons(IconRegister itemMap)
{ {
this.icons = new Icon[EnumBeeType.values().length][3]; this.icons = new Icon[EnumBeeType.values().length][3];
Icon outline = itemMap.registerIcon(ForestryHelper.Name + ":bees/outline");
Icon body1 = itemMap.registerIcon(ForestryHelper.Name + ":bees/outline"); String root = this.getIconPath();
Icon body1 = itemMap.registerIcon(root + "body1");
for (int i = 0; i < EnumBeeType.values().length; i++) { for (int i = 0; i < EnumBeeType.values().length; i++)
{
if(EnumBeeType.values()[i] == EnumBeeType.NONE) if(EnumBeeType.values()[i] == EnumBeeType.NONE)
continue; continue;
icons[i][0] = outline; icons[i][0] = itemMap.registerIcon(root + EnumBeeType.values()[i].toString().toLowerCase(Locale.ENGLISH) + ".outline");
icons[i][1] = body1; icons[i][1] = body1;
icons[i][2] = itemMap.registerIcon(ForestryHelper.Name + ":bees/" + EnumBeeType.values()[i].toString().toLowerCase(Locale.ENGLISH) + ".body2"); icons[i][2] = itemMap.registerIcon(root + EnumBeeType.values()[i].toString().toLowerCase(Locale.ENGLISH) + ".body2");
} }
} }
private String getIconPath()
{
String value;
switch (this)
{
case SKULKING: case GHASTLY: case SPIDERY:
case BRAINY: case GOSSAMER: case WISPY: case BATTY:
case VORTEX: case WIGHT:
value = VersionInfo.ModName.toLowerCase() + ":bees/skulking/";
break;
default:
value = ForestryHelper.Name.toLowerCase() + ":bees/default/";
break;
}
return value;
}
/// --------- Unused Functions --------------------------------------------- /// --------- Unused Functions ---------------------------------------------
@@ -0,0 +1,74 @@
package thaumicbees.bees;
import thaumicbees.main.Config;
import thaumicbees.main.utils.LocalizationManager;
import thaumicbees.main.utils.compat.ThaumcraftHelper;
import net.minecraft.block.Block;
import net.minecraft.item.ItemStack;
import net.minecraft.world.World;
import forestry.api.apiculture.IBeeGenome;
import forestry.api.apiculture.IFlowerProvider;
import forestry.api.genetics.IPollinatable;
public class FlowerProviderArsMagicaFlower implements IFlowerProvider
{
private ItemStack[] flowers = {new ItemStack(Config.amBlackOrchid), new ItemStack(Config.amDesertNova) };
@Override
public boolean isAcceptedFlower(World world, IBeeGenome genome, int x, int y, int z)
{
boolean flag = false;
int id = world.getBlockId(x, y, z);
if (id == Config.amBlackOrchid.blockID || id == Config.amDesertNova.blockID)
{
flag = true;
}
return flag;
}
@Override
public boolean growFlower(World world, IBeeGenome genome, int x, int y, int z)
{
boolean flag = false;
int blockDown = world.getBlockId(x, y - 1, z);
if (world.getBlockId(x, y, z) == 0)
{
if (blockDown == Block.dirt.blockID || blockDown == Block.grass.blockID)
{
world.setBlock(x, y, z, Config.amBlackOrchid.blockID);
flag = true;
}
else if (blockDown == Block.sand.blockID)
{
world.setBlock(x, y, z, Config.amDesertNova.blockID);
flag = true;
}
}
return flag;
}
@Override
public String getDescription()
{
return LocalizationManager.getLocalizedString("tb.bees.flower.arsmagica");
}
@Override
public ItemStack[] affectProducts(World world, IBeeGenome genome, int x, int y, int z, ItemStack[] products)
{
return products;
}
@Override
public ItemStack[] getItemStacks()
{
return this.flowers;
}
@Override
public boolean isAcceptedPollinatable(World world, IPollinatable pollinatable)
{
return pollinatable.getPlantType().size() > 1;
}
}
@@ -1,13 +1,12 @@
package thaumicbees.bees; package thaumicbees.bees;
import cpw.mods.fml.common.registry.LanguageRegistry;
import thaumcraft.api.AuraNode;
import thaumcraft.api.ThaumcraftApi;
import thaumicbees.main.Config;
import thaumicbees.main.utils.LocalizationManager;
import net.minecraft.block.Block; import net.minecraft.block.Block;
import net.minecraft.item.ItemStack; import net.minecraft.item.ItemStack;
import net.minecraft.world.World; import net.minecraft.world.World;
import thaumcraft.api.ThaumcraftApi;
import thaumcraft.api.aura.AuraNode;
import thaumicbees.main.Config;
import thaumicbees.main.utils.LocalizationManager;
import forestry.api.apiculture.IBeeGenome; import forestry.api.apiculture.IBeeGenome;
import forestry.api.apiculture.IFlowerProvider; import forestry.api.apiculture.IFlowerProvider;
import forestry.api.genetics.IPollinatable; import forestry.api.genetics.IPollinatable;
@@ -25,22 +24,13 @@ public class FlowerProviderAuraNode implements IFlowerProvider
@Override @Override
public boolean isAcceptedPollinatable(World world, IPollinatable pollinatable) public boolean isAcceptedPollinatable(World world, IPollinatable pollinatable)
{ {
return true; return pollinatable.getPlantType().size() > 0;
} }
@Override @Override
public boolean growFlower(World world, IBeeGenome genome, int x, int y, int z) public boolean growFlower(World world, IBeeGenome genome, int x, int y, int z)
{ {
boolean flag = false; return true;
int blockDown = world.getBlockId(x, y - 1, z);
if (world.isAirBlock(x, y, z) && (blockDown == Block.dirt.blockID || blockDown == Block.grass.blockID))
{
int rand = world.rand.nextInt(10);
world.setBlockMetadataWithNotify(x, y, z, Config.tcPlant.blockID, (rand >= 5) ? 2 : 3);
System.out.println(x + ", " + y + ", " + ", " + z + " set to flower.");
flag = true;
}
return flag;
} }
@Override @Override
@@ -1,44 +0,0 @@
package thaumicbees.bees;
import cpw.mods.fml.common.registry.LanguageRegistry;
import thaumcraft.api.EnumTag;
import thaumcraft.api.ObjectTags;
import thaumcraft.api.ThaumcraftApi;
import thaumicbees.main.utils.LocalizationManager;
import net.minecraft.item.ItemStack;
import net.minecraft.world.World;
import forestry.api.apiculture.IBeeGenome;
import forestry.api.apiculture.IFlowerProvider;
import forestry.api.genetics.IPollinatable;
public class FlowerProviderAuraNodeFlux extends FlowerProviderAuraNode
{
@Override
public ItemStack[] affectProducts(World world, IBeeGenome genome, int x, int y, int z, ItemStack[] products)
{
if (world.rand.nextInt(20) < 1)
{
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);
}
}
return products;
}
@Override
public String getDescription()
{
return LocalizationManager.getLocalizedString("tb.bees.flower.nodeFlux");
}
}
@@ -1,52 +0,0 @@
package thaumicbees.bees;
import cpw.mods.fml.common.registry.LanguageRegistry;
import net.minecraft.block.Block;
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 thaumicbees.main.utils.LocalizationManager;
import forestry.api.apiculture.IBeeGenome;
public class FlowerProviderAuraNodePurify extends FlowerProviderAuraNode
{
@Override
public boolean growFlower(World world, IBeeGenome genome, int x, int y, int z)
{
return true;
}
@Override
public String getDescription()
{
return LocalizationManager.getLocalizedString("tb.bees.flower.nodePure");
}
@Override
public ItemStack[] affectProducts(World world, IBeeGenome genome, int x, int y, int z, ItemStack[] products)
{
if (world.rand.nextInt(25) < 1)
{
AuraNode node = this.getNodeWithinRange(world, x, y, z);
if (node != null && (1.0 * node.level) / node.baseLevel > 0.75)
{
int aspectCount = node.flux.tags.size();
if (aspectCount > 0)
{
EnumTag selectedTag = node.flux.getAspectsSorted()[world.rand.nextInt(node.flux.tags.size())];
if (selectedTag != null)
{
node.flux.remove(selectedTag, 1);
ThaumcraftApi.queueNodeChanges(node.key, node.baseLevel / -16, 0, false, new ObjectTags().add(selectedTag, -1), 0, 0, 0);
products = addItemToProducts(products, new ItemStack(Config.solidFlux, 1, selectedTag.id));
}
}
}
}
return products;
}
}
@@ -1,10 +1,13 @@
package thaumicbees.bees; package thaumicbees.bees;
import java.util.EnumSet;
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.block.Block; import net.minecraft.block.Block;
import net.minecraft.item.ItemStack; import net.minecraft.item.ItemStack;
import net.minecraft.world.World; import net.minecraft.world.World;
import net.minecraftforge.common.EnumPlantType;
import forestry.api.apiculture.IBeeGenome; import forestry.api.apiculture.IBeeGenome;
import forestry.api.apiculture.IFlowerProvider; import forestry.api.apiculture.IFlowerProvider;
import forestry.api.genetics.IPollinatable; import forestry.api.genetics.IPollinatable;
@@ -39,11 +42,11 @@ public class FlowerProviderBookshelf implements IFlowerProvider
return new ItemStack[] { new ItemStack(Block.bookShelf) }; return new ItemStack[] { new ItemStack(Block.bookShelf) };
} }
//@Override @Override
public boolean isAcceptedPollinatable(World world, IPollinatable pollinatable) public boolean isAcceptedPollinatable(World world, IPollinatable pollinatable)
{ {
// No idea what this is supposed to do. EnumSet<EnumPlantType> types = pollinatable.getPlantType();
return false; return types.size() > 0 && !types.contains(EnumPlantType.Nether) && !types.contains(EnumPlantType.Water) ;
} }
public String getDescription() public String getDescription()
@@ -1,5 +1,7 @@
package thaumicbees.bees; package thaumicbees.bees;
import java.util.EnumSet;
import cpw.mods.fml.common.registry.LanguageRegistry; import cpw.mods.fml.common.registry.LanguageRegistry;
import thaumicbees.main.Config; import thaumicbees.main.Config;
import thaumicbees.main.utils.LocalizationManager; import thaumicbees.main.utils.LocalizationManager;
@@ -7,6 +9,7 @@ import thaumicbees.main.utils.compat.ThaumcraftHelper;
import net.minecraft.block.Block; import net.minecraft.block.Block;
import net.minecraft.item.ItemStack; import net.minecraft.item.ItemStack;
import net.minecraft.world.World; import net.minecraft.world.World;
import net.minecraftforge.common.EnumPlantType;
import forestry.api.apiculture.IBeeGenome; import forestry.api.apiculture.IBeeGenome;
import forestry.api.apiculture.IFlowerProvider; import forestry.api.apiculture.IFlowerProvider;
import forestry.api.genetics.IPollinatable; import forestry.api.genetics.IPollinatable;
@@ -35,7 +38,7 @@ public class FlowerProviderThaumcraftFlower implements IFlowerProvider
{ {
boolean flag = false; boolean flag = false;
int blockDown = world.getBlockId(x, y - 1, z); int blockDown = world.getBlockId(x, y - 1, z);
if (world.isAirBlock(x, y, z)) if (world.getBlockId(x, y, z) == 0)
{ {
if (blockDown == Block.dirt.blockID || blockDown == Block.grass.blockID) if (blockDown == Block.dirt.blockID || blockDown == Block.grass.blockID)
{ {
@@ -69,10 +72,10 @@ public class FlowerProviderThaumcraftFlower implements IFlowerProvider
return this.flowers; return this.flowers;
} }
//@Override @Override
public boolean isAcceptedPollinatable(World world, IPollinatable pollinatable) public boolean isAcceptedPollinatable(World world, IPollinatable pollinatable)
{ {
return false; return pollinatable.getPlantType().size() > 1;
} }
} }
@@ -1,21 +1,46 @@
package thaumicbees.block; package thaumicbees.block;
import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;
import net.minecraft.block.Block;
import net.minecraft.block.BlockContainer; import net.minecraft.block.BlockContainer;
import net.minecraft.block.material.Material; import net.minecraft.block.material.Material;
import net.minecraft.client.renderer.texture.IconRegister;
import net.minecraft.entity.item.EntityItem;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.item.ItemStack; import net.minecraft.item.ItemStack;
import net.minecraft.tileentity.TileEntity; import net.minecraft.tileentity.TileEntity;
import net.minecraft.world.World; import net.minecraft.world.World;
import forestry.api.apiculture.IBee; import thaumicbees.client.gui.UIScreens;
import forestry.api.apiculture.IBeeGenome; import thaumicbees.main.CommonProxy;
import forestry.api.apiculture.IBeeHousing; import thaumicbees.main.ThaumicBees;
import forestry.api.core.EnumHumidity; import thaumicbees.main.utils.TabThaumicBees;
import forestry.api.core.EnumTemperature; import thaumicbees.tileentity.TileEntityEffectJar;
public class BlockEffectJar extends BlockContainer public class BlockEffectJar extends BlockContainer
{ {
public BlockEffectJar(int id) public BlockEffectJar(int id)
{ {
super(id, Material.glass); super(id, Material.glass);
this.setCreativeTab(TabThaumicBees.tabThaumicBees);
this.setUnlocalizedName("tb.effectJar");
this.setBlockBounds(0.25f, 0f, 0.25f, 0.75f, 0.81f, 0.74f);
this.setHardness(0.1f);
this.setResistance(1.5f);
}
@Override
public boolean onBlockActivated(World world, int x, int y, int z, EntityPlayer player, int par6, float par7, float par8, float par9)
{
boolean activate = false;
if (!player.isSneaking())
{
player.openGui(ThaumicBees.object, UIScreens.EFFECT_JAR.ordinal(), world, x, y, z);
activate = true;
}
return activate;
} }
@Override @Override
@@ -24,4 +49,64 @@ public class BlockEffectJar extends BlockContainer
return new TileEntityEffectJar(); return new TileEntityEffectJar();
} }
@Override
public boolean isOpaqueCube()
{
return false;
}
@Override
public boolean renderAsNormalBlock()
{
return false;
}
@Override
public int getRenderType()
{
return CommonProxy.RenderIdEffectJar;
}
@Override
public void breakBlock(World world, int x, int y, int z, int id, int meta)
{
super.breakBlock(world, x, y, z, id, meta);
this.dropInventory(world, x, y, z);
}
private void dropInventory(World world, int x, int y, int z)
{
TileEntity e = world.getBlockTileEntity(x, y, z);
if (e != null && e instanceof TileEntityEffectJar)
{
TileEntityEffectJar jar = (TileEntityEffectJar)e;
// 0 is the only droppable stack.
ItemStack stack = jar.getStackInSlot(0);
if (stack != null && stack.stackSize > 0)
{
float pX = world.rand.nextFloat() * 0.8f + 0.1f;
float pY = world.rand.nextFloat() * 0.8f + 0.1f;
float pZ = world.rand.nextFloat() * 0.8f + 0.1f;
EntityItem entityItem = new EntityItem(world, x + pX, y + pY, z + pZ, stack.copy());
entityItem.motionX = world.rand.nextGaussian() * 0.05f;
entityItem.motionY = world.rand.nextGaussian() * 0.05f + 0.2f;
entityItem.motionZ = world.rand.nextGaussian() * 0.05f;
world.spawnEntityInWorld(entityItem);
stack.stackSize = 0;
}
}
}
@Override
@SideOnly(Side.CLIENT)
public void registerIcons(IconRegister par1IconRegister)
{
this.blockIcon = Block.glass.getIcon(0, 0);
}
} }
@@ -8,6 +8,8 @@ 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 net.minecraft.util.Icon;
import net.minecraft.util.MovingObjectPosition;
import net.minecraft.world.World;
import thaumicbees.item.types.PlankType; import thaumicbees.item.types.PlankType;
import thaumicbees.main.ThaumicBees; import thaumicbees.main.ThaumicBees;
import thaumicbees.main.utils.VersionInfo; import thaumicbees.main.utils.VersionInfo;
@@ -17,14 +19,13 @@ import cpw.mods.fml.relauncher.SideOnly;
public class BlockPlanks extends Block public class BlockPlanks extends Block
{ {
@SideOnly(Side.CLIENT) @SideOnly(Side.CLIENT)
private Icon[] icons = new Icon[PlankType.values().length]; private Icon[] icons;
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.setUnlocalizedName("tb.planks");
this.setCreativeTab(CreativeTabs.tabBlock); this.setCreativeTab(CreativeTabs.tabBlock);
if (ThaumicBees.getConfig().AreMagicPlanksFlammable) if (ThaumicBees.getConfig().AreMagicPlanksFlammable)
{ {
@@ -58,9 +59,10 @@ public class BlockPlanks extends Block
@SideOnly(Side.CLIENT) @SideOnly(Side.CLIENT)
public void registerIcons(IconRegister par1IconRegister) public void registerIcons(IconRegister par1IconRegister)
{ {
this.icons = new Icon[PlankType.values().length];
for (PlankType t : PlankType.values()) for (PlankType t : PlankType.values())
{ {
this.icons[t.ordinal()] = par1IconRegister.registerIcon(VersionInfo.ModName + ":" + t.name); this.icons[t.ordinal()] = par1IconRegister.registerIcon(VersionInfo.ModName.toLowerCase() + ":" + t.name);
} }
} }
} }
@@ -8,8 +8,11 @@ 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.client.renderer.texture.IconRegister;
import net.minecraft.creativetab.CreativeTabs; import net.minecraft.creativetab.CreativeTabs;
import net.minecraft.item.Item;
import net.minecraft.item.ItemStack; import net.minecraft.item.ItemStack;
import net.minecraft.util.Icon; import net.minecraft.util.Icon;
import net.minecraft.util.MovingObjectPosition;
import net.minecraft.world.World;
import thaumicbees.item.types.PlankType; import thaumicbees.item.types.PlankType;
import thaumicbees.main.Config; import thaumicbees.main.Config;
import thaumicbees.main.ThaumicBees; import thaumicbees.main.ThaumicBees;
@@ -20,7 +23,7 @@ import cpw.mods.fml.relauncher.SideOnly;
public class BlockWoodSlab extends BlockHalfSlab public class BlockWoodSlab extends BlockHalfSlab
{ {
@SideOnly(Side.CLIENT) @SideOnly(Side.CLIENT)
private Icon[] icons = new Icon[PlankType.values().length]; private Icon[] icons;
public BlockWoodSlab(int id, boolean doubleSlab) public BlockWoodSlab(int id, boolean doubleSlab)
{ {
@@ -43,7 +46,7 @@ public class BlockWoodSlab extends BlockHalfSlab
protected ItemStack createStackedBlock(int meta) protected ItemStack createStackedBlock(int meta)
{ {
return new ItemStack(Config.slabWoodHalf.blockID, 2, meta & 7); return new ItemStack(Config.planksWood.blockID, 1, meta & 7);
} }
@Override @Override
@@ -72,9 +75,29 @@ public class BlockWoodSlab extends BlockHalfSlab
@SideOnly(Side.CLIENT) @SideOnly(Side.CLIENT)
public void registerIcons(IconRegister par1IconRegister) public void registerIcons(IconRegister par1IconRegister)
{ {
this.icons = new Icon[PlankType.values().length];
for (PlankType t : PlankType.values()) for (PlankType t : PlankType.values())
{ {
this.icons[t.ordinal()] = par1IconRegister.registerIcon(VersionInfo.ModName + ":" + t.name); this.icons[t.ordinal()] = par1IconRegister.registerIcon(VersionInfo.ModName.toLowerCase() + ":" + t.name);
} }
} }
@Override
public ItemStack getPickBlock(MovingObjectPosition target, World world, int x, int y, int z)
{
int id = world.getBlockId(x, y, z);
if (id == 0)
{
return null;
}
Item item = Item.itemsList[id];
if (item == null)
{
return null;
}
return new ItemStack(id, 1, getDamageValue(world, x, y, z) & 7);
}
} }
@@ -1,28 +0,0 @@
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;
}
}
@@ -0,0 +1,123 @@
package thaumicbees.client.gui;
import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.inventory.Container;
import net.minecraft.inventory.ICrafting;
import net.minecraft.inventory.Slot;
import net.minecraft.item.ItemStack;
import net.mysteriousages.utils.gui.SlotCustomItems;
import thaumicbees.tileentity.TileEntityEffectJar;
import forestry.api.core.ItemInterface;
public class ContainerEffectJar extends Container
{
public TileEntityEffectJar jar;
public int lastBeeHealth = 0;
public int speciesColour = 0xffffff;
public ContainerEffectJar(TileEntityEffectJar tileEntityEffectJar, EntityPlayer player)
{
this.jar = tileEntityEffectJar;
this.addSlotToContainer(new SlotCustomItems(this.jar, 0, 80, 22, new ItemStack[] { ItemInterface.getItem("beeDroneGE") }));
for (int i = 0; i < 3; ++i)
{
for (int j = 0; j < 9; ++j)
{
this.addSlotToContainer(new Slot(player.inventory, j + i * 9 + 9, 8 + j * 18, 74 + i * 18));
}
}
for (int i = 0; i < 9; ++i)
{
this.addSlotToContainer(new Slot(player.inventory, i, 8 + i * 18, 132));
}
}
@Override
public void addCraftingToCrafters(ICrafting crafting)
{
super.addCraftingToCrafters(crafting);
crafting.sendProgressBarUpdate(this, 0, this.jar.currentBeeHealth);
crafting.sendProgressBarUpdate(this, 1, this.jar.currentBeeColour);
}
@Override
public void detectAndSendChanges()
{
super.detectAndSendChanges();
for (int i = 0; i < this.crafters.size(); ++i)
{
ICrafting crafting = (ICrafting)this.crafters.get(i);
if (this.lastBeeHealth != this.jar.currentBeeHealth)
{
crafting.sendProgressBarUpdate(this, 0, this.jar.currentBeeHealth);
this.lastBeeHealth = this.jar.currentBeeHealth;
}
if (this.speciesColour != this.jar.currentBeeColour)
{
crafting.sendProgressBarUpdate(this, 1, this.jar.currentBeeColour);
this.speciesColour = this.jar.currentBeeColour;
}
}
}
@Override
@SideOnly(Side.CLIENT)
public void updateProgressBar(int craftingId, int value)
{
if (craftingId == 0)
{
this.jar.currentBeeHealth = value;
}
else if (craftingId == 1)
{
this.jar.currentBeeColour = value;
}
}
@Override
public boolean canInteractWith(EntityPlayer entityplayer)
{
return this.jar.isUseableByPlayer(entityplayer);
}
@Override
public ItemStack transferStackInSlot(EntityPlayer player, int slot)
{
Slot itemSlot = this.getSlot(slot);
boolean clearSlot = false;
if (itemSlot != null && itemSlot.getHasStack())
{
ItemStack srcStack = itemSlot.getStack();
if (slot == 0 && srcStack != null)
{
clearSlot = this.mergeItemStack(srcStack, 1, 36 + 1, false);
}
else
{
if (this.getSlot(0).isItemValid(srcStack))
{
clearSlot = this.mergeItemStack(srcStack, 0, 1, false);
}
}
}
if (clearSlot)
{
itemSlot.putStack(null);
}
itemSlot.onSlotChanged();
player.inventory.onInventoryChanged();
return null;
}
}
@@ -0,0 +1,67 @@
package thaumicbees.client.gui;
import net.minecraft.client.gui.inventory.GuiContainer;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.world.World;
import org.lwjgl.opengl.GL11;
import thaumicbees.main.CommonProxy;
import thaumicbees.tileentity.TileEntityEffectJar;
public class GUIEffectJar extends GuiContainer
{
public static final String BACKGROUND_FILE = "jarScreen.png";
private static final int WIDTH = 176;
private static final int HEIGHT = 156;
private static final int SLOT_JAR_X = 80;
private static final int SLOT_JAR_Y = 22;
private static final int SLOT_INVENTORY_X = 8;
private static final int SLOT_INVENTORY_Y = 74;
private static final int BAR_DEST_X = 117;
private static final int BAR_DEST_Y = 10;
private static final int BAR_SRC_X = 176;
private static final int BAR_SRC_Y = 0;
private static final int BAR_WIDTH = 10;
private static final int BAR_HEIGHT = 40;
public GUIEffectJar(TileEntityEffectJar jar, EntityPlayer player)
{
super(new ContainerEffectJar(jar, player));
this.xSize = WIDTH;
this.ySize = HEIGHT;
}
@Override
protected void drawGuiContainerForegroundLayer(int par1, int par2)
{
fontRenderer.drawString("Inventory", 9, 63, 0);
}
@Override
protected void drawGuiContainerBackgroundLayer(float f, int i, int j)
{
int texture = this.mc.renderEngine.getTexture(CommonProxy.GUI_PATH + BACKGROUND_FILE);
GL11.glColor4f(1f, 1f, 1f, 1f);
GL11.glBlendFunc(GL11.GL_SRC_ALPHA, GL11.GL_SRC_ALPHA);
GL11.glBindTexture(GL11.GL_TEXTURE_2D, texture);
this.drawTexturedModalRect(this.guiLeft, this.guiTop, 0, 0, xSize, ySize);
TileEntityEffectJar jar = ((ContainerEffectJar)this.inventorySlots).jar;
float r = ((jar.currentBeeColour >> 16) & 255) / 255f;
float g = ((jar.currentBeeColour >> 8) & 255) / 255f;
float b = (jar.currentBeeColour & 255) / 255f;
GL11.glColor3f(r, g, b);
int value = BAR_HEIGHT - (jar.currentBeeHealth * BAR_HEIGHT) / 100;
this.drawTexturedModalRect(this.guiLeft + BAR_DEST_X, this.guiTop + value + BAR_DEST_Y, BAR_SRC_X, BAR_SRC_Y, BAR_WIDTH, BAR_HEIGHT - value);
}
}
@@ -0,0 +1,37 @@
package thaumicbees.client.gui;
import thaumicbees.tileentity.TileEntityEffectJar;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.world.World;
import cpw.mods.fml.common.network.IGuiHandler;
public class GUIHandler implements IGuiHandler
{
@Override
public Object getServerGuiElement(int ID, EntityPlayer player, World world, int x, int y, int z)
{
Object value = null;
if (ID == UIScreens.EFFECT_JAR.ordinal())
{
value = new ContainerEffectJar((TileEntityEffectJar)world.getBlockTileEntity(x, y, z), player);
}
return value;
}
@Override
public Object getClientGuiElement(int ID, EntityPlayer player, World world, int x, int y, int z)
{
Object value = null;
if (ID == UIScreens.EFFECT_JAR.ordinal())
{
value = new GUIEffectJar((TileEntityEffectJar)world.getBlockTileEntity(x, y, z), player);
}
return value;
}
}
@@ -0,0 +1,7 @@
package thaumicbees.client.gui;
public enum UIScreens
{
EFFECT_JAR,
;
}
@@ -0,0 +1,38 @@
package thaumicbees.client.model;
import org.lwjgl.opengl.GL11;
import net.minecraftforge.client.model.AdvancedModelLoader;
import net.minecraftforge.client.model.IModelCustom;
import thaumicbees.main.CommonProxy;
import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;
@SideOnly(Side.CLIENT)
public class ModelEffectJar
{
public static final String objFile = CommonProxy.MODEL_PATH + "effectJar.obj";
public static final String textureFile = CommonProxy.MODEL_TEXTURE_PATH + "jarTexture.png";
public static final ModelEffectJar model = new ModelEffectJar();
private IModelCustom effectJarObj;
public ModelEffectJar()
{
this.effectJarObj = AdvancedModelLoader.loadModel(objFile);
}
public void render()
{
this.effectJarObj.renderPart("jarLid");
GL11.glDepthMask(false);
GL11.glEnable(GL11.GL_BLEND);
GL11.glBlendFunc(GL11.GL_SRC_ALPHA, GL11.GL_ONE_MINUS_SRC_ALPHA);
this.effectJarObj.renderPart("jarBase");
GL11.glDisable(GL11.GL_BLEND);
GL11.glDepthMask(true);
}
}
@@ -0,0 +1,79 @@
package thaumicbees.client.render;
import net.minecraft.client.renderer.tileentity.TileEntitySpecialRenderer;
import net.minecraft.item.ItemStack;
import net.minecraft.tileentity.TileEntity;
import net.minecraft.world.World;
import net.minecraftforge.client.IItemRenderer;
import org.lwjgl.opengl.GL11;
import thaumicbees.client.model.ModelEffectJar;
import thaumicbees.tileentity.TileEntityEffectJar;
import cpw.mods.fml.client.FMLClientHandler;
public class EffectJarRenderer extends TileEntitySpecialRenderer implements IItemRenderer
{
public static EffectJarRenderer instance = new EffectJarRenderer();
@Override
public void renderTileEntityAt(TileEntity tileEntity, double x, double y, double z, float tick)
{
if (tileEntity instanceof TileEntityEffectJar)
{
this.doRender(x, y, z, 1f);
}
}
@Override
public boolean handleRenderType(ItemStack item, ItemRenderType type)
{
return true;
}
@Override
public boolean shouldUseRenderHelper(ItemRenderType type, ItemStack item, ItemRendererHelper helper)
{
return true;
}
@Override
public void renderItem(ItemRenderType type, ItemStack item, Object... data)
{
switch (type)
{
case ENTITY:
doRender(0, 0, 0, 1.8f);
break;
case EQUIPPED:
doRender(-.5, .5, 0.25, 1f);
break;
case INVENTORY:
doRender(0.3, 0.25, 0.3, 1.5f);
break;
default:
break;
}
}
private void doRender(double x, double y, double z, float scale)
{
GL11.glPushMatrix();
GL11.glDisable(GL11.GL_LIGHTING);
GL11.glScaled(scale, scale, scale);
GL11.glTranslated(x, y, z);
FMLClientHandler.instance().getClient().renderEngine.bindTexture(ModelEffectJar.textureFile);
ModelEffectJar.model.render();
GL11.glEnable(GL11.GL_LIGHTING);
GL11.glPopMatrix();
}
}
@@ -2,6 +2,7 @@ package thaumicbees.item;
import java.util.List; import java.util.List;
import cpw.mods.fml.common.registry.GameRegistry;
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;
@@ -10,6 +11,8 @@ import thaumicbees.item.types.CapsuleType;
import thaumicbees.item.types.LiquidType; import thaumicbees.item.types.LiquidType;
import thaumicbees.item.types.PlankType; 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 thaumicbees.main.utils.VersionInfo;
import net.minecraft.block.Block; import net.minecraft.block.Block;
import net.minecraft.client.renderer.texture.IconRegister; import net.minecraft.client.renderer.texture.IconRegister;
@@ -34,9 +37,11 @@ public class ItemCapsule extends Item
{ {
super(itemId); super(itemId);
this.capsuleType = type; this.capsuleType = type;
this.setCreativeTab(Tabs.tabApiculture); this.setCreativeTab(TabThaumicBees.tabThaumicBees);
this.setHasSubtypes(true); this.setHasSubtypes(true);
this.setMaxStackSize(maxStackSize); this.setMaxStackSize(maxStackSize);
this.setUnlocalizedName("tb.capsule." + type.toString().toLowerCase());
GameRegistry.registerItem(this, "tb.capsule." + type.toString().toLowerCase());
} }
public CapsuleType getType() public CapsuleType getType()
@@ -7,6 +7,7 @@ import thaumicbees.main.CommonProxy;
import thaumicbees.main.ThaumicBees; import thaumicbees.main.ThaumicBees;
import thaumicbees.main.utils.VersionInfo; import thaumicbees.main.utils.VersionInfo;
import thaumicbees.main.utils.compat.ForestryHelper; import thaumicbees.main.utils.compat.ForestryHelper;
import cpw.mods.fml.common.registry.GameRegistry;
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;
@@ -23,6 +24,8 @@ public class ItemComb extends Item
super(itemID); super(itemID);
this.setCreativeTab(Tabs.tabApiculture); this.setCreativeTab(Tabs.tabApiculture);
this.setHasSubtypes(true); this.setHasSubtypes(true);
this.setUnlocalizedName("tb.comb");
GameRegistry.registerItem(this, "tb.comb");
} }
public ItemStack getStackForType(CombType type) public ItemStack getStackForType(CombType type)
@@ -2,13 +2,16 @@ package thaumicbees.item;
import java.util.List; import java.util.List;
import cpw.mods.fml.common.registry.GameRegistry;
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 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.VersionInfo;
import thaumicbees.main.utils.compat.ForestryHelper; import thaumicbees.main.utils.compat.ForestryHelper;
import net.minecraft.client.renderer.texture.IconRegister; import net.minecraft.client.renderer.texture.IconRegister;
@@ -21,9 +24,10 @@ public class ItemCrystalAspect extends Item
public ItemCrystalAspect(int itemId) public ItemCrystalAspect(int itemId)
{ {
super(itemId); super(itemId);
this.setCreativeTab(Tabs.tabApiculture); this.setCreativeTab(TabThaumicBees.tabThaumicBees);
this.setHasSubtypes(true); this.setHasSubtypes(true);
this.setUnlocalizedName("crystalAspect"); this.setUnlocalizedName("crystalAspect");
GameRegistry.registerItem(this, "crystalAspect");
} }
@Override @Override
@@ -43,7 +47,7 @@ public class ItemCrystalAspect extends Item
@SideOnly(Side.CLIENT) @SideOnly(Side.CLIENT)
public void registerIcons(IconRegister par1IconRegister) public void registerIcons(IconRegister par1IconRegister)
{ {
this.itemIcon = par1IconRegister.registerIcon(VersionInfo.ModName + ":crystalAspect"); this.itemIcon = par1IconRegister.registerIcon(VersionInfo.ModName.toLowerCase() + ":crystalAspect");
} }
@Override @Override
@@ -7,6 +7,7 @@ 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 thaumicbees.main.utils.compat.ForestryHelper;
import cpw.mods.fml.common.registry.GameRegistry;
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;
@@ -24,6 +25,8 @@ public class ItemDrop extends Item
super(itemID); super(itemID);
this.setCreativeTab(Tabs.tabApiculture); this.setCreativeTab(Tabs.tabApiculture);
this.setHasSubtypes(true); this.setHasSubtypes(true);
this.setUnlocalizedName("tb.drop");
GameRegistry.registerItem(this, "tb.drop");
} }
public ItemStack getStackForType(DropType type) public ItemStack getStackForType(DropType type)
@@ -1,26 +1,19 @@
package thaumicbees.item; package thaumicbees.item;
import java.util.List;
import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;
import thaumcraft.api.AuraNode;
import thaumcraft.api.EnumTag;
import thaumcraft.api.ObjectTags;
import thaumcraft.api.ThaumcraftApi;
import thaumicbees.item.types.HiveFrameType;
import thaumicbees.item.types.LiquidType;
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.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;
import net.minecraft.world.World; import net.minecraft.world.World;
import thaumcraft.api.ThaumcraftApi;
import thaumicbees.item.types.HiveFrameType;
import thaumicbees.main.Config;
import thaumicbees.main.utils.TabThaumicBees;
import thaumicbees.main.utils.VersionInfo;
import thaumicbees.main.utils.compat.ThaumcraftHelper;
import cpw.mods.fml.common.registry.GameRegistry;
import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;
import forestry.api.apiculture.IBee; import forestry.api.apiculture.IBee;
import forestry.api.apiculture.IBeeGenome; import forestry.api.apiculture.IBeeGenome;
import forestry.api.apiculture.IBeeHousing; import forestry.api.apiculture.IBeeHousing;
@@ -36,7 +29,9 @@ public class ItemMagicHiveFrame extends Item implements IHiveFrame
this.type = frameType; this.type = frameType;
this.setMaxDamage(this.type.maxDamage); this.setMaxDamage(this.type.maxDamage);
this.setMaxStackSize(1); this.setMaxStackSize(1);
this.setCreativeTab(TabThaumicBees.tabThaumicBees);
this.setUnlocalizedName("frame" + frameType.getName()); this.setUnlocalizedName("frame" + frameType.getName());
GameRegistry.registerItem(this, "frame" + frameType.getName());
} }
@SideOnly(Side.CLIENT) @SideOnly(Side.CLIENT)
@@ -53,21 +48,13 @@ public class ItemMagicHiveFrame extends Item implements IHiveFrame
return this.doWear(housing.getWorld(), housing.getXCoord(), housing.getYCoord(), housing.getZCoord(), frame, wear); return this.doWear(housing.getWorld(), housing.getXCoord(), housing.getYCoord(), housing.getZCoord(), frame, wear);
} }
private void doFluxEffect(World w, int x, int y, int z)
{
if (this.type.flux != null && w.rand.nextInt(5) <= 1)
{
ThaumcraftApi.addFluxToClosest(w, x, y, z, this.type.flux);
}
}
private ItemStack doWear(World w, int x, int y, int z, ItemStack frame, int wear) private ItemStack doWear(World w, int x, int y, int z, ItemStack frame, int wear)
{ {
int damage = wear; int damage = wear;
int fluxMod = 1;
if (ThaumcraftHelper.isActive()) if (ThaumcraftHelper.isActive())
{ {
int fluxMod = 1;
// This throttles back the amount of aura consumed by the frame by storing a smidge of data on the item stack. // This throttles back the amount of aura consumed by the frame by storing a smidge of data on the item stack.
if (this.type.auraPerUse > 0) if (this.type.auraPerUse > 0)
{ {
@@ -94,7 +81,12 @@ public class ItemMagicHiveFrame extends Item implements IHiveFrame
damage = wear + this.type.auraPerUse * this.type.wearTicksPerAura; damage = wear + this.type.auraPerUse * this.type.wearTicksPerAura;
fluxMod = 1 + w.rand.nextInt(this.type.wearTicksPerAura); fluxMod = 1 + w.rand.nextInt(this.type.wearTicksPerAura);
} }
wearTicks = 0; wearTicks = 0;
for (int i = 0; i < fluxMod; ++i)
{
ThaumcraftHelper.doFluxEffect(this.type, w, x, y, z);
}
} }
tag.setByte("wearTicks", (byte)wearTicks); tag.setByte("wearTicks", (byte)wearTicks);
@@ -107,11 +99,6 @@ public class ItemMagicHiveFrame extends Item implements IHiveFrame
frame.setItemDamage(frame.getItemDamage() + damage); frame.setItemDamage(frame.getItemDamage() + damage);
for (int i = 0; i < fluxMod; ++i)
{
this.doFluxEffect(w, x, y, z);
}
if (frame.getItemDamage() >= frame.getMaxDamage()) if (frame.getItemDamage() >= frame.getMaxDamage())
{ {
// Break the frame. // Break the frame.
@@ -2,11 +2,14 @@ package thaumicbees.item;
import java.util.List; import java.util.List;
import cpw.mods.fml.common.registry.GameRegistry;
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 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.VersionInfo;
import thaumicbees.main.utils.compat.ForestryHelper; import thaumicbees.main.utils.compat.ForestryHelper;
import net.minecraft.client.renderer.texture.IconRegister; import net.minecraft.client.renderer.texture.IconRegister;
@@ -22,9 +25,10 @@ public class ItemMiscResources extends Item
public ItemMiscResources(int ID) public ItemMiscResources(int ID)
{ {
super(ID); super(ID);
this.setUnlocalizedName("tb.miscResources"); this.setCreativeTab(TabThaumicBees.tabThaumicBees);
this.setCreativeTab(CreativeTabs.tabMaterials);
this.setHasSubtypes(true); this.setHasSubtypes(true);
this.setUnlocalizedName("tb.miscResources");
GameRegistry.registerItem(this, "tb.miscResources");
} }
public ItemStack getStackForType(ResourceType type) public ItemStack getStackForType(ResourceType type)
@@ -0,0 +1,62 @@
package thaumicbees.item;
import java.util.List;
import cpw.mods.fml.common.registry.GameRegistry;
import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;
import thaumicbees.item.types.PollenType;
import thaumicbees.main.Config;
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("tb.moonDial");
GameRegistry.registerItem(this, "tb.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[4];
}
@Override
@SideOnly(Side.CLIENT)
public Icon getIcon(ItemStack stack, int renderPass, EntityPlayer player, ItemStack usingItem, int useRemaining)
{
return this.icons[MoonPhase.getMoonPhaseFromTime(player.worldObj.getWorldTime()).ordinal()];
}
@Override
@SideOnly(Side.CLIENT)
public void addInformation(ItemStack itemStack, EntityPlayer entityPlayer, List infoList, boolean par4)
{
if (ThaumicBees.getConfig().MoonDialShowsPhaseInText && entityPlayer.getCurrentEquippedItem().getItem() == this)
{
infoList.add("\u00A77" + MoonPhase.getMoonPhaseFromTime(entityPlayer.worldObj.getWorldTime()).getLocalizedName());
}
}
}
@@ -6,6 +6,7 @@ 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 thaumicbees.main.utils.compat.ForestryHelper;
import cpw.mods.fml.common.registry.GameRegistry;
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;
@@ -22,6 +23,8 @@ public class ItemPollen extends Item
super(itemID); super(itemID);
this.setCreativeTab(Tabs.tabApiculture); this.setCreativeTab(Tabs.tabApiculture);
this.setHasSubtypes(true); this.setHasSubtypes(true);
this.setUnlocalizedName("tb.pollen");
GameRegistry.registerItem(this, "tb.pollen");
} }
public ItemStack getStackForType(PollenType type) public ItemStack getStackForType(PollenType type)
{ {
@@ -5,6 +5,7 @@ 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 thaumicbees.main.utils.compat.ForestryHelper;
import cpw.mods.fml.common.registry.GameRegistry;
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;
@@ -21,6 +22,8 @@ public class ItemPropolis extends Item
super(id); super(id);
this.setCreativeTab(Tabs.tabApiculture); this.setCreativeTab(Tabs.tabApiculture);
this.setHasSubtypes(true); this.setHasSubtypes(true);
this.setUnlocalizedName("tb.propolis");
GameRegistry.registerItem(this, "tb.propolis");
} }
public ItemStack getStackForType(PropolisType type) public ItemStack getStackForType(PropolisType type)
@@ -1,19 +1,21 @@
package thaumicbees.item; package thaumicbees.item;
import thaumcraft.api.IVisRepairable; import cpw.mods.fml.common.registry.GameRegistry;
import thaumcraft.api.ThaumcraftApi;
import thaumicbees.main.CommonProxy;
import thaumicbees.main.Config;
import thaumicbees.main.utils.compat.ThaumcraftHelper;
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.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.potion.Potion;
import net.minecraft.potion.PotionEffect;
import net.minecraft.world.World; import net.minecraft.world.World;
import net.minecraftforge.common.ForgeHooks; import net.minecraftforge.common.ForgeHooks;
import thaumcraft.api.IVisRepairable;
import thaumcraft.api.ThaumcraftApi;
import thaumicbees.main.Config;
import thaumicbees.main.utils.compat.ThaumcraftHelper;
import forestry.api.arboriculture.IToolGrafter;
public class ItemThaumiumGrafter extends Item implements IVisRepairable, IToolGrafter public class ItemThaumiumGrafter extends Item implements IVisRepairable, IToolGrafter
{ {
@@ -22,12 +24,13 @@ public class ItemThaumiumGrafter extends Item implements IVisRepairable, IToolGr
super(id); super(id);
this.setMaxStackSize(1); this.setMaxStackSize(1);
this.setMaxDamage(15); this.setMaxDamage(15);
this.setUnlocalizedName("thaumicbees:thaumiumGrafter");
this.setCreativeTab(forestry.api.core.Tabs.tabArboriculture); this.setCreativeTab(forestry.api.core.Tabs.tabArboriculture);
this.setUnlocalizedName("thaumicbees:thaumiumGrafter");
GameRegistry.registerItem(this, "thaumicbees:thaumiumGrafter");
} }
@Override @Override
public float getSaplingModifier(ItemStack stack, World world, int x, int y, int z) public float getSaplingModifier(ItemStack stack, World world, EntityPlayer player, int x, int y, int z)
{ {
return 100f; return 100f;
} }
@@ -45,7 +48,7 @@ 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) {
int damage = 1; int damage = 1;
if (id == Config.tcLeaf.blockID) if (id == Config.tcLeaf.blockID)
{ {
@@ -61,7 +64,13 @@ public class ItemThaumiumGrafter extends Item implements IVisRepairable, IToolGr
damage = 4; damage = 4;
} }
} }
itemstack.damageItem(damage, entityliving); itemstack.damageItem(damage, entityLiving);
if (entityLiving instanceof EntityPlayer)
{
EntityPlayer p = (EntityPlayer)entityLiving;
p.addExhaustion(8f);
}
return true; return true;
} }
@@ -94,15 +103,15 @@ 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, 2, true)) if (ThaumcraftApi.decreaseClosestAura(e.worldObj, e.posX, e.posY, e.posZ, 5, true))
{ {
if (e instanceof EntityPlayer)
{
EntityPlayer p = (EntityPlayer)e;
p.addExhaustion(0.19f);
}
stack.damageItem(-1, (EntityLiving)e); stack.damageItem(-1, (EntityLiving)e);
} }
if (e instanceof EntityPlayer)
{
EntityPlayer p = (EntityPlayer)e;
p.addPotionEffect(new PotionEffect(Potion.digSlowdown.id, 600));
}
} }
} }
} }
@@ -1,5 +1,6 @@
package thaumicbees.item; package thaumicbees.item;
import cpw.mods.fml.common.registry.GameRegistry;
import thaumcraft.api.IVisRepairable; import thaumcraft.api.IVisRepairable;
import thaumcraft.api.ThaumcraftApi; import thaumcraft.api.ThaumcraftApi;
import thaumicbees.main.CommonProxy; import thaumicbees.main.CommonProxy;
@@ -19,8 +20,9 @@ public class ItemThaumiumScoop extends Item implements IVisRepairable
super(itemID); super(itemID);
this.setMaxStackSize(1); this.setMaxStackSize(1);
this.setMaxDamage(30); this.setMaxDamage(30);
this.setUnlocalizedName("thaumicbees:thaumiumScoop");
this.setCreativeTab(forestry.api.core.Tabs.tabApiculture); this.setCreativeTab(forestry.api.core.Tabs.tabApiculture);
this.setUnlocalizedName("thaumicbees:thaumiumScoop");
GameRegistry.registerItem(this, "thaumicbees:thaumiumScoop");
} }
@Override @Override
@@ -2,19 +2,17 @@ package thaumicbees.item;
import java.util.List; import java.util.List;
import thaumicbees.item.types.ResourceType;
import thaumicbees.item.types.WaxType;
import thaumicbees.main.CommonProxy;
import thaumicbees.main.ThaumicBees;
import thaumicbees.main.utils.VersionInfo;
import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;
import forestry.api.core.Tabs;
import net.minecraft.client.renderer.texture.IconRegister; 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; import net.minecraft.util.Icon;
import thaumicbees.item.types.WaxType;
import thaumicbees.main.utils.VersionInfo;
import cpw.mods.fml.common.registry.GameRegistry;
import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;
import forestry.api.core.Tabs;
public class ItemWax extends Item public class ItemWax extends Item
{ {
@@ -26,6 +24,8 @@ public class ItemWax extends Item
super(itemID); super(itemID);
this.setCreativeTab(Tabs.tabApiculture); this.setCreativeTab(Tabs.tabApiculture);
this.setHasSubtypes(true); this.setHasSubtypes(true);
this.setUnlocalizedName("tb.wax");
GameRegistry.registerItem(this, "tb.wax");
} }
public ItemStack getStackForType(WaxType type) public ItemStack getStackForType(WaxType type)
@@ -17,6 +17,8 @@ public enum CombType
INTELLECT("aware", 0xb0092e9, 0x618fff, false), INTELLECT("aware", 0xb0092e9, 0x618fff, false),
SKULKING("furtive", 0xcda6cd, 0x545454, true), SKULKING("furtive", 0xcda6cd, 0x545454, true),
SOUL("soul", 0x8A4500, 0x3C1E00, true), SOUL("soul", 0x8A4500, 0x3C1E00, true),
ESSENCE("essence", 0x03E1DE, 0x015352, false),
POTENT("potent", 0xBFA330, 0x41046F, false),
; ;
private CombType(String pName, int colourA, int colourB, boolean show) private CombType(String pName, int colourA, int colourB, boolean show)
@@ -1,39 +1,29 @@
package thaumicbees.item.types; package thaumicbees.item.types;
import cpw.mods.fml.common.registry.LanguageRegistry;
import thaumcraft.api.EnumTag;
import thaumcraft.api.ObjectTags;
import thaumicbees.main.utils.LocalizationManager; 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), RESILIENT("Resilient", 33, 840, 1f, 1f, 1f, 2f, 2, 5),
RESILIENT("Resilient", 33, 840, 1f, 1f, 1f, 2f, 2, 5, GENTLE("Gentle", 34, 200, 1f, 0.7f, 1.5f, 1.4f, 1, 5),
new ObjectTags().add(EnumTag.ARMOR, 1)), METABOLIC("Metabolic", 35, 120, 1f, 1.8f, 1f, 1.2f, 5, 5),
GENTLE("Gentle", 34, 200, 1f, 0.7f, 1.5f, 1.4f, 1, 5, NECROTIC("Necrotic", 36, 290, 1f, 1f, 0.3f, 0.75f, 1, 5),
new ObjectTags().add(EnumTag.HEAL, 1).add(EnumTag.LIFE, 1)), TEMPORAL("Temporal", 37, 300, 1f, 1f, 2.5f, 1f, 1, 5 ),
METABOLIC("Metabolic", 35, 120, 1f, 1.8f, 1f, 1.2f, 5, 5, OBLIVION("Oblivion", 38, 60, 1f, 1f, 0.0001f, 0f, 15, 1),
new ObjectTags().add(EnumTag.EXCHANGE, 1).add(EnumTag.MOTION, 1)),
NECROTIC("Necrotic", 36, 290, 1f, 1f, 0.3f, 0.75f, 1, 5,
new ObjectTags().add(EnumTag.DEATH, 3).add(EnumTag.POISON, 2)),
TEMPORAL("Temporal", 37, 300, 1f, 1f, 2.5f, 1f, 1, 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,
float territory, float mutation, float lifespan, float production, float territory, float mutation, float lifespan, float production,
int auraUse, int wearTicks, ObjectTags fluxTags) int auraUse, int wearTicks)
{ {
this(name, icon, damage, territory, mutation, lifespan, production, 1f, false, false, false, false, auraUse, wearTicks, fluxTags); this(name, icon, damage, territory, mutation, lifespan, production, 1f, false, false, false, false, auraUse, wearTicks);
} }
private HiveFrameType(String name, int icon, int damage, private HiveFrameType(String name, int icon, int damage,
float territory, float mutation, float lifespan, float production, float flowering, float territory, float mutation, float lifespan, float production, float flowering,
boolean sealed, boolean lit, boolean sunlit, boolean hellish, boolean sealed, boolean lit, boolean sunlit, boolean hellish,
int auraUse, int wearTicks, ObjectTags fluxTags) int auraUse, int wearTicks)
{ {
this.frameName = name; this.frameName = name;
this.iconIdx = icon; this.iconIdx = icon;
@@ -50,7 +40,6 @@ public enum HiveFrameType
this.isHellish = hellish; this.isHellish = hellish;
this.auraPerUse = auraUse; this.auraPerUse = auraUse;
this.flux = fluxTags;
this.wearTicksPerAura = wearTicks; this.wearTicksPerAura = wearTicks;
} }
@@ -68,7 +57,6 @@ public enum HiveFrameType
public boolean isSunlit; public boolean isSunlit;
public boolean isHellish; public boolean isHellish;
public ObjectTags flux;
public int auraPerUse; public int auraPerUse;
public int wearTicksPerAura; public int wearTicksPerAura;
@@ -12,6 +12,7 @@ public enum NuggetType
LEAD, LEAD,
DIAMOND, DIAMOND,
EMERALD, EMERALD,
APATITE,
; ;
private Item targetIngot; private Item targetIngot;
@@ -11,8 +11,8 @@ public enum ResourceType
// Dummy items for Thaumanomicon research icons. // Dummy items for Thaumanomicon research icons.
// These won't ever actually exist in-game, and so // These won't ever actually exist in-game, and so
RESEARCH_StartNode("startNode", false), RESEARCH_STARTNODE("startNode", false),
RESEARCH_BeeInfusion("beeInfusion", false), RESEARCH_BEEINFUSION("beeInfusion", false),
; ;
private ResourceType(String n, boolean show) private ResourceType(String n, boolean show)
@@ -1,10 +1,12 @@
package thaumicbees.main; package thaumicbees.main;
import java.lang.reflect.Field;
import thaumicbees.main.render.BeeRenderEffect;
import net.minecraft.world.World; import net.minecraft.world.World;
import net.minecraftforge.client.MinecraftForgeClient; import net.minecraftforge.client.MinecraftForgeClient;
import thaumicbees.client.render.EffectJarRenderer;
import thaumicbees.main.render.BeeRenderEffect;
import thaumicbees.tileentity.TileEntityEffectJar;
import cpw.mods.fml.client.registry.ClientRegistry;
import cpw.mods.fml.client.registry.RenderingRegistry;
import cpw.mods.fml.relauncher.Side; import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly; import cpw.mods.fml.relauncher.SideOnly;
@@ -15,25 +17,13 @@ public class ClientProxy extends CommonProxy
public ClientProxy() { } public ClientProxy() { }
@Override @Override
public void preloadTextures() public void registerTileEntities()
{ {
// Preload the TCBees items file super.registerTileEntities();
MinecraftForgeClient.preloadTexture(TCBEES_ITEMS_IMAGE);
MinecraftForgeClient.preloadTexture(TCBEES_LIQUIDS_IMAGE);
Field f; RenderIdEffectJar = RenderingRegistry.getNextAvailableRenderId();
try MinecraftForgeClient.registerItemRenderer(Config.effectJar.blockID, EffectJarRenderer.instance);
{ ClientRegistry.bindTileEntitySpecialRenderer(TileEntityEffectJar.class, EffectJarRenderer.instance);
f = Class.forName("forestry.core.config.Config").getField("enableParticleFX");
ThaumicBees.getConfig().DrawParticleEffects = f.getBoolean(null);
f = Class.forName("forestry.core.config.Defaults").getField("TEXTURE_PARTICLES_BEE");
thaumicbees.main.CommonProxy.FORESTRY_GFX_BEEEFFECTS = (String)f.get(null);
}
catch (Exception e)
{
e.printStackTrace();
}
} }
@Override @Override
@@ -1,27 +1,31 @@
package thaumicbees.main; package thaumicbees.main;
import thaumicbees.tileentity.TileEntityEffectJar;
import cpw.mods.fml.client.FMLClientHandler; import cpw.mods.fml.client.FMLClientHandler;
import cpw.mods.fml.common.registry.GameRegistry;
import net.minecraft.client.Minecraft; import net.minecraft.client.Minecraft;
import net.minecraft.world.World; import net.minecraft.world.World;
public class CommonProxy public class CommonProxy
{ {
public static final String TCBEES_GFX = "/gfx/thaumicbees/"; public static final String TEXTURE_PATH = "/mods/thaumicbees/textures/";
public static final String MODEL_PATH = "/mods/thaumicbees/model/";
public static final String TCBEES_RESEARCH = "/research/thaumicbees/"; public static final String TCBEES_RESEARCH = "/research/thaumicbees/";
public static final String TCBEES_LOCDIR = "/lang/thaumicbees/"; public static final String TCBEES_LOCDIR = "/lang/thaumicbees/";
public static final String TCBEES_ITEM_GFX = TCBEES_GFX + "items/";
public static String FORESTRY_GFX_ITEMS; public static String FORESTRY_GFX_ITEMS;
public static String FORESTRY_GFX_BEEEFFECTS; public static String FORESTRY_GFX_BEEEFFECTS;
public static final String TCBEES_ITEMS_IMAGE = TCBEES_ITEM_GFX + "items.png"; public static final String GUI_PATH = TEXTURE_PATH + "gui/";
public static final String TCBEES_LIQUIDS_IMAGE = TCBEES_ITEM_GFX + "liquids.png"; public static final String MODEL_TEXTURE_PATH = TEXTURE_PATH + "model/";
public static int RenderIdEffectJar;
public CommonProxy() { } public CommonProxy() { }
public void preloadTextures() public void registerTileEntities()
{ {
// Does nothing here. GameRegistry.registerTileEntity(TileEntityEffectJar.class, "tb.entity.effectJar");
} }
public void drawBeeEffects(World world, double xPos, double yPos, double zPos, int colour, int rangeX, int rangeY, int rangeZ) public void drawBeeEffects(World world, double xPos, double yPos, double zPos, int colour, int rangeX, int rangeY, int rangeZ)
@@ -33,5 +37,7 @@ public class CommonProxy
{ {
return FMLClientHandler.instance().getClient(); return FMLClientHandler.instance().getClient();
} }
public void registerRenderers() { }
} }
+79 -30
View File
@@ -1,6 +1,8 @@
package thaumicbees.main; package thaumicbees.main;
import java.io.File; import java.io.File;
import java.lang.reflect.Constructor;
import java.lang.reflect.Field;
import net.minecraft.block.Block; import net.minecraft.block.Block;
import net.minecraft.item.Item; import net.minecraft.item.Item;
@@ -15,6 +17,7 @@ import net.minecraftforge.common.Configuration;
import net.minecraftforge.common.MinecraftForge; import net.minecraftforge.common.MinecraftForge;
import net.minecraftforge.common.Property; import net.minecraftforge.common.Property;
import net.minecraftforge.oredict.OreDictionary; import net.minecraftforge.oredict.OreDictionary;
import thaumicbees.block.BlockEffectJar;
import thaumicbees.block.BlockPlanks; import thaumicbees.block.BlockPlanks;
import thaumicbees.block.BlockWoodSlab; import thaumicbees.block.BlockWoodSlab;
import thaumicbees.item.ItemCapsule; import thaumicbees.item.ItemCapsule;
@@ -23,6 +26,7 @@ import thaumicbees.item.ItemCrystalAspect;
import thaumicbees.item.ItemDrop; import thaumicbees.item.ItemDrop;
import thaumicbees.item.ItemMagicHiveFrame; import thaumicbees.item.ItemMagicHiveFrame;
import thaumicbees.item.ItemMiscResources; import thaumicbees.item.ItemMiscResources;
import thaumicbees.item.ItemMoonDial;
import thaumicbees.item.ItemNugget; import thaumicbees.item.ItemNugget;
import thaumicbees.item.ItemPollen; import thaumicbees.item.ItemPollen;
import thaumicbees.item.ItemPropolis; import thaumicbees.item.ItemPropolis;
@@ -35,12 +39,14 @@ import thaumicbees.item.types.NuggetType;
import thaumicbees.item.types.PlankType; import thaumicbees.item.types.PlankType;
import thaumicbees.item.types.ResourceType; import thaumicbees.item.types.ResourceType;
import thaumicbees.main.utils.LocalizationManager; import thaumicbees.main.utils.LocalizationManager;
import thaumicbees.main.utils.compat.ArsMagicaHelper;
import thaumicbees.main.utils.compat.EquivalentExchangeHelper; 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 thaumicbees.storage.BackpackDefinition; import thaumicbees.storage.BackpackDefinition;
import cpw.mods.fml.common.FMLLog; import cpw.mods.fml.common.FMLLog;
import cpw.mods.fml.common.event.FMLInterModComms; import cpw.mods.fml.common.event.FMLInterModComms;
import cpw.mods.fml.common.registry.GameRegistry;
import forestry.api.apiculture.BeeManager; import forestry.api.apiculture.BeeManager;
import forestry.api.storage.BackpackManager; import forestry.api.storage.BackpackManager;
import forestry.api.storage.EnumBackpackType; import forestry.api.storage.EnumBackpackType;
@@ -55,15 +61,17 @@ public class Config
public boolean DrawParticleEffects; public boolean DrawParticleEffects;
public boolean BeeInfusionsAdded; public boolean BeeInfusionsAdded;
public boolean AddThaumcraftItemsToBackpacks; public boolean AddThaumcraftItemsToBackpacks;
public boolean SkipUpdateCheck; public boolean DisableUpdateCheck;
public boolean AreMagicPlanksFlammable; public boolean AreMagicPlanksFlammable;
public boolean UseImpregnatedStickInTools; public boolean UseImpregnatedStickInTools;
public boolean MoonDialShowsPhaseInText;
public String ThaumaturgeExtraItems; public String ThaumaturgeExtraItems;
public int CapsuleStackSizeMax; public int CapsuleStackSizeMax;
public static BlockPlanks planksWood; public static BlockPlanks planksWood;
public static BlockWoodSlab slabWoodHalf; public static BlockWoodSlab slabWoodHalf;
public static BlockWoodSlab slabWoodFull; public static BlockWoodSlab slabWoodFull;
public static BlockEffectJar effectJar;
public static ItemComb combs; public static ItemComb combs;
public static ItemWax wax; public static ItemWax wax;
@@ -73,9 +81,10 @@ public class Config
public static ItemCrystalAspect solidFlux; public static ItemCrystalAspect solidFlux;
public static ItemMiscResources miscResources; public static ItemMiscResources miscResources;
public static ItemFood jellyBaby; public static ItemFood jellyBaby;
public static ItemThaumiumScoop thaumiumScoop; public static Item thaumiumScoop;
public static ItemThaumiumGrafter thaumiumGrafter; public static Item thaumiumGrafter;
public static ItemNugget nuggets; public static ItemNugget nuggets;
public static ItemMoonDial moonDial;
//----- Liquid Capsules -------------------- //----- Liquid Capsules --------------------
public static ItemCapsule magicCapsule; public static ItemCapsule magicCapsule;
@@ -120,8 +129,24 @@ public class Config
public static Item tcNuggetChicken; public static Item tcNuggetChicken;
public static Item tcNuggetBeef; public static Item tcNuggetBeef;
public static Item tcNuggetPork; public static Item tcNuggetPork;
//----- Equivalent Exchange Blocks -------------------------
//----- Equivalent Exchange Items -------------------------- //----- Equivalent Exchange Items --------------------------
public static Item eeMinuimShard; public static Item eeMinuimShard;
//----- Ars Magica Blocks ----------------------------------
public static Block amBlackOrchid;
public static Block amDesertNova;
//----- Ars Magica Items -----------------------------------
public static Item amVinteumDust;
public static Item amArcaneCompound;
public static Item amEssenceArcane;
public static Item amEssenceEarth;
public static Item amEssenceWater;
public static Item amEssenceFire;
public static Item amEssenceAir;
public static Item amEssenceMagma;
public static Item amEssencePlant;
public static Item amEssenceIce;
public static Item amEssenceLightning;
//----- Config State info ---------------------------------- //----- Config State info ----------------------------------
@@ -145,6 +170,7 @@ public class Config
ThaumcraftHelper.getBlocks(); ThaumcraftHelper.getBlocks();
ForestryHelper.getBlocks(); ForestryHelper.getBlocks();
EquivalentExchangeHelper.getBlocks(); EquivalentExchangeHelper.getBlocks();
ArsMagicaHelper.getBlocks();
int blockIdBase = 1750; int blockIdBase = 1750;
@@ -156,11 +182,11 @@ public class Config
if (ThaumcraftHelper.isActive()) if (ThaumcraftHelper.isActive())
{ {
planksWood = new BlockPlanks(plankId); planksWood = new BlockPlanks(plankId);
planksWood.setUnlocalizedName("tb.planks");
Item item = new ItemMultiTextureTile(planksWood.blockID - 256, planksWood, PlankType.getAllNames()) Item item = new ItemMultiTextureTile(planksWood.blockID - 256, planksWood, PlankType.getAllNames());
.setUnlocalizedName(planksWood.getUnlocalizedName2());
Item.itemsList[planksWood.blockID] = item; Item.itemsList[planksWood.blockID] = item;
OreDictionary.registerOre("plankWood", new ItemStack(planksWood, 1, -1)); OreDictionary.registerOre("plankWood", new ItemStack(planksWood, 1, -1));
FMLInterModComms.sendMessage("BuildCraft|Transport", "add-facade", ThaumicBees.getConfig().planksWood.blockID + "@" + PlankType.GREATWOOD.ordinal()); FMLInterModComms.sendMessage("BuildCraft|Transport", "add-facade", ThaumicBees.getConfig().planksWood.blockID + "@" + PlankType.GREATWOOD.ordinal());
FMLInterModComms.sendMessage("BuildCraft|Transport", "add-facade", ThaumicBees.getConfig().planksWood.blockID + "@" + PlankType.SILVERWOOD.ordinal()); FMLInterModComms.sendMessage("BuildCraft|Transport", "add-facade", ThaumicBees.getConfig().planksWood.blockID + "@" + PlankType.SILVERWOOD.ordinal());
@@ -168,22 +194,21 @@ public class Config
slabWoodFull = new BlockWoodSlab(slabFullId, true); slabWoodFull = new BlockWoodSlab(slabFullId, true);
slabWoodHalf = new BlockWoodSlab(slabHalfId, false); slabWoodHalf = new BlockWoodSlab(slabHalfId, false);
item = new ItemSlab(slabWoodHalf.blockID - 256, slabWoodHalf, slabWoodFull, false) slabWoodFull.setUnlocalizedName("tb.planks");
.setUnlocalizedName(slabWoodHalf.getUnlocalizedName2()); slabWoodHalf.setUnlocalizedName("tb.planks");
item = new ItemSlab(slabWoodHalf.blockID - 256, slabWoodHalf, slabWoodFull, false);
Item.itemsList[slabWoodHalf.blockID] = item; Item.itemsList[slabWoodHalf.blockID] = item;
item = new ItemSlab(slabWoodFull.blockID - 256, slabWoodHalf, slabWoodFull, true) item = new ItemSlab(slabWoodFull.blockID - 256, slabWoodHalf, slabWoodFull, true);
.setUnlocalizedName(slabWoodFull.getUnlocalizedName2());
Item.itemsList[slabWoodFull.blockID] = item; Item.itemsList[slabWoodFull.blockID] = item;
OreDictionary.registerOre("slabWood", new ItemStack(slabWoodHalf, 1, -1)); OreDictionary.registerOre("slabWood", new ItemStack(slabWoodHalf, 1, -1));
} }
} }
} effectJar = new BlockEffectJar(tbConfig.getBlock("effectJar", blockIdBase++).getInt());
public void registerTileEntities() GameRegistry.registerBlock(effectJar, "tb.effectJar");
{
} }
public void setupItems() public void setupItems()
@@ -191,13 +216,11 @@ public class Config
ThaumcraftHelper.getItems(); ThaumcraftHelper.getItems();
ForestryHelper.getItems(); ForestryHelper.getItems();
EquivalentExchangeHelper.getItems(); EquivalentExchangeHelper.getItems();
ArsMagicaHelper.getItems();
int itemIDBase = 26090; int itemIDBase = 26090;
Property p = tbConfig.getItem("combs", itemIDBase++); combs= new ItemComb(tbConfig.getItem("combs", itemIDBase++).getInt());
combs= new ItemComb(p.getInt());
OreDictionary.registerOre("beeComb", new ItemStack(combs, 1, -1));
wax = new ItemWax(tbConfig.getItem("wax", itemIDBase++).getInt()); wax = new ItemWax(tbConfig.getItem("wax", itemIDBase++).getInt());
propolis = new ItemPropolis(tbConfig.getItem("propolis", itemIDBase++).getInt()); propolis = new ItemPropolis(tbConfig.getItem("propolis", itemIDBase++).getInt());
drops = new ItemDrop(tbConfig.getItem("drop", itemIDBase++).getInt()); drops = new ItemDrop(tbConfig.getItem("drop", itemIDBase++).getInt());
@@ -217,7 +240,7 @@ public class Config
// 0x8700C6 = purpleish. // 0x8700C6 = purpleish.
String backpackName = LocalizationManager.getLocalizedString("tb.backpack.thaumaturge"); String backpackName = LocalizationManager.getLocalizedString("tb.backpack.thaumaturge");
BackpackDefinition def = new BackpackDefinition("thaumaturge", backpackName, 0x8700C6); BackpackDefinition def = new BackpackDefinition("thaumaturge", backpackName, 0x8700C6);
thaumaturgeBackpackT1 = BackpackManager.backpackInterface.addBackpack(tier1, def, EnumBackpackType.T1); thaumaturgeBackpackT1 = BackpackManager.backpackInterface.addBackpack(tier1, def, EnumBackpackType.T1);
thaumaturgeBackpackT2 = BackpackManager.backpackInterface.addBackpack(tier2, def, EnumBackpackType.T2); thaumaturgeBackpackT2 = BackpackManager.backpackInterface.addBackpack(tier2, def, EnumBackpackType.T2);
// Add additional items from configs to backpack. // Add additional items from configs to backpack.
if (ThaumicBees.getConfig().ThaumaturgeExtraItems.length() > 0) if (ThaumicBees.getConfig().ThaumaturgeExtraItems.length() > 0)
@@ -235,7 +258,6 @@ public class Config
} }
magicCapsule = new ItemCapsule(CapsuleType.MAGIC, tbConfig.getItem("magicCapsule", itemIDBase++).getInt(), this.CapsuleStackSizeMax); magicCapsule = new ItemCapsule(CapsuleType.MAGIC, tbConfig.getItem("magicCapsule", itemIDBase++).getInt(), this.CapsuleStackSizeMax);
pollen = new ItemPollen(tbConfig.getItem("pollen", itemIDBase++).getInt()); pollen = new ItemPollen(tbConfig.getItem("pollen", itemIDBase++).getInt());
{ {
@@ -269,6 +291,8 @@ public class Config
jellyBaby = new ItemFood(tbConfig.getItem("jellyBabies", itemIDBase++).getInt(), 1, false).setAlwaysEdible() jellyBaby = new ItemFood(tbConfig.getItem("jellyBabies", itemIDBase++).getInt(), 1, false).setAlwaysEdible()
.setPotionEffect(Potion.moveSpeed.id, 5, 1, 1f); .setPotionEffect(Potion.moveSpeed.id, 5, 1, 1f);
jellyBaby.setUnlocalizedName("thaumicbees:jellyBabies"); jellyBaby.setUnlocalizedName("thaumicbees:jellyBabies");
GameRegistry.registerItem(jellyBaby, "thaumicbees:jellyBabies");
voidCapsule = new ItemCapsule(CapsuleType.VOID, tbConfig.getItem("voidCapsule", itemIDBase++).getInt(), this.CapsuleStackSizeMax); voidCapsule = new ItemCapsule(CapsuleType.VOID, tbConfig.getItem("voidCapsule", itemIDBase++).getInt(), this.CapsuleStackSizeMax);
@@ -277,21 +301,30 @@ public class Config
int grafterID = tbConfig.getItem("thaumiumGrafter", itemIDBase++).getInt(); int grafterID = tbConfig.getItem("thaumiumGrafter", itemIDBase++).getInt();
if (ThaumcraftHelper.isActive()) if (ThaumcraftHelper.isActive())
{ {
thaumiumScoop = new ItemThaumiumScoop(scoopID); try {
MinecraftForge.setToolClass(thaumiumScoop, "scoop", 3); // Reflecting avoids the need to directly include the Thaumcraft API in the jar. BAM!
Constructor ctor1 = Class.forName("thaumicbees.item.ItemThaumiumScoop").getConstructor(int.class);
thaumiumGrafter = new ItemThaumiumGrafter(grafterID); thaumiumScoop = (Item)ctor1.newInstance(scoopID);
MinecraftForge.setToolClass(thaumiumGrafter, "grafter", 3); MinecraftForge.setToolClass(thaumiumScoop, "scoop", 3);
GameRegistry.registerItem(thaumiumScoop, thaumiumScoop.getUnlocalizedName());
Constructor ctor2 = Class.forName("thaumicbees.item.ItemThaumiumGrafter").getConstructor(int.class);
thaumiumGrafter = (Item)ctor2.newInstance(grafterID);
MinecraftForge.setToolClass(thaumiumGrafter, "grafter", 3);
GameRegistry.registerItem(thaumiumGrafter, thaumiumGrafter.getUnlocalizedName());
} catch (Exception e) { }
} }
} }
moonDial = new ItemMoonDial(tbConfig.getItem("moonDial", itemIDBase++).getInt());
// Other tools I might need in the future // Other tools I might need in the future
itemIDBase++; itemIDBase++;
itemIDBase++;
nuggets = new ItemNugget(tbConfig.getItem("beeNuggets", itemIDBase++).getInt()); nuggets = new ItemNugget(tbConfig.getItem("beeNuggets", itemIDBase++).getInt());
nuggets.setUnlocalizedName("beeNuggets");
OreDictionary.registerOre("beeComb", new ItemStack(combs, 1, -1));
OreDictionary.registerOre("nuggetIron", nuggets.getStackForType(NuggetType.IRON)); OreDictionary.registerOre("nuggetIron", nuggets.getStackForType(NuggetType.IRON));
OreDictionary.registerOre("nuggetCopper", nuggets.getStackForType(NuggetType.COPPER)); OreDictionary.registerOre("nuggetCopper", nuggets.getStackForType(NuggetType.COPPER));
OreDictionary.registerOre("nuggetTin", nuggets.getStackForType(NuggetType.TIN)); OreDictionary.registerOre("nuggetTin", nuggets.getStackForType(NuggetType.TIN));
@@ -305,6 +338,18 @@ public class Config
{ {
Property p; Property p;
// Pull config from Forestry via reflection
Field f;
try
{
f = Class.forName("forestry.core.config.Config").getField("enableParticleFX");
this.DrawParticleEffects = f.getBoolean(null);
}
catch (Exception e)
{
e.printStackTrace();
}
p = tbConfig.get("general", "backpack.thaumaturge.additionalItems", ""); p = tbConfig.get("general", "backpack.thaumaturge.additionalItems", "");
p.comment = "Add additional items to the Thaumaturge's Backpack." + p.comment = "Add additional items to the Thaumaturge's Backpack." +
"\n Format is the same as Forestry's: id:meta;id;id:meta (etc)"; "\n Format is the same as Forestry's: id:meta;id;id:meta (etc)";
@@ -322,7 +367,7 @@ public class Config
p = tbConfig.get("general", "disableVersionCheck", false); p = tbConfig.get("general", "disableVersionCheck", false);
p.comment = "Set to true to stop ThaumicBees from checking for updates."; p.comment = "Set to true to stop ThaumicBees from checking for updates.";
this.SkipUpdateCheck = p.getBoolean(false); this.DisableUpdateCheck = p.getBoolean(false);
p = tbConfig.get("general", "areMagicPlanksFlammable", false); p = tbConfig.get("general", "areMagicPlanksFlammable", false);
p.comment = "Set to true to allow Greatwood & Silverwood planks to burn in a fire."; p.comment = "Set to true to allow Greatwood & Silverwood planks to burn in a fire.";
@@ -331,6 +376,10 @@ public class Config
p = tbConfig.get("general", "useImpregnatedStickInTools", false); p = tbConfig.get("general", "useImpregnatedStickInTools", false);
p.comment = "Set to true to make Thaumium Grafter & Scoop require impregnated sticks in the recipe."; p.comment = "Set to true to make Thaumium Grafter & Scoop require impregnated sticks in the recipe.";
this.UseImpregnatedStickInTools = p.getBoolean(false); this.UseImpregnatedStickInTools = p.getBoolean(false);
p = tbConfig.get("general", "moonDialShowText", false);
p.comment = "set to true to show the current moon phase in mouse-over text.";
this.MoonDialShowsPhaseInText = p.getBoolean(false);
} }
} }
@@ -1,13 +1,11 @@
package thaumicbees.main; package thaumicbees.main;
import net.minecraftforge.common.Configuration; import thaumicbees.client.gui.GUIHandler;
import net.minecraftforge.common.MinecraftForge;
import net.minecraftforge.event.ForgeSubscribe;
import thaumicbees.item.types.PlankType;
import thaumicbees.main.utils.CompatabilityManager; import thaumicbees.main.utils.CompatabilityManager;
import thaumicbees.main.utils.CraftingManager; import thaumicbees.main.utils.CraftingManager;
import thaumicbees.main.utils.LocalizationManager; import thaumicbees.main.utils.LocalizationManager;
import thaumicbees.main.utils.VersionInfo; import thaumicbees.main.utils.VersionInfo;
import thaumicbees.main.utils.compat.ArsMagicaHelper;
import thaumicbees.main.utils.compat.EquivalentExchangeHelper; import thaumicbees.main.utils.compat.EquivalentExchangeHelper;
import thaumicbees.main.utils.compat.ExtraBeesHelper; import thaumicbees.main.utils.compat.ExtraBeesHelper;
import thaumicbees.main.utils.compat.ThaumcraftHelper; import thaumicbees.main.utils.compat.ThaumcraftHelper;
@@ -15,10 +13,10 @@ import cpw.mods.fml.common.FMLLog;
import cpw.mods.fml.common.Mod; import cpw.mods.fml.common.Mod;
import cpw.mods.fml.common.SidedProxy; import cpw.mods.fml.common.SidedProxy;
import cpw.mods.fml.common.event.FMLInitializationEvent; import cpw.mods.fml.common.event.FMLInitializationEvent;
import cpw.mods.fml.common.event.FMLInterModComms;
import cpw.mods.fml.common.event.FMLPostInitializationEvent; import cpw.mods.fml.common.event.FMLPostInitializationEvent;
import cpw.mods.fml.common.event.FMLPreInitializationEvent; import cpw.mods.fml.common.event.FMLPreInitializationEvent;
import forestry.api.core.ItemInterface; import cpw.mods.fml.common.network.NetworkMod;
import cpw.mods.fml.common.network.NetworkRegistry;
@Mod( @Mod(
modid=VersionInfo.ModName, modid=VersionInfo.ModName,
@@ -28,6 +26,7 @@ import forestry.api.core.ItemInterface;
version=VersionInfo.Version + " - " + VersionInfo.Build, version=VersionInfo.Version + " - " + VersionInfo.Build,
dependencies=VersionInfo.Depends dependencies=VersionInfo.Depends
) )
@NetworkMod(serverSideRequired=false, clientSideRequired=true)
public class ThaumicBees public class ThaumicBees
{ {
@@ -37,6 +36,7 @@ public class ThaumicBees
@SidedProxy(serverSide="thaumicbees.main.CommonProxy", clientSide="thaumicbees.main.ClientProxy") @SidedProxy(serverSide="thaumicbees.main.CommonProxy", clientSide="thaumicbees.main.ClientProxy")
public static CommonProxy proxy; public static CommonProxy proxy;
public GUIHandler guiHandler;
private String configsPath; private String configsPath;
private Config modConfig; private Config modConfig;
@@ -52,25 +52,14 @@ public class ThaumicBees
ThaumcraftHelper.init(); ThaumcraftHelper.init();
ExtraBeesHelper.init(); ExtraBeesHelper.init();
EquivalentExchangeHelper.init(); EquivalentExchangeHelper.init();
ArsMagicaHelper.init();
} }
@Mod.Init @Mod.Init
public void init(FMLInitializationEvent event) public void init(FMLInitializationEvent event)
{ {
this.proxy.preloadTextures();
try
{
FMLLog.info("[ThaumicBees] Attempting to get Forestry's item graphics file...");
}
catch (Exception e)
{
FMLLog.severe("ThaumicBees encountered a problem while loading!");
throw new RuntimeException("Could not get the Forestry item texture file! Did Forestry load correctly?", e);
}
this.modConfig.setupBlocks(); this.modConfig.setupBlocks();
this.modConfig.registerTileEntities(); this.proxy.registerTileEntities();
this.modConfig.setupItems(); this.modConfig.setupItems();
CompatabilityManager.setupBackpacks(); CompatabilityManager.setupBackpacks();
@@ -79,6 +68,9 @@ public class ThaumicBees
@Mod.PostInit @Mod.PostInit
public void postInit(FMLPostInitializationEvent event) public void postInit(FMLPostInitializationEvent event)
{ {
this.guiHandler = new GUIHandler();
NetworkRegistry.instance().registerGuiHandler(this, this.guiHandler);
thaumicbees.bees.Allele.setupAdditionalAlleles(); thaumicbees.bees.Allele.setupAdditionalAlleles();
thaumicbees.bees.BeeSpecies.setupBeeSpecies(); thaumicbees.bees.BeeSpecies.setupBeeSpecies();
thaumicbees.bees.BeeMutation.setupMutations(); thaumicbees.bees.BeeMutation.setupMutations();
@@ -18,7 +18,7 @@ import net.minecraftforge.client.ForgeHooksClient;
public class BeeRenderEffect extends EntityFX public class BeeRenderEffect extends EntityFX
{ {
public int blendmode = 1; public int blendmode = 1;
private String texture = CommonProxy.FORESTRY_GFX_BEEEFFECTS; private static final String texture = "forestry:particles/swarm_bee";
public BeeRenderEffect(World world, double x, double y, double z, float motionScaleX, float motionScaleY, float motionScaleZ, int color) public BeeRenderEffect(World world, double x, double y, double z, float motionScaleX, float motionScaleY, float motionScaleZ, int color)
{ {
@@ -16,11 +16,13 @@ import thaumicbees.item.types.HiveFrameType;
import thaumicbees.item.types.LiquidType; import thaumicbees.item.types.LiquidType;
import thaumicbees.item.types.NuggetType; import thaumicbees.item.types.NuggetType;
import thaumicbees.item.types.PlankType; import thaumicbees.item.types.PlankType;
import thaumicbees.item.types.PollenType;
import thaumicbees.item.types.PropolisType; import thaumicbees.item.types.PropolisType;
import thaumicbees.item.types.ResourceType; import thaumicbees.item.types.ResourceType;
import thaumicbees.item.types.WaxType; import thaumicbees.item.types.WaxType;
import thaumicbees.main.Config; import thaumicbees.main.Config;
import thaumicbees.main.ThaumicBees; import thaumicbees.main.ThaumicBees;
import thaumicbees.main.utils.compat.ArsMagicaHelper;
import thaumicbees.main.utils.compat.ForestryHelper; import thaumicbees.main.utils.compat.ForestryHelper;
import thaumicbees.main.utils.compat.ShapelessBeeInfusionCraftingRecipe; import thaumicbees.main.utils.compat.ShapelessBeeInfusionCraftingRecipe;
import thaumicbees.main.utils.compat.ThaumcraftHelper; import thaumicbees.main.utils.compat.ThaumcraftHelper;
@@ -120,6 +122,28 @@ public class CraftingManager
'D', Block.dirt, 'D', Block.dirt,
'w', Config.wax.getStackForType(WaxType.SOUL) 'w', Config.wax.getStackForType(WaxType.SOUL)
}); });
GameRegistry.addRecipe(new ItemStack(Config.hiveFrameTemporal), new Object[] {
"sPs", "PfP", "sPs",
's', Block.sand,
'P', Config.pollen.getStackForType(PollenType.PHASED),
'f', Config.hiveFrameMagic
});
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(Config.effectJar), new Object[] {
"GSG", "QPQ", "GGG",
'G', Block.glass,
'S', "slabWood",
'P', Config.pollen.getStackForType(PollenType.UNUSUAL),
'Q', Item.netherQuartz
}));
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(Config.moonDial), new Object[] {
"DqD", "qrq", "DqD",
'r', Item.redstone,
'q', Item.netherQuartz,
'D', "dyeGreen"
}));
if (OreDictionary.getOres("ingotCopper").size() <= 0) if (OreDictionary.getOres("ingotCopper").size() <= 0)
{ {
@@ -181,6 +205,11 @@ public class CraftingManager
"xxx", "xxx", "xxx", "xxx", "xxx", "xxx",
'x', "shardEmerald" 'x', "shardEmerald"
})); }));
GameRegistry.addRecipe(new ShapedOreRecipe(ItemInterface.getItem("apatite"), new Object[] {
"xxx", "xxx", "xxx",
'x', Config.nuggets.getStackForType(NuggetType.APATITE)
}));
if (ThaumcraftHelper.isActive()) if (ThaumcraftHelper.isActive())
{ {
@@ -241,6 +270,16 @@ public class CraftingManager
} }
} }
} }
if (ArsMagicaHelper.isActive())
{
input = ItemInterface.getItem("apatite");
output = Config.miscResources.getStackForType(ResourceType.EXTENDED_FERTILIZER, 4);
GameRegistry.addShapelessRecipe(output, new Object[] {
new ItemStack(Config.amEssenceEarth), new ItemStack(Config.amEssencePlant),
input, input
});
}
} }
private static void setupCentrifugeRecipes() private static void setupCentrifugeRecipes()
@@ -305,6 +344,16 @@ public class CraftingManager
new ItemStack[] {new ItemStack(Config.tcShard, 1, ThaumcraftHelper.ShardType.MAGIC.ordinal())}, new ItemStack[] {new ItemStack(Config.tcShard, 1, ThaumcraftHelper.ShardType.MAGIC.ordinal())},
new int[] { 10 }); new int[] { 10 });
} }
if (ArsMagicaHelper.isActive())
{
RecipeManagers.centrifugeManager.addRecipe(20, Config.combs.getStackForType(CombType.ESSENCE),
new ItemStack[] {Config.wax.getStackForType(WaxType.MAGIC), new ItemStack(Config.amVinteumDust), new ItemStack(Config.amVinteumDust) },
new int[] { 85, 10, 2 } );
RecipeManagers.centrifugeManager.addRecipe(20, Config.combs.getStackForType(CombType.POTENT),
new ItemStack[] {ItemInterface.getItem("beeswax"), ItemInterface.getItem("refractoryWax"), ItemInterface.getItem("honeydew") },
new int[] { 50, 50, 65 } );
}
} }
private static void setupSqueezerRecipes() private static void setupSqueezerRecipes()
@@ -314,10 +363,10 @@ public class CraftingManager
{ {
RecipeManagers.squeezerManager.addRecipe(20, new ItemStack[] {Config.propolis.getStackForType(PropolisType.FIRE) }, RecipeManagers.squeezerManager.addRecipe(20, new ItemStack[] {Config.propolis.getStackForType(PropolisType.FIRE) },
new LiquidStack(Block.lavaStill, 250), new LiquidStack(Block.lavaStill, 250),
new ItemStack(Config.tcShard, 1, ThaumcraftHelper.ShardType.FIRE.ordinal()), 10); new ItemStack(Config.tcShard, 1, ThaumcraftHelper.ShardType.FIRE.ordinal()), 8);
RecipeManagers.squeezerManager.addRecipe(20, new ItemStack[] {Config.propolis.getStackForType(PropolisType.WATER) }, RecipeManagers.squeezerManager.addRecipe(20, new ItemStack[] {Config.propolis.getStackForType(PropolisType.WATER) },
new LiquidStack(Block.waterStill, 500), new LiquidStack(Block.waterStill, 500),
new ItemStack(Config.tcShard, 1, ThaumcraftHelper.ShardType.WATER.ordinal()), 10); new ItemStack(Config.tcShard, 1, ThaumcraftHelper.ShardType.WATER.ordinal()), 8);
} }
} }
@@ -476,14 +525,14 @@ public class CraftingManager
"wSt", "wFw", "tSw", "wSt", "wFw", "tSw",
't', Item.stick, 't', Item.stick,
'S', Block.sand, 'S', Block.sand,
'F', input, 'F', Config.hiveFrameMagic,
'w', Config.wax.getStackForType(WaxType.MAGIC) 'w', Config.wax.getStackForType(WaxType.MAGIC)
}); });
GameRegistry.addRecipe(output, new Object[] { GameRegistry.addRecipe(output, new Object[] {
"tSw", "wFw", "wSt", "tSw", "wFw", "wSt",
't', Item.stick, 't', Item.stick,
'S', Block.sand, 'S', Block.sand,
'F', input, 'F', Config.hiveFrameMagic,
'w', Config.wax.getStackForType(WaxType.MAGIC) 'w', Config.wax.getStackForType(WaxType.MAGIC)
}); });
@@ -42,13 +42,18 @@ public enum MoonPhase
return flag; return flag;
} }
public String getName() public String getLocalizedName()
{ {
return LocalizationManager.getLocalizedString("tb.moon." + this.phaseName); return LocalizationManager.getLocalizedString("tb.moon." + this.phaseName);
} }
public static MoonPhase getMoonPhase(World w) public static MoonPhase getMoonPhase(World w)
{ {
return MoonPhase.values()[(int)((w.getWorldTime() - 0) / 24000L) % 8]; return getMoonPhaseFromTime(w.getWorldTime());
}
public static MoonPhase getMoonPhaseFromTime(long time)
{
return MoonPhase.values()[(int)((time - 6000) / 24000L) % 8];
} }
} }
@@ -0,0 +1,24 @@
package thaumicbees.main.utils;
import thaumicbees.item.types.ResourceType;
import thaumicbees.main.ThaumicBees;
import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;
import net.minecraft.creativetab.CreativeTabs;
import net.minecraft.item.Item;
import net.minecraft.item.ItemStack;
public class TabThaumicBees extends CreativeTabs
{
public static TabThaumicBees tabThaumicBees = new TabThaumicBees();
public TabThaumicBees()
{
super(getNextID(), "thaumicBees");
}
public ItemStack getIconItemStack()
{
return ThaumicBees.getConfig().miscResources.getStackForType(ResourceType.RESEARCH_BEEINFUSION);
}
}
@@ -29,7 +29,7 @@ public class VersionInfo
public static final String Logo = "/gfx/thaumicbees/logo.png"; public static final String Logo = "/gfx/thaumicbees/logo.png";
public static final String Depends = "required-after:Forestry;after:Thaumcraft@[3.0.3,);after:ExtraBees"; public static final String Depends = "required-after:Forestry;after:Thaumcraft;after:ExtraBees;after:EE3;after:ArsMagica";
boolean criticalUpdate; boolean criticalUpdate;
boolean newVersion; boolean newVersion;
@@ -240,7 +240,7 @@ public class VersionInfo
public static void doVersionCheck() public static void doVersionCheck()
{ {
if (!ThaumicBees.getConfig().SkipUpdateCheck) if (!ThaumicBees.getConfig().DisableUpdateCheck)
{ {
VersionInfo main = new VersionInfo("ThaumicBees", Version, VersionURL); VersionInfo main = new VersionInfo("ThaumicBees", Version, VersionURL);
TickHandlerVersion.registerModVersionInfo(main); TickHandlerVersion.registerModVersionInfo(main);
@@ -0,0 +1,67 @@
package thaumicbees.main.utils.compat;
import net.minecraft.block.Block;
import net.minecraft.item.Item;
import thaumicbees.main.Config;
import cpw.mods.fml.common.Loader;
public class ArsMagicaHelper
{
private static boolean isArsMagicaPresent = false;
public static boolean isActive()
{
return isArsMagicaPresent;
}
public static void init()
{
if (Loader.isModLoaded("ArsMagica"))
{
isArsMagicaPresent = true;
}
}
public static void getBlocks()
{
if (isActive())
{
try
{
Class clazz = Class.forName("mithion.arsmagica.blocks.ArsMagicaBlocksCommonProxy");
Config.amBlackOrchid = (Block)(clazz.getField("blueOrchid").get(null));
Config.amDesertNova = (Block)(clazz.getField("desertNova").get(null));
}
catch (Exception e)
{
}
}
}
public static void getItems()
{
if (isActive())
{
try
{
Class clazz = Class.forName("mithion.arsmagica.items.ArsMagicaItemsCommonProxy");
Config.amVinteumDust = (Item)(clazz.getField("vinteumDust").get(null));
Config.amArcaneCompound = (Item)(clazz.getField("arcaneCompound").get(null));
Config.amEssenceAir = (Item)(clazz.getField("airEssence").get(null));
Config.amEssenceArcane = (Item)(clazz.getField("arcaneEssence").get(null));
Config.amEssenceEarth = (Item)(clazz.getField("earthEssence").get(null));
Config.amEssenceFire = (Item)(clazz.getField("fireEssence").get(null));
Config.amEssenceIce = (Item)(clazz.getField("iceEssence").get(null));
Config.amEssenceLightning = (Item)(clazz.getField("lightningEssence").get(null));
Config.amEssenceMagma = (Item)(clazz.getField("magmaEssence").get(null));
Config.amEssencePlant = (Item)(clazz.getField("plantEssence").get(null));
Config.amEssenceWater = (Item)(clazz.getField("waterEssence").get(null));
}
catch (Exception e)
{
}
}
}
}
@@ -7,7 +7,15 @@ import forestry.api.core.ItemInterface;
import thaumicbees.main.Config; import thaumicbees.main.Config;
public class ForestryHelper public class ForestryHelper
{ {
public enum BlockResource
{
APATITE,
COPPER,
TIN,
;
}
public enum CraftingMaterial public enum CraftingMaterial
{ {
PULSATING_DUST, // unused PULSATING_DUST, // unused
@@ -1,8 +1,11 @@
package thaumicbees.main.utils.compat; package thaumicbees.main.utils.compat;
import java.util.HashMap;
import net.minecraft.block.Block; import net.minecraft.block.Block;
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 thaumcraft.api.EnumTag; import thaumcraft.api.EnumTag;
import thaumcraft.api.ItemApi; import thaumcraft.api.ItemApi;
import thaumcraft.api.ObjectTags; import thaumcraft.api.ObjectTags;
@@ -11,8 +14,11 @@ import thaumcraft.api.research.ResearchItem;
import thaumcraft.api.research.ResearchList; import thaumcraft.api.research.ResearchList;
import thaumicbees.bees.BeeGenomeManager; import thaumicbees.bees.BeeGenomeManager;
import thaumicbees.bees.BeeSpecies; import thaumicbees.bees.BeeSpecies;
import thaumicbees.item.ItemThaumiumGrafter;
import thaumicbees.item.ItemThaumiumScoop;
import thaumicbees.item.types.CombType; import thaumicbees.item.types.CombType;
import thaumicbees.item.types.DropType; import thaumicbees.item.types.DropType;
import thaumicbees.item.types.HiveFrameType;
import thaumicbees.item.types.LiquidType; import thaumicbees.item.types.LiquidType;
import thaumicbees.item.types.PollenType; import thaumicbees.item.types.PollenType;
import thaumicbees.item.types.PropolisType; import thaumicbees.item.types.PropolisType;
@@ -22,7 +28,6 @@ import thaumicbees.main.CommonProxy;
import thaumicbees.main.Config; import thaumicbees.main.Config;
import thaumicbees.main.ThaumicBees; import thaumicbees.main.ThaumicBees;
import cpw.mods.fml.common.event.FMLInterModComms; import cpw.mods.fml.common.event.FMLInterModComms;
import cpw.mods.fml.common.registry.LanguageRegistry;
import forestry.api.apiculture.EnumBeeChromosome; import forestry.api.apiculture.EnumBeeChromosome;
import forestry.api.apiculture.EnumBeeType; import forestry.api.apiculture.EnumBeeType;
import forestry.api.core.BlockInterface; import forestry.api.core.BlockInterface;
@@ -116,6 +121,8 @@ public class ThaumcraftHelper
private static boolean isThaumcraftPresent = false; private static boolean isThaumcraftPresent = false;
public static final String Name = "Thaumcraft"; public static final String Name = "Thaumcraft";
private static HashMap<HiveFrameType, Object> fluxData;
public static boolean isActive() public static boolean isActive()
{ {
@@ -129,6 +136,15 @@ public class ThaumcraftHelper
isThaumcraftPresent = true; isThaumcraftPresent = true;
registerResearchXML(); registerResearchXML();
fluxData = new HashMap<HiveFrameType, Object>();
fluxData.put(HiveFrameType.MAGIC, null);
fluxData.put(HiveFrameType.RESILIENT, new ObjectTags().add(EnumTag.ARMOR, 1));
fluxData.put(HiveFrameType.GENTLE, new ObjectTags().add(EnumTag.HEAL, 1).add(EnumTag.LIFE, 1));
fluxData.put(HiveFrameType.METABOLIC, new ObjectTags().add(EnumTag.EXCHANGE, 1).add(EnumTag.MOTION, 1));
fluxData.put(HiveFrameType.NECROTIC, new ObjectTags().add(EnumTag.DEATH, 3).add(EnumTag.POISON, 2));
fluxData.put(HiveFrameType.TEMPORAL, new ObjectTags().add(EnumTag.TIME, 5));
fluxData.put(HiveFrameType.OBLIVION, new ObjectTags().add(EnumTag.TIME, 5).add(EnumTag.ELDRITCH, 5));
} }
} }
@@ -219,7 +235,7 @@ public class ThaumcraftHelper
ObjectTags tags; ObjectTags tags;
ItemStack itemStack; ItemStack itemStack;
tags = new ObjectTags().add(EnumTag.WOOD, 2); tags = new ObjectTags().add(EnumTag.WOOD, 1);
ThaumcraftApi.registerObjectTag(Config.planksWood.blockID, -1, tags); ThaumcraftApi.registerObjectTag(Config.planksWood.blockID, -1, tags);
tags = new ObjectTags().add(EnumTag.MAGIC, 2); tags = new ObjectTags().add(EnumTag.MAGIC, 2);
@@ -328,7 +344,7 @@ public class ThaumcraftHelper
tags = new ObjectTags().add(EnumTag.COLD, 1); tags = new ObjectTags().add(EnumTag.COLD, 1);
ThaumcraftApi.registerObjectTag(itemStack.itemID, ForestryHelper.CraftingMaterial.ICE_SHARD.ordinal(), tags); ThaumcraftApi.registerObjectTag(itemStack.itemID, ForestryHelper.CraftingMaterial.ICE_SHARD.ordinal(), tags);
tags = new ObjectTags().add(EnumTag.VALUABLE, 1).add(EnumTag.PLANT, 1).add(EnumTag.INSECT, 2) tags = new ObjectTags().add(EnumTag.VALUABLE, 1).add(EnumTag.PLANT, 1).add(EnumTag.INSECT, 2)
.add(EnumTag.CONTROL, 2).add(EnumTag.WOOD, 5); .add(EnumTag.CONTROL, 2).add(EnumTag.WOOD, 2);
ThaumcraftApi.registerObjectTag(itemStack.itemID, ForestryHelper.CraftingMaterial.SCENTED_PANELING.ordinal(), tags); ThaumcraftApi.registerObjectTag(itemStack.itemID, ForestryHelper.CraftingMaterial.SCENTED_PANELING.ordinal(), tags);
itemStack = ItemInterface.getItem("beealyzer"); itemStack = ItemInterface.getItem("beealyzer");
@@ -346,11 +362,11 @@ public class ThaumcraftHelper
ThaumcraftApi.registerObjectTag(itemStack.itemID, itemStack.getItemDamage(), tags); ThaumcraftApi.registerObjectTag(itemStack.itemID, itemStack.getItemDamage(), tags);
itemStack = ItemInterface.getItem("impregnatedCasing"); itemStack = ItemInterface.getItem("impregnatedCasing");
tags = new ObjectTags().add(EnumTag.WOOD, 56).add(EnumTag.EXCHANGE, 8); tags = new ObjectTags().add(EnumTag.WOOD, 28).add(EnumTag.EXCHANGE, 8);
ThaumcraftApi.registerObjectTag(itemStack.itemID, itemStack.getItemDamage(), tags); ThaumcraftApi.registerObjectTag(itemStack.itemID, itemStack.getItemDamage(), tags);
itemStack = ItemInterface.getItem("stickImpregnated"); itemStack = ItemInterface.getItem("stickImpregnated");
tags = new ObjectTags().add(EnumTag.WOOD, 6).add(EnumTag.EXCHANGE, 2); tags = new ObjectTags().add(EnumTag.WOOD, 3).add(EnumTag.EXCHANGE, 2);
ThaumcraftApi.registerObjectTag(itemStack.itemID, itemStack.getItemDamage(), tags); ThaumcraftApi.registerObjectTag(itemStack.itemID, itemStack.getItemDamage(), tags);
itemStack = ItemInterface.getItem("peat"); itemStack = ItemInterface.getItem("peat");
@@ -433,7 +449,7 @@ public class ThaumcraftHelper
// Forestry's wood // Forestry's wood
itemStack = BlockInterface.getBlock("log1"); itemStack = BlockInterface.getBlock("log1");
tags = new ObjectTags().add(EnumTag.WOOD, 8); tags = new ObjectTags().add(EnumTag.WOOD, 4);
ThaumcraftApi.registerObjectTag(itemStack.itemID, -1, tags); ThaumcraftApi.registerObjectTag(itemStack.itemID, -1, tags);
itemStack = BlockInterface.getBlock("log2"); // Same tags itemStack = BlockInterface.getBlock("log2"); // Same tags
ThaumcraftApi.registerObjectTag(itemStack.itemID, -1, tags); ThaumcraftApi.registerObjectTag(itemStack.itemID, -1, tags);
@@ -443,7 +459,7 @@ public class ThaumcraftHelper
ThaumcraftApi.registerObjectTag(itemStack.itemID, -1, tags); ThaumcraftApi.registerObjectTag(itemStack.itemID, -1, tags);
itemStack = ItemInterface.getItem("sapling"); itemStack = ItemInterface.getItem("sapling");
tags = new ObjectTags().add(EnumTag.PLANT, 4).add(EnumTag.WOOD, 2); tags = new ObjectTags().add(EnumTag.PLANT, 4).add(EnumTag.WOOD, 1);
ThaumcraftApi.registerObjectTag(itemStack.itemID, -1, tags); ThaumcraftApi.registerObjectTag(itemStack.itemID, -1, tags);
// BEES! // BEES!
@@ -474,11 +490,11 @@ public class ThaumcraftHelper
itemStack = ItemInterface.getItem("tubes"); itemStack = ItemInterface.getItem("tubes");
tags = new ObjectTags(ItemInterface.getItem("ingotCopper").itemID, 0).add(EnumTag.MECHANISM, 1).add(EnumTag.POWER, 1); tags = new ObjectTags(ItemInterface.getItem("ingotCopper").itemID, 0).add(EnumTag.MECHANISM, 1).add(EnumTag.POWER, 1);
//ThaumcraftApi.registerObjectTag(itemStack.itemID, ForestryHelper.Tube.COPPER.ordinal(), tags); ThaumcraftApi.registerObjectTag(itemStack.itemID, ForestryHelper.Tube.COPPER.ordinal(), tags);
tags = new ObjectTags(ItemInterface.getItem("ingotTin").itemID, 0).add(EnumTag.MECHANISM, 1).add(EnumTag.POWER, 1); tags = new ObjectTags(ItemInterface.getItem("ingotTin").itemID, 0).add(EnumTag.MECHANISM, 1).add(EnumTag.POWER, 1);
//ThaumcraftApi.registerObjectTag(itemStack.itemID, ForestryHelper.Tube.TIN.ordinal(), tags); ThaumcraftApi.registerObjectTag(itemStack.itemID, ForestryHelper.Tube.TIN.ordinal(), tags);
tags = new ObjectTags(ItemInterface.getItem("ingotBronze").itemID, 0).add(EnumTag.MECHANISM, 1).add(EnumTag.POWER, 1); tags = new ObjectTags(ItemInterface.getItem("ingotBronze").itemID, 0).add(EnumTag.MECHANISM, 1).add(EnumTag.POWER, 1);
//ThaumcraftApi.registerObjectTag(itemStack.itemID, ForestryHelper.Tube.BRONZE.ordinal(), tags); ThaumcraftApi.registerObjectTag(itemStack.itemID, ForestryHelper.Tube.BRONZE.ordinal(), tags);
tags = new ObjectTags(Item.ingotIron.itemID, 0).add(EnumTag.MECHANISM, 1).add(EnumTag.POWER, 1); tags = new ObjectTags(Item.ingotIron.itemID, 0).add(EnumTag.MECHANISM, 1).add(EnumTag.POWER, 1);
ThaumcraftApi.registerObjectTag(itemStack.itemID, ForestryHelper.Tube.IRON.ordinal(), tags); ThaumcraftApi.registerObjectTag(itemStack.itemID, ForestryHelper.Tube.IRON.ordinal(), tags);
tags = new ObjectTags(Item.ingotGold.itemID, 0).add(EnumTag.MECHANISM, 1).add(EnumTag.POWER, 1); tags = new ObjectTags(Item.ingotGold.itemID, 0).add(EnumTag.MECHANISM, 1).add(EnumTag.POWER, 1);
@@ -537,7 +553,7 @@ public class ThaumcraftHelper
ObjectTags tags; ObjectTags tags;
tags = new ObjectTags().add(EnumTag.WOOD, 10).add(EnumTag.PLANT, 10).add(EnumTag.INSECT, 10); tags = new ObjectTags().add(EnumTag.WOOD, 10).add(EnumTag.PLANT, 10).add(EnumTag.INSECT, 10);
ResearchItem startNode = new ResearchItem("TBSTARTNODE", tags, 10, 1, Config.miscResources.getStackForType(ResourceType.RESEARCH_StartNode)) ResearchItem startNode = new ResearchItem("TBSTARTNODE", tags, 10, 1, Config.miscResources.getStackForType(ResourceType.RESEARCH_STARTNODE))
.setParents(ResearchList.getResearch("UTFT")) .setParents(ResearchList.getResearch("UTFT"))
.registerResearchItem(); .registerResearchItem();
@@ -548,7 +564,7 @@ public class ThaumcraftHelper
tags = new ObjectTags().add(EnumTag.INSECT, 15).add(EnumTag.MAGIC, 5).add(EnumTag.WATER, 5).add(EnumTag.EARTH, 5) tags = new ObjectTags().add(EnumTag.INSECT, 15).add(EnumTag.MAGIC, 5).add(EnumTag.WATER, 5).add(EnumTag.EARTH, 5)
.add(EnumTag.WIND, 5).add(EnumTag.FIRE, 5); .add(EnumTag.WIND, 5).add(EnumTag.FIRE, 5);
ResearchItem beeInfusion = new ResearchItem("BEEINFUSION", tags, 5, 3, Config.miscResources.getStackForType(ResourceType.RESEARCH_BeeInfusion)) ResearchItem beeInfusion = new ResearchItem("BEEINFUSION", tags, 5, 3, Config.miscResources.getStackForType(ResourceType.RESEARCH_BEEINFUSION))
.setParents(starkHint).setHidden() .setParents(starkHint).setHidden()
.registerResearchItem(); .registerResearchItem();
@@ -757,4 +773,13 @@ public class ThaumcraftHelper
{ princess, new ItemStack(Config.tcShard, 1, ThaumcraftHelper.ShardType.MAGIC.ordinal()) }, { princess, new ItemStack(Config.tcShard, 1, ThaumcraftHelper.ShardType.MAGIC.ordinal()) },
100, tags, BeeSpecies.STARK, EnumBeeChromosome.SPECIES); 100, tags, BeeSpecies.STARK, EnumBeeChromosome.SPECIES);
} }
public static void doFluxEffect(HiveFrameType frameType, World w, int x, int y, int z)
{
ObjectTags flux = (ObjectTags)(fluxData.get(frameType));
if (flux != null && w.rand.nextInt(5) <= 1)
{
ThaumcraftApi.addFluxToClosest(w, x, y, z, flux);
}
}
} }
@@ -1,27 +1,37 @@
package thaumicbees.main.utils; package thaumicbees.tileentity;
import thaumicbees.block.TileEntityEffectJar;
import net.minecraft.item.ItemStack; import net.minecraft.item.ItemStack;
import net.minecraft.world.World; import net.minecraft.world.World;
import forestry.api.apiculture.BeeManager;
import forestry.api.apiculture.IBee; import forestry.api.apiculture.IBee;
import forestry.api.apiculture.IBeeGenome; import forestry.api.apiculture.IBeeGenome;
import forestry.api.apiculture.IBeeHousing; import forestry.api.apiculture.IBeeHousing;
import forestry.api.core.EnumHumidity; import forestry.api.core.EnumHumidity;
import forestry.api.core.EnumTemperature; import forestry.api.core.EnumTemperature;
/**
*
* Singleton object to simulate enough of a bee house to fire the bee effects. =D
*
* @author MysteriousAges
*
*/
public class EffectJarHousing implements IBeeHousing public class EffectJarHousing implements IBeeHousing
{ {
private static EffectJarHousing instance = new EffectJarHousing();
TileEntityEffectJar jarEntity; TileEntityEffectJar jarEntity;
public EffectJarHousing(TileEntityEffectJar entity) public static EffectJarHousing getFor(TileEntityEffectJar entity)
{ {
this.jarEntity = entity; instance.jarEntity = entity;
return instance;
} }
@Override @Override
public float getTerritoryModifier(IBeeGenome genome, float currentModifier) public float getTerritoryModifier(IBeeGenome genome, float currentModifier)
{ {
return 0f; return 0.9f;
} }
@Override @Override
@@ -33,7 +43,7 @@ public class EffectJarHousing implements IBeeHousing
@Override @Override
public float getLifespanModifier(IBeeGenome genome, IBeeGenome mate, float currentModifier) public float getLifespanModifier(IBeeGenome genome, IBeeGenome mate, float currentModifier)
{ {
return 0.5f; return 0f;
} }
@Override @Override
@@ -69,19 +79,19 @@ public class EffectJarHousing implements IBeeHousing
@Override @Override
public boolean isSealed() public boolean isSealed()
{ {
return false; return true;
} }
@Override @Override
public boolean isSelfLighted() public boolean isSelfLighted()
{ {
return false; return true;
} }
@Override @Override
public boolean isSunlightSimulated() public boolean isSunlightSimulated()
{ {
return false; return true;
} }
@Override @Override
@@ -105,7 +115,7 @@ public class EffectJarHousing implements IBeeHousing
@Override @Override
public ItemStack getQueen() public ItemStack getQueen()
{ {
return null; return this.jarEntity.getStackInSlot(TileEntityEffectJar.QUEEN_SLOT);
} }
@Override @Override
@@ -115,7 +125,10 @@ public class EffectJarHousing implements IBeeHousing
} }
@Override @Override
public void setQueen(ItemStack itemstack) { } public void setQueen(ItemStack itemStack)
{
this.jarEntity.setInventorySlotContents(TileEntityEffectJar.QUEEN_SLOT, itemStack);
}
@Override @Override
public void setDrone(ItemStack itemstack) { } public void setDrone(ItemStack itemstack) { }
@@ -129,13 +142,27 @@ public class EffectJarHousing implements IBeeHousing
@Override @Override
public EnumTemperature getTemperature() public EnumTemperature getTemperature()
{ {
return EnumTemperature.NORMAL; EnumTemperature temp = EnumTemperature.NORMAL;
ItemStack stack = this.jarEntity.getStackInSlot(TileEntityEffectJar.QUEEN_SLOT);
if (stack != null)
{
IBee queen = BeeManager.beeInterface.getBee(stack);
temp = queen.getGenome().getPrimary().getTemperature();
}
return temp;
} }
@Override @Override
public EnumHumidity getHumidity() public EnumHumidity getHumidity()
{ {
return EnumHumidity.NORMAL; EnumHumidity humid = EnumHumidity.NORMAL;
ItemStack stack = this.jarEntity.getStackInSlot(TileEntityEffectJar.QUEEN_SLOT);
if (stack != null)
{
IBee queen = BeeManager.beeInterface.getBee(stack);
humid = queen.getGenome().getPrimary().getHumidity();
}
return humid;
} }
@Override @Override
@@ -156,7 +183,7 @@ public class EffectJarHousing implements IBeeHousing
@Override @Override
public int getErrorOrdinal() public int getErrorOrdinal()
{ {
return 0; return 1; // EnumErrorCode.OK.ordinal() value.
} }
@Override @Override
@@ -0,0 +1,247 @@
package thaumicbees.tileentity;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.inventory.IInventory;
import net.minecraft.item.ItemStack;
import net.minecraft.nbt.NBTTagCompound;
import net.minecraft.nbt.NBTTagList;
import net.minecraft.tileentity.TileEntity;
import forestry.api.apiculture.BeeManager;
import forestry.api.apiculture.IAlleleBeeSpecies;
import forestry.api.apiculture.IBee;
import forestry.api.genetics.IEffectData;
public class TileEntityEffectJar extends TileEntity implements IInventory
{
private String ownerName;
private EffectJarHousing housingLogic;
private static final int SLOT_COUNT = 2;
public static final int DRONE_SLOT = 0;
public static final int QUEEN_SLOT = SLOT_COUNT - 1;
private ItemStack[] beeSlots;
private IEffectData[] effectData = new IEffectData[2];
private int throttle;
public int currentBeeHealth;
public int currentBeeColour;
public TileEntityEffectJar()
{
super();
this.beeSlots = new ItemStack[SLOT_COUNT];
}
public void setOwner(EntityPlayer player)
{
this.ownerName = player.username;
}
public String getOwner()
{
return this.ownerName;
}
@Override
public int getSizeInventory()
{
// Last slot reserved for "queen"
return this.beeSlots.length - 1;
}
@Override
public ItemStack getStackInSlot(int slot)
{
return beeSlots[slot];
}
@Override
public void updateEntity()
{
if (this.beeSlots[QUEEN_SLOT] != null)
{
IBee queen = BeeManager.beeInterface.getBee(this.beeSlots[QUEEN_SLOT]);
currentBeeHealth = (queen.getHealth() * 100) / queen.getMaxHealth();
currentBeeColour = ((IAlleleBeeSpecies)queen.getGenome().getPrimary()).getIconColour(0);
EffectJarHousing housingLogic = EffectJarHousing.getFor(this);
this.effectData = queen.doEffect(this.effectData, housingLogic);
if (this.worldObj.getWorldTime() % 5 == 0)
{
this.effectData = queen.doFX(this.effectData, housingLogic);
}
// run the queen
if (throttle > 550)
{
throttle = 0;
queen.age(this.worldObj, 0.26f);
if (queen.getHealth() == 0)
{
this.beeSlots[QUEEN_SLOT] = null;
currentBeeHealth = 0;
currentBeeColour = 0x0ffffff;
}
else
{
queen.writeToNBT(this.beeSlots[QUEEN_SLOT].stackTagCompound);
}
this.onInventoryChanged();
}
else
{
throttle++;
}
}
else if (this.beeSlots[DRONE_SLOT] != null)
{
// make a queen
ItemStack droneStack = this.beeSlots[DRONE_SLOT];
if (BeeManager.beeInterface.isDrone(droneStack))
{
IBee bee = BeeManager.beeInterface.getBee(droneStack);
if (droneStack.stackSize == 1)
{
this.beeSlots[DRONE_SLOT] = null;
}
else
{
droneStack.stackSize--;
}
this.beeSlots[QUEEN_SLOT] = droneStack.copy();
this.beeSlots[QUEEN_SLOT].stackSize = 1;
int current = bee.getHealth();
int max = bee.getMaxHealth();
currentBeeHealth = (current * 100) / max;
currentBeeColour = ((IAlleleBeeSpecies)bee.getGenome().getPrimary()).getIconColour(0);
}
this.onInventoryChanged();
}
}
@Override
public ItemStack decrStackSize(int slot, int count)
{
ItemStack value = null;
if (this.beeSlots[slot] != null)
{
value = this.beeSlots[slot].copy();
value.stackSize = Math.min(count, this.beeSlots[slot].stackSize);
this.beeSlots[slot].stackSize -= value.stackSize;
if (this.beeSlots[slot].stackSize == 0)
{
this.beeSlots[slot] = null;
}
}
onInventoryChanged();
return value;
}
@Override
public ItemStack getStackInSlotOnClosing(int slot)
{
ItemStack value = null;
if (this.beeSlots[slot] != null)
{
value = this.beeSlots[slot];
this.beeSlots[slot] = null;
}
onInventoryChanged();
return value;
}
@Override
public void readFromNBT(NBTTagCompound tagRoot)
{
super.readFromNBT(tagRoot);
NBTTagList nbttaglist = tagRoot.getTagList("Items");
this.beeSlots = new ItemStack[SLOT_COUNT];
for (int i = 0; i < nbttaglist.tagCount(); ++i)
{
NBTTagCompound nbttagcompound1 = (NBTTagCompound)nbttaglist.tagAt(i);
byte b0 = nbttagcompound1.getByte("Slot");
if (b0 >= 0 && b0 < this.beeSlots.length)
{
this.beeSlots[b0] = ItemStack.loadItemStackFromNBT(nbttagcompound1);
}
}
this.currentBeeHealth = tagRoot.getInteger("currentBeeHealth");
this.throttle = tagRoot.getInteger("throttle");
}
@Override
public void writeToNBT(NBTTagCompound tagRoot)
{
super.writeToNBT(tagRoot);
NBTTagList inventory = new NBTTagList();
for (int i = 0; i < this.beeSlots.length; ++i)
{
if (this.beeSlots[i] != null)
{
NBTTagCompound itemTag = new NBTTagCompound();
itemTag.setByte("Slot", (byte)i);
this.beeSlots[i].writeToNBT(itemTag);
inventory.appendTag(itemTag);
}
}
tagRoot.setTag("Items", inventory);
tagRoot.setInteger("currentBeeHealth", this.currentBeeHealth);
tagRoot.setInteger("throttle", this.throttle);
}
@Override
public void setInventorySlotContents(int slot, ItemStack itemStack)
{
this.beeSlots[slot] = itemStack;
if (this.beeSlots[slot] != null)
{
this.beeSlots[slot].stackSize = Math.min(this.beeSlots[slot].stackSize, this.beeSlots[slot].getItem().getItemStackLimit());
}
onInventoryChanged();
}
@Override
public String getInvName()
{
return "container.effectJar";
}
@Override
public boolean isInvNameLocalized()
{
return false;
}
@Override
public int getInventoryStackLimit()
{
return 64;
}
@Override
public boolean isUseableByPlayer(EntityPlayer entityplayer)
{
return true;
}
@Override
public boolean isStackValidForSlot(int i, ItemStack itemStack)
{
return true;
}
@Override
public void openChest() { }
@Override
public void closeChest() { }
}