mirror of
https://github.com/GTNewHorizons/MagicBees.git
synced 2026-11-19 03:49:13 +00:00
Initial commit.
This commit is contained in:
commit
9249986aef
10 files changed
+809
No files matched your search
@@ -0,0 +1,8 @@
|
||||
package forestry.plugins;
|
||||
|
||||
import thaumicbees.main.bees.ThaumicBeesPlugin;
|
||||
|
||||
public class PluginThaumicBees extends ThaumicBeesPlugin
|
||||
{
|
||||
|
||||
}
|
||||
+12
@@ -0,0 +1,12 @@
|
||||
[
|
||||
{
|
||||
"modid": "ThaumicBees",
|
||||
"name": "ThaumicBees",
|
||||
"description": "Forestry bees have become magical...",
|
||||
"version": "0.0.0",
|
||||
"mcversion": "1.4.5",
|
||||
"requiredMods": [ "Forge", "Thaumcraft", "Forestry" ],
|
||||
"dependencies": [ "Thaumcraft", "Forestry" ],
|
||||
"useDependencyInformation": "true"
|
||||
}
|
||||
]
|
||||
@@ -0,0 +1,49 @@
|
||||
package thaumicbees.main;
|
||||
|
||||
import cpw.mods.fml.relauncher.Side;
|
||||
import cpw.mods.fml.relauncher.SideOnly;
|
||||
import net.minecraft.item.Item;
|
||||
import net.minecraft.item.ItemStack;
|
||||
|
||||
public class ItemMagicalComb extends Item
|
||||
{
|
||||
|
||||
private String name;
|
||||
private int colour[];
|
||||
|
||||
public ItemMagicalComb(String combName, int itemID, int colour1, int colour2)
|
||||
{
|
||||
super(itemID);
|
||||
this.name = combName;
|
||||
this.colour = new int[2];
|
||||
this.colour[0] = colour1;
|
||||
this.colour[1] = colour2;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getRenderPasses(int metadata)
|
||||
{
|
||||
return 2;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getTextureFile()
|
||||
{
|
||||
return ThaumicBees.FORESTRY_GFX_ITEMS;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getIconIndex(ItemStack stack, int pass)
|
||||
{
|
||||
return 12 * 16 + 6 + pass;
|
||||
}
|
||||
|
||||
@Override
|
||||
@SideOnly(Side.CLIENT)
|
||||
public int getColorFromItemStack(ItemStack par1ItemStack, int pass)
|
||||
{
|
||||
|
||||
return (pass < 2) ? this.colour[pass] : 0xFFFFFF;
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,60 @@
|
||||
package thaumicbees.main;
|
||||
|
||||
import cpw.mods.fml.common.Mod;
|
||||
import cpw.mods.fml.common.event.*;
|
||||
import forestry.api.apiculture.EnumBeeType;
|
||||
import java.io.PrintStream;
|
||||
import java.lang.reflect.Field;
|
||||
|
||||
import net.minecraft.item.Item;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraftforge.common.MinecraftForge;
|
||||
import net.minecraftforge.event.EventBus;
|
||||
import net.minecraftforge.event.ForgeSubscribe;
|
||||
import net.minecraftforge.event.world.WorldEvent;
|
||||
import thaumcraft.api.*;
|
||||
import thaumicbees.main.bees.BeeSpecies;
|
||||
import thaumicbees.main.bees.ThaumicBeesPlugin;
|
||||
|
||||
@Mod(modid="ThaumicBees", name="Thaumic Bees", version="0.0", dependencies="required-after:Forestry;required-after:Thaumcraft")
|
||||
public class ThaumicBees
|
||||
{
|
||||
|
||||
@Mod.Instance(value="ThaumicBees")
|
||||
public static ThaumicBees object;
|
||||
private boolean ThaumcraftRecipesAdded;
|
||||
public static String FORESTRY_GFX_ITEMS;
|
||||
|
||||
public ThaumicBees()
|
||||
{
|
||||
ThaumcraftRecipesAdded = false;
|
||||
}
|
||||
|
||||
@Mod.PreInit
|
||||
public void preInit(FMLPreInitializationEvent fmlpreinitializationevent)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
@Mod.Init
|
||||
public void init(FMLInitializationEvent fmlinitializationevent)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
@Mod.PostInit
|
||||
public void postInit(FMLPostInitializationEvent e)
|
||||
{
|
||||
MinecraftForge.EVENT_BUS.register(this);
|
||||
}
|
||||
|
||||
@ForgeSubscribe
|
||||
public void worldLoad(net.minecraftforge.event.world.WorldEvent.Load e)
|
||||
{
|
||||
if (!ThaumcraftRecipesAdded)
|
||||
{
|
||||
ThaumicBeesPlugin.setupBeeInfusions(e.world);
|
||||
ThaumcraftRecipesAdded = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,64 @@
|
||||
package thaumicbees.main.bees;
|
||||
|
||||
import forestry.api.apiculture.IBeeBranch;
|
||||
import forestry.api.genetics.IAlleleSpecies;
|
||||
import java.util.ArrayList;
|
||||
|
||||
public class BeeBranch implements IBeeBranch
|
||||
{
|
||||
|
||||
public static BeeBranch Arcane;
|
||||
public static BeeBranch Supernatural;
|
||||
public static BeeBranch Stark;
|
||||
public static BeeBranch Elemental;
|
||||
public static BeeBranch Scholarly;
|
||||
private String uID;
|
||||
private String name;
|
||||
private String scientific;
|
||||
private String description;
|
||||
private ArrayList memberSpecies;
|
||||
|
||||
public BeeBranch(String branchName, String scientificName)
|
||||
{
|
||||
this(branchName, scientificName, "");
|
||||
}
|
||||
|
||||
public BeeBranch(String branchName, String scientificName, String branchDescription)
|
||||
{
|
||||
uID = (new StringBuilder()).append("thaumicbees.branch.").append(branchName.toLowerCase()).toString();
|
||||
name = branchName;
|
||||
scientific = scientificName;
|
||||
description = branchDescription;
|
||||
memberSpecies = new ArrayList();
|
||||
}
|
||||
|
||||
public String getUID()
|
||||
{
|
||||
return uID;
|
||||
}
|
||||
|
||||
public String getName()
|
||||
{
|
||||
return name;
|
||||
}
|
||||
|
||||
public String getScientific()
|
||||
{
|
||||
return scientific;
|
||||
}
|
||||
|
||||
public String getDescription()
|
||||
{
|
||||
return description;
|
||||
}
|
||||
|
||||
public IAlleleSpecies[] getMembers()
|
||||
{
|
||||
return (IAlleleSpecies[]) memberSpecies.toArray(new IAlleleSpecies[memberSpecies.size()]);
|
||||
}
|
||||
|
||||
public void addMember(IAlleleSpecies species)
|
||||
{
|
||||
memberSpecies.add(species);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,81 @@
|
||||
package thaumicbees.main.bees;
|
||||
|
||||
import forestry.api.apiculture.*;
|
||||
import forestry.api.genetics.IAllele;
|
||||
import forestry.api.genetics.IGenome;
|
||||
import java.util.ArrayList;
|
||||
|
||||
public class BeeMutation implements IBeeMutation
|
||||
{
|
||||
|
||||
public static BeeMutation Esoteric;
|
||||
public static BeeMutation Esoteric1;
|
||||
public static BeeMutation Mysterious;
|
||||
public static BeeMutation Mysterious1;
|
||||
public static BeeMutation Arcane;
|
||||
public static BeeMutation Charmed;
|
||||
public static BeeMutation Enchanted;
|
||||
public static BeeMutation Supernatural;
|
||||
public static BeeMutation Stark;
|
||||
public static BeeMutation Pupil;
|
||||
public static BeeMutation Scholarly;
|
||||
public static BeeMutation Savant;
|
||||
private IAllele parent1;
|
||||
private IAllele parent2;
|
||||
private IAllele mutationTemplate[];
|
||||
private int chance;
|
||||
private boolean isSecret;
|
||||
|
||||
public BeeMutation(IAlleleBeeSpecies species0, IAlleleBeeSpecies species1, IAllele producesGenome[], int percentChance, boolean hide)
|
||||
{
|
||||
parent1 = species0;
|
||||
parent2 = species1;
|
||||
mutationTemplate = producesGenome;
|
||||
chance = percentChance;
|
||||
isSecret = hide;
|
||||
BeeManager.beeMutations.add(this);
|
||||
}
|
||||
|
||||
public int getChance(IBeeHousing housing, IAllele allele0, IAllele allele1, IGenome genome0, IGenome genome1)
|
||||
{
|
||||
return Math.round((float) chance * BeeManager.breedingManager.getBeekeepingMode(housing.getWorld()).getMutationModifier((IBeeGenome) genome0, (IBeeGenome) genome1));
|
||||
}
|
||||
|
||||
public IAllele getAllele0()
|
||||
{
|
||||
return parent1;
|
||||
}
|
||||
|
||||
public IAllele getAllele1()
|
||||
{
|
||||
return parent2;
|
||||
}
|
||||
|
||||
public IAllele[] getTemplate()
|
||||
{
|
||||
return mutationTemplate;
|
||||
}
|
||||
|
||||
public int getBaseChance()
|
||||
{
|
||||
return chance;
|
||||
}
|
||||
|
||||
public boolean isPartner(IAllele allele)
|
||||
{
|
||||
return parent1.getUID().equals(allele.getUID()) || parent2.getUID().equals(allele.getUID());
|
||||
}
|
||||
|
||||
public IAllele getPartner(IAllele allele)
|
||||
{
|
||||
IAllele val = parent1;
|
||||
if (val.getUID().equals(allele.getUID()))
|
||||
val = parent2;
|
||||
return val;
|
||||
}
|
||||
|
||||
public boolean isSecret()
|
||||
{
|
||||
return isSecret;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,214 @@
|
||||
package thaumicbees.main.bees;
|
||||
|
||||
import forestry.api.apiculture.*;
|
||||
import forestry.api.core.EnumHumidity;
|
||||
import forestry.api.core.EnumTemperature;
|
||||
import forestry.api.genetics.*;
|
||||
import java.util.HashMap;
|
||||
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.stats.Achievement;
|
||||
import net.minecraft.world.World;
|
||||
|
||||
public class BeeSpecies implements IAlleleBeeSpecies
|
||||
{
|
||||
|
||||
public static BeeSpecies Esoteric;
|
||||
public static BeeSpecies Mysterious;
|
||||
public static BeeSpecies Arcane;
|
||||
public static BeeSpecies Charmed;
|
||||
public static BeeSpecies Enchanted;
|
||||
public static BeeSpecies Supernatural;
|
||||
public static BeeSpecies Pupil;
|
||||
public static BeeSpecies Scholarly;
|
||||
public static BeeSpecies Savant;
|
||||
public static BeeSpecies Stark;
|
||||
public static BeeSpecies Air;
|
||||
public static BeeSpecies Water;
|
||||
public static BeeSpecies Earth;
|
||||
public static BeeSpecies Fire;
|
||||
private String universalID;
|
||||
private String name;
|
||||
private String descripton;
|
||||
private String binomial;
|
||||
private String authority;
|
||||
private int bodyType;
|
||||
private int primaryColour;
|
||||
private int secondaryColour;
|
||||
private EnumTemperature temperature;
|
||||
private EnumHumidity humidity;
|
||||
private boolean hasEffect;
|
||||
private boolean isSecret;
|
||||
private boolean isCounted;
|
||||
private boolean isDominant;
|
||||
private IBranch branch;
|
||||
private HashMap products;
|
||||
private HashMap specialty;
|
||||
private IAllele genomeTemplate[];
|
||||
|
||||
public static IAlleleBeeSpecies getBaseSpecies(String name)
|
||||
{
|
||||
return (IAlleleBeeSpecies) AlleleManager.alleleRegistry.getAllele((new StringBuilder()).append("forestry.species").append(name).toString());
|
||||
}
|
||||
|
||||
public BeeSpecies(String speciesName, String speciesDescription, String genusName, IBranch parentBranch, int firstColour, int secondColour, EnumTemperature preferredTemp, EnumHumidity preferredHumidity, boolean hasGlowEffect, boolean isSpeciesDominant)
|
||||
{
|
||||
this(speciesName, speciesDescription, genusName, parentBranch, 0, firstColour, secondColour, preferredTemp, preferredHumidity, hasGlowEffect, true, true, isSpeciesDominant);
|
||||
}
|
||||
|
||||
public BeeSpecies(String speciesName, String speciesDescription, String genusName, IBranch parentBranch, int body, int firstColour, int secondColour, EnumTemperature preferredTemp, EnumHumidity preferredHumidity, boolean hasGlowEffect, boolean isSpeciesSecret, boolean isSpeciesCounted, boolean isSpeciesDominant)
|
||||
{
|
||||
universalID = (new StringBuilder()).append("thaumicbees.species").append(speciesName).toString();
|
||||
name = speciesName;
|
||||
descripton = speciesDescription;
|
||||
binomial = genusName;
|
||||
authority = "MysteriousAges";
|
||||
bodyType = body;
|
||||
primaryColour = firstColour;
|
||||
secondaryColour = secondColour;
|
||||
temperature = preferredTemp;
|
||||
humidity = preferredHumidity;
|
||||
hasEffect = hasGlowEffect;
|
||||
isSecret = isSpeciesSecret;
|
||||
isCounted = isSpeciesCounted;
|
||||
isDominant = isSpeciesDominant;
|
||||
products = new HashMap();
|
||||
specialty = new HashMap();
|
||||
genomeTemplate = BeeManager.breedingManager.getDefaultBeeTemplate();
|
||||
genomeTemplate[EnumBeeChromosome.SPECIES.ordinal()] = this;
|
||||
AlleleManager.alleleRegistry.registerAllele(this);
|
||||
}
|
||||
|
||||
public BeeSpecies setGene(EnumBeeChromosome chromosome, IAllele allele)
|
||||
{
|
||||
genomeTemplate[chromosome.ordinal()] = allele;
|
||||
return this;
|
||||
}
|
||||
|
||||
public BeeSpecies setGenome(IAllele genome[])
|
||||
{
|
||||
genomeTemplate = genome;
|
||||
return this;
|
||||
}
|
||||
|
||||
public IAllele[] getGenome()
|
||||
{
|
||||
return genomeTemplate;
|
||||
}
|
||||
|
||||
public BeeSpecies addProduct(ItemStack produce, int percentChance)
|
||||
{
|
||||
products.put(produce, Integer.valueOf(percentChance));
|
||||
return this;
|
||||
}
|
||||
|
||||
public BeeSpecies addSpecialty(ItemStack produce, int percentChance)
|
||||
{
|
||||
specialty.put(produce, Integer.valueOf(percentChance));
|
||||
return this;
|
||||
}
|
||||
|
||||
public ItemStack getBeeItem(World world, EnumBeeType beeType)
|
||||
{
|
||||
return BeeManager.beeInterface.getBeeStack(BeeManager.beeInterface.getBee(world, BeeManager.beeInterface.templateAsGenome(genomeTemplate)), beeType);
|
||||
}
|
||||
|
||||
public String getName()
|
||||
{
|
||||
return name;
|
||||
}
|
||||
|
||||
public String getDescription()
|
||||
{
|
||||
return descripton;
|
||||
}
|
||||
|
||||
public int getBodyType()
|
||||
{
|
||||
return bodyType;
|
||||
}
|
||||
|
||||
public int getPrimaryColor()
|
||||
{
|
||||
return primaryColour;
|
||||
}
|
||||
|
||||
public int getSecondaryColor()
|
||||
{
|
||||
return secondaryColour;
|
||||
}
|
||||
|
||||
public EnumTemperature getTemperature()
|
||||
{
|
||||
return temperature;
|
||||
}
|
||||
|
||||
public EnumHumidity getHumidity()
|
||||
{
|
||||
return humidity;
|
||||
}
|
||||
|
||||
public boolean hasEffect()
|
||||
{
|
||||
return hasEffect;
|
||||
}
|
||||
|
||||
public boolean isSecret()
|
||||
{
|
||||
return isSecret;
|
||||
}
|
||||
|
||||
public boolean isCounted()
|
||||
{
|
||||
return isCounted;
|
||||
}
|
||||
|
||||
public String getBinomial()
|
||||
{
|
||||
return binomial;
|
||||
}
|
||||
|
||||
public String getAuthority()
|
||||
{
|
||||
return authority;
|
||||
}
|
||||
|
||||
public IBranch getBranch()
|
||||
{
|
||||
return branch;
|
||||
}
|
||||
|
||||
public String getUID()
|
||||
{
|
||||
return universalID;
|
||||
}
|
||||
|
||||
public boolean isDominant()
|
||||
{
|
||||
return isDominant;
|
||||
}
|
||||
|
||||
public HashMap getProducts()
|
||||
{
|
||||
return products;
|
||||
}
|
||||
|
||||
public HashMap getSpecialty()
|
||||
{
|
||||
return specialty;
|
||||
}
|
||||
|
||||
public boolean isJubilant(World world, int biomeid, int x, int i, int j)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
* @deprecated Method getAchievement is deprecated
|
||||
*/
|
||||
|
||||
public Achievement getAchievement()
|
||||
{
|
||||
return null;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,35 @@
|
||||
package thaumicbees.main.bees;
|
||||
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.world.World;
|
||||
import forestry.api.apiculture.IBeeGenome;
|
||||
import forestry.api.apiculture.IFlowerProvider;
|
||||
|
||||
public class FlowerProviderBookshelf implements IFlowerProvider
|
||||
{
|
||||
|
||||
public boolean isAcceptedFlower(World world, IBeeGenome genome, int x, int i, int j)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
public boolean growFlower(World world, IBeeGenome genome, int x, int i, int j)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
public String getDescription()
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
public ItemStack[] affectProducts(World world, IBeeGenome genome, int x, int i, int j, ItemStack aum[])
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
public ItemStack[] getItemStacks()
|
||||
{
|
||||
return null;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,273 @@
|
||||
package thaumicbees.main.bees;
|
||||
|
||||
import cpw.mods.fml.common.network.IGuiHandler;
|
||||
import forestry.api.apiculture.*;
|
||||
import forestry.api.core.*;
|
||||
import forestry.api.genetics.AlleleManager;
|
||||
import java.util.Random;
|
||||
|
||||
import thaumcraft.api.EnumTag;
|
||||
import thaumcraft.api.ObjectTags;
|
||||
import thaumcraft.api.ThaumcraftApi;
|
||||
|
||||
import net.minecraft.command.ICommand;
|
||||
import net.minecraft.item.Item;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.world.World;
|
||||
|
||||
public class ThaumicBeesPlugin implements IPlugin
|
||||
{
|
||||
|
||||
private static int defaultBodyColour = 0xFF6E0D;
|
||||
private static boolean hideSpecies = false;
|
||||
|
||||
public boolean isAvailable()
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
public void preInit()
|
||||
{
|
||||
}
|
||||
|
||||
public void doInit()
|
||||
{
|
||||
}
|
||||
|
||||
public void postInit()
|
||||
{
|
||||
setupBeeSpecies();
|
||||
setupBeeMutations();
|
||||
}
|
||||
|
||||
private void setupBeeSpecies()
|
||||
{
|
||||
IBreedingManager breedingMgr = BeeManager.breedingManager;
|
||||
BeeBranch.Arcane = new BeeBranch("Arcane", "arcanis");
|
||||
BeeBranch.Supernatural = new BeeBranch("Supernatural", "coeleste");
|
||||
BeeBranch.Stark = new BeeBranch("Stark", "torridus", "Nothing of the mundane world remains in these bees.");
|
||||
BeeBranch.Elemental = new BeeBranch("Elemental", "praecantatio");
|
||||
BeeBranch.Scholarly = new BeeBranch("Scholarly", "scholasticus");
|
||||
|
||||
BeeSpecies.Esoteric = new BeeSpecies("Esoteric", "", "secretiore", BeeBranch.Arcane, 0,
|
||||
0x001099, 0xcc763c, EnumTemperature.NORMAL, EnumHumidity.NORMAL,
|
||||
false, hideSpecies, true, true);
|
||||
BeeSpecies.Esoteric.setGene(EnumBeeChromosome.TEMPERATURE_TOLERANCE, AlleleManager.getAllele("toleranceBoth2"));
|
||||
breedingMgr.registerBeeTemplate(BeeSpecies.Esoteric.getGenome());
|
||||
|
||||
BeeSpecies.Mysterious = new BeeSpecies("Mysterious", "", "mysticus", BeeBranch.Arcane, 0,
|
||||
0x762bc2, defaultBodyColour, EnumTemperature.NORMAL, EnumHumidity.NORMAL,
|
||||
false, hideSpecies, true, true);
|
||||
BeeSpecies.Mysterious.setGene(EnumBeeChromosome.TEMPERATURE_TOLERANCE, AlleleManager.getAllele("toleranceBoth2"));
|
||||
BeeSpecies.Mysterious.setGene(EnumBeeChromosome.FERTILITY, AlleleManager.getAllele("fertilityNormal"));
|
||||
BeeSpecies.Mysterious.setGene(EnumBeeChromosome.FLOWERING, AlleleManager.getAllele("floweringMaximum"));
|
||||
breedingMgr.registerBeeTemplate(BeeSpecies.Mysterious.getGenome());
|
||||
|
||||
BeeSpecies.Arcane = new BeeSpecies("Arcane", "", "arcanus", BeeBranch.Arcane, 0,
|
||||
0xd242df, defaultBodyColour, EnumTemperature.NORMAL, EnumHumidity.NORMAL,
|
||||
true, hideSpecies, true, true);
|
||||
BeeSpecies.Mysterious.setGene(EnumBeeChromosome.TEMPERATURE_TOLERANCE, AlleleManager.getAllele("toleranceBoth2"));
|
||||
BeeSpecies.Mysterious.setGene(EnumBeeChromosome.FLOWERING, AlleleManager.getAllele("floweringMaximum"));
|
||||
BeeSpecies.Arcane.setGene(EnumBeeChromosome.FERTILITY, AlleleManager.getAllele("fertilityLow"));
|
||||
breedingMgr.registerBeeTemplate(BeeSpecies.Arcane.getGenome());
|
||||
|
||||
BeeSpecies.Charmed = new BeeSpecies("Charmed", "", "larvatus", BeeBranch.Supernatural, 0,
|
||||
0x48EEEC, defaultBodyColour, EnumTemperature.NORMAL, EnumHumidity.NORMAL,
|
||||
false, hideSpecies, true, true);
|
||||
BeeSpecies.Charmed.setGene(EnumBeeChromosome.NOCTURNAL, AlleleManager.getAllele("boolTrue"));
|
||||
BeeSpecies.Charmed.setGene(EnumBeeChromosome.SPEED, AlleleManager.getAllele("speedNorm"));
|
||||
BeeSpecies.Charmed.setGene(EnumBeeChromosome.FLOWERING, AlleleManager.getAllele("floweringSlowest"));
|
||||
breedingMgr.registerBeeTemplate(BeeSpecies.Charmed.getGenome());
|
||||
|
||||
BeeSpecies.Enchanted = new BeeSpecies("Enchanted", "", "cantatus", BeeBranch.Supernatural, 0,
|
||||
0x18e726, defaultBodyColour, EnumTemperature.NORMAL, EnumHumidity.NORMAL,
|
||||
false, hideSpecies, true, true);
|
||||
BeeSpecies.Charmed.setGene(EnumBeeChromosome.NOCTURNAL, AlleleManager.getAllele("boolTrue"));
|
||||
BeeSpecies.Charmed.setGene(EnumBeeChromosome.SPEED, AlleleManager.getAllele("speedNorm"));
|
||||
BeeSpecies.Charmed.setGene(EnumBeeChromosome.FLOWERING, AlleleManager.getAllele("floweringSlowest"));
|
||||
BeeSpecies.Charmed.setGene(EnumBeeChromosome.TEMPERATURE_TOLERANCE, AlleleManager.getAllele("toleranceBoth1"));
|
||||
breedingMgr.registerBeeTemplate(BeeSpecies.Enchanted.getGenome());
|
||||
|
||||
BeeSpecies.Supernatural = new BeeSpecies("Supernatural", "", "coeleste", BeeBranch.Supernatural, 0,
|
||||
0x005614, defaultBodyColour, EnumTemperature.NORMAL, EnumHumidity.NORMAL,
|
||||
true, hideSpecies, true, true);
|
||||
BeeSpecies.Charmed.setGene(EnumBeeChromosome.NOCTURNAL, AlleleManager.getAllele("boolTrue"));
|
||||
BeeSpecies.Charmed.setGene(EnumBeeChromosome.SPEED, AlleleManager.getAllele("speedNorm"));
|
||||
BeeSpecies.Charmed.setGene(EnumBeeChromosome.FLOWERING, AlleleManager.getAllele("floweringSlowest"));
|
||||
BeeSpecies.Charmed.setGene(EnumBeeChromosome.TEMPERATURE_TOLERANCE, AlleleManager.getAllele("toleranceBoth2"));
|
||||
breedingMgr.registerBeeTemplate(BeeSpecies.Supernatural.getGenome());
|
||||
|
||||
BeeSpecies.Stark = new BeeSpecies("Stark", "", "torridus", BeeBranch.Stark, 0,
|
||||
0xCCCCCC, 0x999999, EnumTemperature.NORMAL, EnumHumidity.NORMAL,
|
||||
true, hideSpecies, true, false);
|
||||
breedingMgr.registerBeeTemplate(BeeSpecies.Stark.getGenome());
|
||||
|
||||
BeeSpecies.Air = new BeeSpecies("Aura", "", "ventosa", BeeBranch.Elemental, 0,
|
||||
0xD9D636, 0xA19E10, EnumTemperature.NORMAL, EnumHumidity.NORMAL,
|
||||
true, hideSpecies, true, true);
|
||||
BeeSpecies.Air.setGene(EnumBeeChromosome.SPEED, AlleleManager.getAllele("speedFastest"));
|
||||
BeeSpecies.Air.setGene(EnumBeeChromosome.LIFESPAN, AlleleManager.getAllele("lifespanShortened"));
|
||||
BeeSpecies.Air.setGene(EnumBeeChromosome.TERRITORY, AlleleManager.getAllele("territoryLargest"));
|
||||
BeeSpecies.Air.setGene(EnumBeeChromosome.TOLERANT_FLYER, AlleleManager.getAllele("boolTrue"));
|
||||
breedingMgr.registerBeeTemplate(BeeSpecies.Air.getGenome());
|
||||
|
||||
BeeSpecies.Water = new BeeSpecies("Aqua", "", "umidus", BeeBranch.Elemental, 0,
|
||||
0x36CFD9, 0x1054A1, EnumTemperature.NORMAL, EnumHumidity.DAMP,
|
||||
true, hideSpecies, true, true);
|
||||
BeeSpecies.Water.setGene(EnumBeeChromosome.SPEED, AlleleManager.getAllele("speedFast"));
|
||||
BeeSpecies.Water.setGene(EnumBeeChromosome.LIFESPAN, AlleleManager.getAllele("lifespanElongated"));
|
||||
BeeSpecies.Water.setGene(EnumBeeChromosome.HUMIDITY_TOLERANCE, AlleleManager.getAllele("toleranceUp2"));
|
||||
BeeSpecies.Water.setGene(EnumBeeChromosome.TOLERANT_FLYER, AlleleManager.getAllele("boolTrue"));
|
||||
breedingMgr.registerBeeTemplate(BeeSpecies.Water.getGenome());
|
||||
|
||||
BeeSpecies.Earth = new BeeSpecies("Solum", "", "sordida", BeeBranch.Elemental, 0,
|
||||
0xD9A136, 0x79450C, EnumTemperature.NORMAL, EnumHumidity.NORMAL,
|
||||
true, hideSpecies, true, true);
|
||||
BeeSpecies.Earth.setGene(EnumBeeChromosome.SPEED, AlleleManager.getAllele("speedFast"));
|
||||
BeeSpecies.Earth.setGene(EnumBeeChromosome.LIFESPAN, AlleleManager.getAllele("lifespanElongated"));
|
||||
BeeSpecies.Earth.setGene(EnumBeeChromosome.HUMIDITY_TOLERANCE, AlleleManager.getAllele("toleranceUp2"));
|
||||
BeeSpecies.Earth.setGene(EnumBeeChromosome.TOLERANT_FLYER, AlleleManager.getAllele("boolTrue"));
|
||||
breedingMgr.registerBeeTemplate(BeeSpecies.Earth.getGenome());
|
||||
|
||||
BeeSpecies.Fire = new BeeSpecies("Ignis", "", "praefervidus", BeeBranch.Elemental, 0,
|
||||
0xE50B0B, 0x95132F, EnumTemperature.HELLISH, EnumHumidity.ARID,
|
||||
true, hideSpecies, true, true);
|
||||
BeeSpecies.Fire.setGene(EnumBeeChromosome.SPEED, AlleleManager.getAllele("speedFaster"));
|
||||
BeeSpecies.Fire.setGene(EnumBeeChromosome.LIFESPAN, AlleleManager.getAllele("lifespanNormal"));
|
||||
BeeSpecies.Fire.setGene(EnumBeeChromosome.TEMPERATURE_TOLERANCE, AlleleManager.getAllele("toleranceDown5"));
|
||||
BeeSpecies.Fire.setGene(EnumBeeChromosome.HUMIDITY_TOLERANCE, AlleleManager.getAllele("toleranceDown2"));
|
||||
BeeSpecies.Fire.setGene(EnumBeeChromosome.TOLERANT_FLYER, AlleleManager.getAllele("boolTrue"));
|
||||
breedingMgr.registerBeeTemplate(BeeSpecies.Fire.getGenome());
|
||||
|
||||
BeeSpecies.Pupil = new BeeSpecies("Pupil", "", "disciplina", BeeBranch.Scholarly, 0,
|
||||
0xFFFF00, defaultBodyColour, EnumTemperature.NORMAL, EnumHumidity.ARID,
|
||||
false, hideSpecies, true, true);
|
||||
BeeSpecies.Pupil.setGene(EnumBeeChromosome.SPEED, AlleleManager.getAllele("speedSlowest"));
|
||||
BeeSpecies.Pupil.setGene(EnumBeeChromosome.LIFESPAN, AlleleManager.getAllele("lifespanElongated"));
|
||||
BeeSpecies.Pupil.setGene(EnumBeeChromosome.CAVE_DWELLING, AlleleManager.getAllele("boolTrue"));
|
||||
breedingMgr.registerBeeTemplate(BeeSpecies.Pupil.getGenome());
|
||||
|
||||
BeeSpecies.Scholarly = new BeeSpecies("Scholarly", "", "studiosis", BeeBranch.Scholarly, 0,
|
||||
0x6E0000, defaultBodyColour, EnumTemperature.NORMAL, EnumHumidity.ARID,
|
||||
false, hideSpecies, true, false);
|
||||
BeeSpecies.Scholarly.setGene(EnumBeeChromosome.SPEED, AlleleManager.getAllele("speedSlower"));
|
||||
BeeSpecies.Pupil.setGene(EnumBeeChromosome.LIFESPAN, AlleleManager.getAllele("lifespanElongated"));
|
||||
BeeSpecies.Pupil.setGene(EnumBeeChromosome.CAVE_DWELLING, AlleleManager.getAllele("boolTrue"));
|
||||
breedingMgr.registerBeeTemplate(BeeSpecies.Scholarly.getGenome());
|
||||
|
||||
BeeSpecies.Savant = new BeeSpecies("Savant", "", "philologus", BeeBranch.Scholarly, 0,
|
||||
0x6E1C6D, defaultBodyColour, EnumTemperature.NORMAL, EnumHumidity.ARID,
|
||||
true, hideSpecies, true, false);
|
||||
BeeSpecies.Pupil.setGene(EnumBeeChromosome.SPEED, AlleleManager.getAllele("speedNorm"));
|
||||
BeeSpecies.Pupil.setGene(EnumBeeChromosome.LIFESPAN, AlleleManager.getAllele("lifespanElongated"));
|
||||
BeeSpecies.Pupil.setGene(EnumBeeChromosome.CAVE_DWELLING, AlleleManager.getAllele("boolTrue"));
|
||||
breedingMgr.registerBeeTemplate(BeeSpecies.Savant.getGenome());
|
||||
}
|
||||
|
||||
private void setupBeeMutations()
|
||||
{
|
||||
BeeMutation.Esoteric = new BeeMutation(BeeSpecies.getBaseSpecies("Modest"), BeeSpecies.getBaseSpecies("Wintry"), BeeSpecies.Esoteric.getGenome(), 10, false);
|
||||
BeeMutation.Esoteric1 = new BeeMutation(BeeSpecies.getBaseSpecies("Marshy"), BeeSpecies.getBaseSpecies("Cultivated"), BeeSpecies.Esoteric.getGenome(), 20, false);
|
||||
BeeMutation.Mysterious = new BeeMutation(BeeSpecies.Esoteric, BeeSpecies.getBaseSpecies("Ended"), BeeSpecies.Mysterious.getGenome(), 10, false);
|
||||
BeeMutation.Arcane = new BeeMutation(BeeSpecies.Esoteric, BeeSpecies.Mysterious, BeeSpecies.Arcane.getGenome(), 8, false);
|
||||
BeeMutation.Charmed = new BeeMutation(BeeSpecies.getBaseSpecies("Cultivated"), BeeSpecies.getBaseSpecies("Valiant"), BeeSpecies.Charmed.getGenome(), 20, false);
|
||||
BeeMutation.Enchanted = new BeeMutation(BeeSpecies.Charmed, BeeSpecies.getBaseSpecies("Valiant"), BeeSpecies.Enchanted.getGenome(), 8, false);
|
||||
BeeMutation.Supernatural = new BeeMutation(BeeSpecies.Charmed, BeeSpecies.Enchanted, BeeSpecies.Supernatural.getGenome(), 8, false);
|
||||
BeeMutation.Pupil = new BeeMutation(BeeSpecies.Arcane, BeeSpecies.Enchanted, BeeSpecies.Pupil.getGenome(), 100, false);
|
||||
BeeMutation.Scholarly = new BeeMutation(BeeSpecies.Pupil, BeeSpecies.Arcane, BeeSpecies.Scholarly.getGenome(), 10, false);
|
||||
BeeMutation.Savant = new BeeMutation(BeeSpecies.Pupil, BeeSpecies.Scholarly, BeeSpecies.Savant.getGenome(), 6, false);
|
||||
BeeMutation.Stark = new BeeMutation(BeeSpecies.Arcane, BeeSpecies.Supernatural, BeeSpecies.Stark.getGenome(), 8, false);
|
||||
}
|
||||
|
||||
public static void setupBeeInfusions(World world)
|
||||
{
|
||||
try
|
||||
{
|
||||
ItemStack starkDrone = BeeSpecies.Stark.getBeeItem(world, EnumBeeType.DRONE);
|
||||
ItemStack starkPrincess = BeeSpecies.Stark.getBeeItem(world, EnumBeeType.PRINCESS);
|
||||
ItemStack airDrone = BeeSpecies.Air.getBeeItem(world, EnumBeeType.DRONE);
|
||||
ItemStack airPrincess = BeeSpecies.Air.getBeeItem(world, EnumBeeType.PRINCESS);
|
||||
ItemStack waterDrone = BeeSpecies.Water.getBeeItem(world, EnumBeeType.DRONE);
|
||||
ItemStack waterPrincess = BeeSpecies.Water.getBeeItem(world, EnumBeeType.PRINCESS);
|
||||
ItemStack earthDrone = BeeSpecies.Earth.getBeeItem(world, EnumBeeType.DRONE);
|
||||
ItemStack earthPrincess = BeeSpecies.Earth.getBeeItem(world, EnumBeeType.PRINCESS);
|
||||
ItemStack fireDrone = BeeSpecies.Fire.getBeeItem(world, EnumBeeType.DRONE);
|
||||
ItemStack firePrincess = BeeSpecies.Fire.getBeeItem(world, EnumBeeType.PRINCESS);
|
||||
|
||||
Item shard = (Item) Class.forName("thaumcraft.common.Config").getDeclaredField("itemShard").get(null);
|
||||
|
||||
ObjectTags tags = (new ObjectTags()).add(EnumTag.WIND, 40).add(EnumTag.MOTION, 20);
|
||||
ThaumcraftApi.addShapelessInfusionCraftingRecipe("UTFT", 100, tags, airDrone, new Object[]
|
||||
{ starkDrone, new ItemStack(shard, 1, 0) });
|
||||
ThaumcraftApi.addShapelessInfusionCraftingRecipe("UTFT", 100, tags, airPrincess, new Object[]
|
||||
{ starkPrincess, new ItemStack(shard, 1, 0) });
|
||||
|
||||
tags = (new ObjectTags()).add(EnumTag.FIRE, 40).add( EnumTag.POWER, 20);
|
||||
ThaumcraftApi.addShapelessInfusionCraftingRecipe("UTFT", 100, tags, fireDrone, new Object[]
|
||||
{ starkDrone, new ItemStack(shard, 1, 1) });
|
||||
ThaumcraftApi.addShapelessInfusionCraftingRecipe("UTFT", 100, tags, firePrincess, new Object[]
|
||||
{ starkDrone, new ItemStack(shard, 1, 1) });
|
||||
|
||||
tags = (new ObjectTags()).add(EnumTag.WATER, 40).add( EnumTag.COLD, 20);
|
||||
ThaumcraftApi.addShapelessInfusionCraftingRecipe("UTFT", 100, tags, waterDrone, new Object[]
|
||||
{ starkDrone, new ItemStack(shard, 1, 2) });
|
||||
ThaumcraftApi.addShapelessInfusionCraftingRecipe("UTFT", 100, tags, waterPrincess, new Object[]
|
||||
{ starkDrone, new ItemStack(shard, 1, 2) });
|
||||
|
||||
tags = (new ObjectTags()).add(EnumTag.EARTH, 40).add( EnumTag.ROCK, 20);
|
||||
ThaumcraftApi.addShapelessInfusionCraftingRecipe("UTFT", 100, tags, earthDrone, new Object[]
|
||||
{ starkDrone, new ItemStack(shard, 1, 3) });
|
||||
ThaumcraftApi.addShapelessInfusionCraftingRecipe("UTFT", 100, tags, earthPrincess, new Object[]
|
||||
{ starkDrone, new ItemStack(shard, 1, 3) });
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
System.out.println("Reflection failed. Could not get Thaumcraft shard. ):");
|
||||
}
|
||||
}
|
||||
|
||||
public String getDescription()
|
||||
{
|
||||
return "ThaumicBees";
|
||||
}
|
||||
|
||||
public void generateSurface(World world, Random random, int i, int j)
|
||||
{
|
||||
}
|
||||
|
||||
public IGuiHandler getGuiHandler()
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
public IPacketHandler getPacketHandler()
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
public IPickupHandler getPickupHandler()
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
public IResupplyHandler getResupplyHandler()
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
public ISaveEventHandler getSaveEventHandler()
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
public IOreDictionaryHandler getDictionaryHandler()
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
public ICommand[] getConsoleCommands()
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
package thaumicbees.main.research;
|
||||
|
||||
public class ThaumcraftPlugin
|
||||
{
|
||||
|
||||
public static void setupResearch()
|
||||
{
|
||||
}
|
||||
|
||||
public static void setupCrafting()
|
||||
{
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user