Compare commits

...
Author SHA1 Message Date
Martin Robertz 41a0528d2a update bs+deps 2024-02-02 15:34:18 +01:00
Martin Robertz eb05b5c1eb Merge pull request #39 from AnrDaemon/fix-lang-refs
Fixed Thaumonomicon pages references
2024-02-02 05:21:36 +01:00
AnrDaemon 2f1bd92b33 Fixed thaumonomicon pages references 2024-02-02 02:43:02 +03:00
Martin Robertz 09dc0657ef update deps 2024-01-29 07:23:03 +01:00
Martin Robertz dcfa448af3 Merge pull request #37 from Quantumlyy/drainer-energistics
Add Thaumic Energistics support to the Apimancers drainer
2024-01-28 19:55:12 +01:00
Martin Robertz 786cb01b94 Merge pull request #35 from kamenskyi/add_ru_lang_file
Update ru_RU.lang
2024-01-28 18:38:11 +01:00
Quantumlyy f6f4a988af move theapi init to postinit 2024-01-28 18:13:39 +01:00
kamenskyi 5a823658ea Update ru_RU.lang
fix ru mistakes
2024-01-28 20:04:58 +03:00
Quantumlyy 8770492524 register drainer with ThEApi 2024-01-28 18:00:38 +01:00
Martin Robertz 322203ac6a Merge branch 'master' into drainer-energistics 2024-01-28 11:34:14 +01:00
Quantumlyy 1e5c8db826 sa 2024-01-28 11:30:17 +01:00
Quantumlyy ef47b1863a call normal updateentity 2024-01-28 11:18:16 +01:00
Martin Robertz c3dac80d44 update deps 2024-01-28 11:12:31 +01:00
Quantumlyy f2beaae45c this should make it work with TE now 2024-01-28 11:03:49 +01:00
Martin Robertz 3a4e4dce04 Merge pull request #34 from Quantumlyy/bring-closer-to-forestry
Add Apimancers Drainer
2024-01-28 09:39:48 +01:00
Alastors 99c3cb68eb minor cleanup 2024-01-28 02:49:57 -05:00
Alastors 38bc8a151c fixing the block side 2024-01-28 02:38:26 -05:00
Quantumlyy a64bd5f437 check that block side is not top 2024-01-27 11:36:09 +01:00
Quantumlyy fb43f46bb8 fix: check for gtnh coremod to determine drainer functionality 2024-01-27 11:22:20 +01:00
Quantumlyy 9d2c667c35 the grand rename 2024-01-21 21:01:57 +01:00
Quantumlyy 67dfeb7daa requested changes 2024-01-21 20:55:21 +01:00
Quantumlyy e2080bc542 sa 2024-01-21 20:55:01 +01:00
Quantumlyy b0116884f1 GTu no transitive 2024-01-21 20:47:26 +01:00
Quantumlyy a9948fcf26 sa 2024-01-21 20:37:50 +01:00
Quantumlyy 828231c3c4 Merge branch 'bring-closer-to-forestry' of https://github.com/Quantumlyy/MagicBees into bring-closer-to-forestry 2024-01-21 20:35:45 +01:00
Quantumlyy aed51fbd9a add infusion recipe 2024-01-21 20:35:40 +01:00
Alastors 9bae32761c Update build.gradle 2024-01-21 14:33:30 -05:00
Alastors 25c04cedcb Update dependencies.gradle 2024-01-21 14:32:54 -05:00
Martin Robertz cfe1cad9e8 Merge branch 'master' into bring-closer-to-forestry 2024-01-12 19:01:54 +01:00
Quantumlyy 9fb5e3d8fb reword 2023-12-31 15:08:34 +01:00
Quantumlyy 3da4083bba localize 2023-12-31 15:04:53 +01:00
Quantumlyy 9d36165259 cursed shit 2023-12-31 15:03:38 +01:00
Nejc Drobnič 573c089b96 Merge pull request #1 from GTNewHorizons/dev
update
2023-12-31 14:46:55 +01:00
Martin Robertz b82ce5e15f update 2023-12-31 14:44:27 +01:00
Martin Robertz 4f5358bea6 Update Config.java 2023-12-24 21:15:17 +01:00
Martin Robertz df0761c9af Update dependencies.gradle 2023-12-24 21:02:53 +01:00
Martin Robertz b5165b3e58 Update Config.java 2023-12-24 21:00:38 +01:00
kamenskyi 12f8ed9435 Update ru_RU.lang
add ru lang file
2023-12-24 21:06:26 +03:00
Quantumlyy edf3ff7423 add prod multiplier based on industrial apiary speed 2023-12-14 07:39:02 +01:00
Quantumlyy 06571c1eb4 check for queen in industrial apiary 2023-12-13 22:41:09 +01:00
Quantumlyy 4823e44793 add some scanner data 2023-12-13 12:04:15 +01:00
Quantumlyy f55a9f7643 address review 2023-12-13 09:58:59 +01:00
Quantumlyy 65b698face perform standard check alongside gt check 2023-12-13 09:43:43 +01:00
Quantumlyy 123ff12302 implement alternative housing checker for industrial apiary 2023-12-13 09:19:05 +01:00
Quantumlyy 6e6cbbab48 rename phialing cabinet to apiamancers drainer 2023-12-13 08:56:47 +01:00
Quantumlyy b965d50bbc oops 2023-12-13 08:32:34 +01:00
Quantumlyy fb98d686fb create method for detecting if housing is present 2023-12-13 08:32:13 +01:00
Quantumlyy ff20b5f600 change housing detection 2023-12-13 07:31:10 +01:00
Quantumlyy 2ade3e5705 use instanceof 2023-12-13 07:09:14 +01:00
Quantumlyy b7a928bb06 debug 2023-12-13 06:59:25 +01:00
Quantumlyy ec4491994c add bee ageing 2023-12-12 21:30:11 +01:00
Quantumlyy 89acb72f0b add textures 2023-12-12 19:29:38 +01:00
Quantumlyy fc9ebd66d9 add phialing cabinet research 2023-12-12 13:10:10 +01:00
Quantumlyy 4c64395e21 tweak default config values 2023-12-12 11:46:22 +01:00
Quantumlyy 121fe1c0a9 sa 2023-12-12 10:40:48 +01:00
Quantumlyy 906b97064e remove queen aging 2023-12-12 10:36:47 +01:00
Quantumlyy ae736770fb age queen for every essentia generated 2023-12-12 10:35:42 +01:00
Quantumlyy 27ea81cd09 handle null aspect 2023-12-12 09:35:26 +01:00
Quantumlyy aa25a5086d sa 2023-12-10 19:14:04 +01:00
Quantumlyy ac68e40b9f add lang strings for phialing cabinet and essentia bee 2023-12-10 10:34:30 +01:00
Quantumlyy 2935df3409 fix multiplication by 0 issue 2023-12-10 00:17:30 +01:00
Quantumlyy 98c0810820 sa 2023-12-09 23:21:54 +01:00
Quantumlyy af2d06aa7b take into account the production multiplier 2023-12-09 23:18:00 +01:00
Quantumlyy e88eb1756c lower potential operations if the cabinet is full 2023-12-09 23:04:10 +01:00
Quantumlyy b19979e88b revert container slots 2023-12-09 19:48:11 +01:00
Quantumlyy 974e459311 oops 2023-12-09 18:31:40 +01:00
Quantumlyy f366dcdfc6 finish up cabinet logic 2023-12-09 18:26:17 +01:00
Quantumlyy e7e5292526 read and write nbt 2023-12-09 08:57:32 +01:00
Quantumlyy c79503d669 remove stubs 2023-12-09 01:45:11 +01:00
Quantumlyy 6529e7245d correctly check for the species 2023-12-09 00:53:21 +01:00
Quantumlyy 29e72ed7fc make phialing cabinet capacity configurable 2023-12-08 23:31:35 +01:00
Quantumlyy 02c7fc7613 sa 2023-12-08 23:23:30 +01:00
Quantumlyy 7416d21f6f use config for phialing cabinet values 2023-12-08 23:22:19 +01:00
Quantumlyy d3ad57a622 sa 2023-12-08 23:15:21 +01:00
Quantumlyy 0578441707 check for beehousing instead of apiary 2023-12-08 15:09:44 +01:00
Quantumlyy 07a987151e differentiate essentia based on first inserted 2023-12-08 15:05:59 +01:00
Quantumlyy c23401e45c add tc essentia bee 2023-12-08 11:43:11 +01:00
Quantumlyy e03d4da989 add basics for phialing cabinet 2023-12-08 11:36:56 +01:00
Quantumlyy 4c47f77214 why was that there? 2023-12-07 22:48:48 +01:00
Quantumlyy bdd76306bb revert slot move 2023-12-07 22:40:49 +01:00
Quantumlyy ae246d87eb extract MagicApiaryInventory into file 2023-12-07 21:40:37 +01:00
Quantumlyy c8aaeba7cb edit frame and product slots 2023-12-07 19:08:06 +01:00
Quantumlyy 7345669405 remove pointless arithmetic 2023-12-07 18:06:22 +01:00
Quantumlyy 5e912b69bd remove unused methods 2023-12-07 18:00:36 +01:00
Quantumlyy 481c22a19d use apiary inventory and beelistener 2023-12-07 16:49:09 +01:00
21 changed files with 1090 additions and 514 deletions

No files matched your search

+24 -5
View File
@@ -1,4 +1,4 @@
//version: 1704751096
//version: 1706545953
/*
DO NOT CHANGE THIS FILE!
Also, you may replace this file at any time if there is an update available.
@@ -122,6 +122,7 @@ propertyDefaultIfUnset("modrinthProjectId", "")
propertyDefaultIfUnset("modrinthRelations", "")
propertyDefaultIfUnset("curseForgeProjectId", "")
propertyDefaultIfUnset("curseForgeRelations", "")
propertyDefaultIfUnset("versionPattern", "")
propertyDefaultIfUnset("minimizeShadowedDependencies", true)
propertyDefaultIfUnset("relocateShadowedDependencies", true)
// Deprecated properties (kept for backwards compat)
@@ -370,6 +371,7 @@ catch (Exception ignored) {
// Pulls version first from the VERSION env and then git tag
String identifiedVersion
String versionOverride = System.getenv("VERSION") ?: null
boolean checkVersion = false
try {
// Produce a version based on the tag, or for branches something like 0.2.2-configurable-maven-and-extras.38+43090270b6-dirty
if (versionOverride == null) {
@@ -388,6 +390,8 @@ try {
}
} else if (isDirty) {
identifiedVersion += "-${branchName}+${gitDetails.gitHash}-dirty"
} else {
checkVersion = true
}
} else {
identifiedVersion = versionOverride
@@ -409,6 +413,8 @@ ext {
if (identifiedVersion == versionOverride) {
out.style(Style.Failure).text('Override version to ').style(Style.Identifier).text(modVersion).style(Style.Failure).println('!\7')
} else if (checkVersion && versionPattern && !(identifiedVersion ==~ versionPattern)) {
throw new GradleException("Invalid version: '$identifiedVersion' does not match version pattern '$versionPattern'")
}
group = "com.github.GTNewHorizons"
@@ -428,18 +434,31 @@ minecraft {
for (f in replaceGradleTokenInFile.split(',')) {
tagReplacementFiles.add f
}
out.style(Style.Info).text('replaceGradleTokenInFile is deprecated! Consider using generateGradleTokenClass.').println()
}
if (gradleTokenModId) {
injectedTags.put gradleTokenModId, modId
if (replaceGradleTokenInFile) {
injectedTags.put gradleTokenModId, modId
} else {
out.style(Style.Failure).text('gradleTokenModId is deprecated! The field will no longer be generated.').println()
}
}
if (gradleTokenModName) {
injectedTags.put gradleTokenModName, modName
if (replaceGradleTokenInFile) {
injectedTags.put gradleTokenModName, modName
} else {
out.style(Style.Failure).text('gradleTokenModName is deprecated! The field will no longer be generated.').println()
}
}
if (gradleTokenVersion) {
injectedTags.put gradleTokenVersion, modVersion
}
if (gradleTokenGroupName) {
injectedTags.put gradleTokenGroupName, modGroup
if (replaceGradleTokenInFile) {
injectedTags.put gradleTokenGroupName, modGroup
} else {
out.style(Style.Failure).text('gradleTokenGroupName is deprecated! The field will no longer be generated.').println()
}
}
if (enableGenericInjection.toBoolean()) {
injectMissingGenerics.set(true)
@@ -632,7 +651,7 @@ repositories {
def mixinProviderGroup = "io.github.legacymoddingmc"
def mixinProviderModule = "unimixins"
def mixinProviderVersion = "0.1.13"
def mixinProviderVersion = "0.1.15"
def mixinProviderSpecNoClassifer = "${mixinProviderGroup}:${mixinProviderModule}:${mixinProviderVersion}"
def mixinProviderSpec = "${mixinProviderSpecNoClassifer}:dev"
ext.mixinProviderSpec = mixinProviderSpec
+5 -5
View File
@@ -3,12 +3,12 @@
dependencies {
compile('com.github.GTNewHorizons:ForestryMC:4.8.2:dev')
compileOnly('com.github.GTNewHorizons:BloodMagic:1.5.0:dev')
compileOnly('com.github.GTNewHorizons:ThaumicHorizons:1.5.0:dev')
compileOnly('com.github.GTNewHorizons:BloodMagic:1.5.1:dev')
compileOnly('com.github.GTNewHorizons:ThaumicHorizons:1.5.1:dev')
compileOnly('com.github.GTNewHorizons:Baubles:1.0.4:dev') {transitive = false}
compileOnly('com.github.GTNewHorizons:Botania:1.10.4-GTNH:api') {transitive = false}
compileOnly('com.github.GTNewHorizons:Botania:1.10.6-GTNH:api') {transitive = false}
compileOnly('thaumcraft:Thaumcraft:1.7.10-4.2.3.5:dev') {transitive = false}
compileOnly('com.github.GTNewHorizons:GT5-Unofficial:5.09.45.25:dev') { transitive = false }
compileOnly('com.github.GTNewHorizons:GT5-Unofficial:5.09.45.57:dev')
compileOnly('com.github.GTNewHorizons:ThaumicEnergistics:1.6.2-GTNH:dev')
}
@@ -836,6 +836,15 @@ public class BeeGenomeManager {
return genome;
}
public static IAllele[] getTemplateTCEssentia() {
IAllele[] genome = getTemplateTCBase();
genome[EnumBeeChromosome.SPECIES.ordinal()] = BeeSpecies.TC_ESSENTIA.getSpecies();
genome[EnumBeeChromosome.FERTILITY.ordinal()] = Allele.getBaseAllele("fertilityNormal");
return genome;
}
public static IAllele[] getTemplateTCAir() {
IAllele[] genome = getTemplateTCBase();
@@ -488,6 +488,11 @@ public class BeeMutation {
BeeSpecies.SUPERNATURAL.getSpecies(),
BeeSpecies.TC_CHAOS.getGenome(),
8).requireResource(ThaumcraftHelper.crystal, ThaumcraftHelper.ShardType.CHAOS.ordinal());
beeMutationFactory.createMutation(
BeeSpecies.TC_ORDER.getSpecies(),
BeeSpecies.TC_CHAOS.getSpecies(),
BeeSpecies.TC_ESSENTIA.getGenome(),
8).requireResource(ThaumcraftHelper.crystal, ThaumcraftHelper.ShardType.CHAOS.ordinal());
beeMutationFactory.createMutation(
BeeSpecies.ETHEREAL.getSpecies(),
@@ -186,6 +186,8 @@ public enum BeeSpecies {
EnumTemperature.NORMAL, EnumHumidity.NORMAL, true, true),
TC_CHAOS("TCChaos", "tenebrarum", BeeClassification.THAUMIC, 0xCCCCCC, BodyColours.THAUMCRAFT_SHARD,
EnumTemperature.NORMAL, EnumHumidity.NORMAL, true, false),
TC_ESSENTIA("TCEssentia", "defaultium essentia apis", BeeClassification.THAUMIC, 0xCCCCCC,
BodyColours.THAUMCRAFT_SHARD, EnumTemperature.NORMAL, EnumHumidity.NORMAL, true, false),
TC_VIS("TCVis", "arcanus saecula", BeeClassification.THAUMIC, 0x004c99, BodyColours.THAUMCRAFT_NODE,
EnumTemperature.NORMAL, EnumHumidity.NORMAL, false, false),
@@ -398,6 +400,7 @@ public enum BeeSpecies {
TC_EARTH.registerGenomeTemplate(BeeGenomeManager.getTemplateTCEarth());
TC_ORDER.registerGenomeTemplate(BeeGenomeManager.getTemplateTCOrder());
TC_CHAOS.registerGenomeTemplate(BeeGenomeManager.getTemplateTCChaos());
TC_ESSENTIA.registerGenomeTemplate(BeeGenomeManager.getTemplateTCEssentia());
TC_VIS.registerGenomeTemplate(BeeGenomeManager.getTemplateTCVis());
TC_REJUVENATING.registerGenomeTemplate(BeeGenomeManager.getTemplateTCRejuvinating());
TC_EMPOWERING.registerGenomeTemplate(BeeGenomeManager.getTemplateTCEmpowering());
@@ -461,6 +464,7 @@ public enum BeeSpecies {
TC_WATER.setInactive();
TC_EARTH.setInactive();
TC_ORDER.setInactive();
TC_ESSENTIA.setInactive();
TC_VIS.setInactive();
TC_REJUVENATING.setInactive();
@@ -0,0 +1,172 @@
package magicbees.bees;
import java.util.ArrayList;
import java.util.Collection;
import net.minecraft.item.Item;
import net.minecraft.item.ItemStack;
import net.minecraft.nbt.NBTTagCompound;
import net.minecraft.nbt.NBTTagList;
import net.minecraftforge.common.util.Constants;
import forestry.api.apiculture.IBee;
import forestry.api.apiculture.IBeeHousing;
import forestry.api.apiculture.IBeekeepingMode;
import forestry.api.apiculture.IHiveFrame;
import forestry.apiculture.inventory.IApiaryInventory;
import magicbees.main.utils.ItemStackUtils;
import magicbees.tileentity.TileEntityMagicApiary;
public class MagicApiaryInventory implements IApiaryInventory {
public static final int SLOT_QUEEN = 0;
public static final int SLOT_DRONE = 1;
public static final int SLOT_FRAME_START = 2;
public static final int SLOT_FRAME_COUNT = 3;
public static final int SLOT_PRODUCTS_START = 5;
public static final int SLOT_PRODUCTS_COUNT = 7;
private final TileEntityMagicApiary magicApiary;
private final ItemStack[] items;
public MagicApiaryInventory(TileEntityMagicApiary magicApiary) {
this.magicApiary = magicApiary;
this.items = new ItemStack[12];
}
@Override
public ItemStack getQueen() {
return magicApiary.getStackInSlot(SLOT_QUEEN);
}
@Override
public ItemStack getDrone() {
return magicApiary.getStackInSlot(SLOT_DRONE);
}
@Override
public void setQueen(ItemStack itemstack) {
magicApiary.setInventorySlotContents(SLOT_QUEEN, itemstack);
}
@Override
public void setDrone(ItemStack itemstack) {
magicApiary.setInventorySlotContents(SLOT_DRONE, itemstack);
}
@Override
public boolean addProduct(ItemStack product, boolean all) {
int countAdded = ItemStackUtils
.addItemToInventory(magicApiary, product, SLOT_PRODUCTS_START, SLOT_PRODUCTS_COUNT);
if (all) {
return countAdded == product.stackSize;
}
return countAdded > 0;
}
public int getSizeInventory() {
return items.length;
}
public ItemStack getStackInSlot(int i) {
return items[i];
}
public void setInventorySlotContents(int i, ItemStack itemStack) {
items[i] = itemStack;
if (itemStack != null && itemStack.stackSize > getInventoryStackLimit()) {
itemStack.stackSize = getInventoryStackLimit();
}
}
public int[] getAccessibleSlotsFromSide(int side) {
if (side == 0 || side == 1) {
return new int[] { SLOT_QUEEN, SLOT_DRONE };
}
int[] slots = new int[SLOT_PRODUCTS_COUNT];
for (int i = 0, slot = SLOT_PRODUCTS_START; i < SLOT_PRODUCTS_COUNT; ++i, ++slot) {
slots[i] = slot;
}
return slots;
}
public boolean canInsertItem(int slot, ItemStack itemStack, int side) {
if (slot == SLOT_QUEEN && BeeManager.beeRoot.isMember(itemStack) && !BeeManager.beeRoot.isDrone(itemStack)) {
return true;
} else if (slot == SLOT_DRONE && BeeManager.beeRoot.isDrone(itemStack)) {
return true;
}
return slot == SLOT_DRONE && BeeManager.beeRoot.isDrone(itemStack);
}
public boolean canExtractItem(int slot, ItemStack itemStack, int side) {
return slot >= SLOT_FRAME_START && slot <= SLOT_FRAME_START + 2;
}
public int getInventoryStackLimit() {
return 64;
}
public Collection<IHiveFrame> getFrames() {
Collection<IHiveFrame> hiveFrames = new ArrayList<IHiveFrame>(SLOT_FRAME_COUNT);
for (int i = SLOT_FRAME_START; i < SLOT_FRAME_START + SLOT_FRAME_COUNT; i++) {
ItemStack stackInSlot = magicApiary.getStackInSlot(i);
if (stackInSlot == null) {
continue;
}
Item itemInSlot = stackInSlot.getItem();
if (itemInSlot instanceof IHiveFrame) {
hiveFrames.add((IHiveFrame) itemInSlot);
}
}
return hiveFrames;
}
public void wearOutFrames(IBeeHousing beeHousing, int amount) {
IBeekeepingMode beekeepingMode = BeeManager.beeRoot.getBeekeepingMode(magicApiary.getWorldObj());
int wear = Math.round(amount * beekeepingMode.getWearModifier());
for (int i = MagicApiaryInventory.SLOT_FRAME_START; i
< MagicApiaryInventory.SLOT_FRAME_START + MagicApiaryInventory.SLOT_FRAME_COUNT; i++) {
ItemStack hiveFrameStack = magicApiary.getStackInSlot(i);
if (hiveFrameStack == null) {
continue;
}
Item hiveFrameItem = hiveFrameStack.getItem();
if (!(hiveFrameItem instanceof IHiveFrame)) {
continue;
}
IHiveFrame hiveFrame = (IHiveFrame) hiveFrameItem;
ItemStack queenStack = magicApiary.getBeeInventory().getQueen();
IBee queen = BeeManager.beeRoot.getMember(queenStack);
ItemStack usedFrame = hiveFrame.frameUsed(magicApiary, hiveFrameStack, queen, wear);
magicApiary.setInventorySlotContents(i, usedFrame);
}
}
public void writeToNBT(NBTTagCompound compound) {
NBTTagList itemsNBT = new NBTTagList();
for (int i = 0; i < items.length; i++) {
ItemStack itemStack = items[i];
if (itemStack != null) {
NBTTagCompound item = new NBTTagCompound();
item.setByte("Slot", (byte) i);
itemStack.writeToNBT(item);
itemsNBT.appendTag(item);
}
}
compound.setTag("Items", itemsNBT);
}
public void readFromNBT(NBTTagCompound compound) {
NBTTagList items = compound.getTagList("Items", Constants.NBT.TAG_COMPOUND);
for (int i = 0; i < items.tagCount(); i++) {
NBTTagCompound item = items.getCompoundTagAt(i);
int slot = item.getByte("Slot");
if (slot >= 0 && slot < getSizeInventory()) {
setInventorySlotContents(slot, ItemStack.loadItemStackFromNBT(item));
}
}
}
}
@@ -0,0 +1,93 @@
package magicbees.block;
import net.minecraft.block.BlockContainer;
import net.minecraft.block.material.Material;
import net.minecraft.client.renderer.texture.IIconRegister;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.item.Item;
import net.minecraft.item.ItemStack;
import net.minecraft.tileentity.TileEntity;
import net.minecraft.util.ChatComponentTranslation;
import net.minecraft.util.IIcon;
import net.minecraft.world.World;
import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;
import magicbees.main.CommonProxy;
import magicbees.main.utils.TabMagicBees;
import magicbees.tileentity.TileEntityApimancersDrainerCommon;
import thaumcraft.api.aspects.Aspect;
import thaumcraft.api.aspects.IEssentiaContainerItem;
public class BlockApimancersDrainer extends BlockContainer {
@SideOnly(Side.CLIENT)
private IIcon[] icons;
public static Class<? extends TileEntity> drainer = TileEntityApimancersDrainerCommon.class;
public BlockApimancersDrainer() {
super(Material.rock);
this.setCreativeTab(TabMagicBees.tabMagicBees);
this.setBlockName("apimancersDrainer");
this.setHardness(1f);
this.setResistance(1.5f);
this.setHarvestLevel("pickaxe", 0);
}
@Override
public TileEntity createNewTileEntity(World world, int metadata) {
try {
return drainer.newInstance();
} catch (Exception e) {
return null;
}
}
@Override
public boolean onBlockActivated(World world, int x, int y, int z, EntityPlayer player, int side, float par7,
float par8, float par9) {
if (world.isRemote) {
return false;
} else {
TileEntity tile = world.getTileEntity(x, y, z);
if (tile instanceof TileEntityApimancersDrainerCommon && side != 1) {
ItemStack tItemStack = player.getHeldItem();
if (tItemStack != null) {
Item tItem = tItemStack.getItem();
if (tItem instanceof IEssentiaContainerItem
&& ((IEssentiaContainerItem) tItem).getAspects(player.getHeldItem()) != null
&& ((IEssentiaContainerItem) tItem).getAspects(player.getHeldItem()).size() > 0) {
Aspect tLocked = ((IEssentiaContainerItem) tItem).getAspects(player.getHeldItem())
.getAspects()[0];
((TileEntityApimancersDrainerCommon) tile).setAspect(tLocked);
player.addChatMessage(
new ChatComponentTranslation("Producing " + tLocked.getLocalizedDescription()));
}
} else {
((TileEntityApimancersDrainerCommon) tile).setAspect(null);
player.addChatMessage(new ChatComponentTranslation("Cleared production specifier"));
}
world.markBlockForUpdate(x, y, z);
return true;
}
return false;
}
}
@Override
@SideOnly(Side.CLIENT)
public IIcon getIcon(int side, int meta) {
return icons[side <= 1 ? side : 2];
}
@Override
@SideOnly(Side.CLIENT)
public void registerBlockIcons(IIconRegister register) {
icons = new IIcon[4];
for (int i = 0; i < icons.length; i++) {
icons[i] = register.registerIcon(CommonProxy.DOMAIN + ":apimancersdrainer." + i);
}
}
}
+53 -1
View File
@@ -14,12 +14,14 @@ import net.minecraftforge.common.config.Property;
import net.minecraftforge.oredict.OreDictionary;
import cpw.mods.fml.client.event.ConfigChangedEvent;
import cpw.mods.fml.common.Loader;
import cpw.mods.fml.common.event.FMLInterModComms;
import cpw.mods.fml.common.eventhandler.SubscribeEvent;
import cpw.mods.fml.common.registry.GameRegistry;
import forestry.api.apiculture.BeeManager;
import forestry.api.storage.BackpackManager;
import forestry.api.storage.EnumBackpackType;
import magicbees.block.BlockApimancersDrainer;
import magicbees.block.BlockEffectJar;
import magicbees.block.BlockEnchantedEarth;
import magicbees.block.BlockHive;
@@ -56,10 +58,12 @@ import magicbees.main.utils.VersionInfo;
import magicbees.main.utils.compat.BotaniaHelper;
import magicbees.main.utils.compat.ThaumcraftHelper;
import magicbees.storage.BackpackDefinition;
import magicbees.tileentity.TileEntityApimancersDrainerGT;
import magicbees.tileentity.TileEntityEffectJar;
import magicbees.tileentity.TileEntityMagicApiary;
import magicbees.tileentity.TileEntityManaAuraProvider;
import magicbees.tileentity.TileEntityVisAuraProvider;
import thaumicenergistics.api.ThEApi;
/**
* A class to hold some data related to mod state & functions.
@@ -89,6 +93,9 @@ public class Config {
public static double thaumcraftSaplingDroprate;
public static int aromaticLumpSwarmerRate;
public static int thaumcraftNodeMaxSize;
public static int drainerTimeBetween;
public static int drainerAmount;
public static int drainerCapacity;
public static boolean arsMagicaActive;
public static boolean baublesActive;
@@ -112,6 +119,7 @@ public class Config {
public static BlockEffectJar effectJar;
public static BlockHive hive;
public static BlockMagicApiary magicApiary;
public static BlockApimancersDrainer apimancersDrainer;
public static BlockManaAuraProvider manaAuraProvider;
public static BlockVisAuraProvider visAuraProvider;
@@ -156,6 +164,11 @@ public class Config {
// ----- Config State info ----------------------------------
public static Configuration configuration;
// ---- Loaded mods -----------------------------------------
public static boolean isGTLoaded = Loader.isModLoaded("gregtech");
public static boolean isGTNHCoreModLoaded = Loader.isModLoaded("gregtech") && Loader.isModLoaded("dreamcraft");
public static boolean isThaumicEnergisticsLoaded = Loader.isModLoaded("thaumicenergistics");
public Config(File configFile) {
configuration = new Configuration(configFile);
configuration.load();
@@ -215,6 +228,15 @@ public class Config {
setupMiscForestryItemHooks();
}
public void setupThaumicEnergistics() {
if (isThaumicEnergisticsLoaded) {
try {
Class c = BlockApimancersDrainer.drainer;
ThEApi.instance().transportPermissions().addAspectStorageTileToExtractPermissions(c);
} catch (Exception ignored) {}
}
}
private void processConfigFile() {
// Pull config from Forestry via reflection
Field f;
@@ -332,6 +354,31 @@ public class Config {
32767);
thaumcraftNodeMaxSize = p.getInt(256);
p = configuration.get(
CATEGORY_GENERAL,
"drainerTimeBetween",
200,
"The time in ticks between Apimancer's Drainer essentia generation",
1,
32767);
drainerTimeBetween = p.getInt(200);
p = configuration.get(
CATEGORY_GENERAL,
"drainerAmount",
1,
"The amount that the Apimancer's Drainer generates on every round",
1,
32767);
drainerAmount = p.getInt(1);
p = configuration.get(
CATEGORY_GENERAL,
"drainerCapacity",
512,
"The amount that the Apimancer's Drainer can hold of each aspect",
1,
32767);
drainerCapacity = p.getInt(512);
p = configuration.get(CATEGORY_GENERAL, "moonDialShowText", false);
p.comment = "set to true to show the current moon phase in mouse-over text.";
moonDialShowsPhaseInText = p.getBoolean(false);
@@ -471,6 +518,11 @@ public class Config {
visAuraProvider = new BlockVisAuraProvider();
GameRegistry.registerBlock(visAuraProvider, "visAuraProvider");
GameRegistry.registerTileEntity(TileEntityVisAuraProvider.class, "visAuraProvider");
if (isGTNHCoreModLoaded) BlockApimancersDrainer.drainer = TileEntityApimancersDrainerGT.class;
apimancersDrainer = new BlockApimancersDrainer();
GameRegistry.registerBlock(apimancersDrainer, "apimancersDrainer");
GameRegistry.registerTileEntity(BlockApimancersDrainer.drainer, "apimancersDrainer");
}
}
@@ -520,7 +572,7 @@ public class Config {
private void setupMiscForestryItemHooks() {
// Make Aromatic Lumps a swarmer inducer. Chance is /1000.
if (aromaticLumpSwarmerRate > 0) {
aromaticLumpSwarmerRate = (aromaticLumpSwarmerRate >= 1000) ? 1000 : aromaticLumpSwarmerRate;
aromaticLumpSwarmerRate = Math.min(aromaticLumpSwarmerRate, 1000);
BeeManager.inducers.put(miscResources.getStackForType(ResourceType.AROMATIC_LUMP), aromaticLumpSwarmerRate);
}
}
@@ -73,6 +73,7 @@ public class MagicBees {
proxy.registerRenderers();
this.modConfig.saveConfigs();
this.modConfig.setupThaumicEnergistics();
CraftingManager.setupCrafting();
CraftingManager.registerLiquidContainers();
@@ -33,151 +33,11 @@ import thaumcraft.api.crafting.InfusionRecipe;
import thaumcraft.api.research.ResearchCategories;
import thaumcraft.api.research.ResearchItem;
import thaumcraft.api.research.ResearchPage;
import thaumcraft.common.config.ConfigBlocks;
public class ThaumcraftHelper implements IModHelper {
public enum MiscResource {
ALUMENTUM,
NITOR,
THAUMIUM,
QUICKSILVER,
MAGIC_TALLOW,
BRAIN_DEPRECATED,
AMBER,
ENCHANTED_FABRIC,
VIS_FILTER,
KNOWLEDGE_FRAGMENT,
MIRRORED_GLASS,
TAINTED_GOO,
TAINTED_TENDRIL,
JAR_LABEL,
SALIS,
CHARM,
VOID_INGOT,
VOID_SEED,
COIN,;
}
public enum NuggetType {
IRON,
COPPER,
TIN,
SILVER,
LEAD,
QUICKSILVER,
THAUMIUM,
VOID_METAL,
_8,
_9,
_10,
_11,
_12,
_13,
_14,
_15,
NATIVE_IRON,
NATIVE_COPPER,
NATIVE_TIN,
NATIVE_SILVER,
NATIVE_LEAD,
NATIVE_CINNABAR,
_22,
_23,
_24,
_25,
_26,
_27,
_28,
_29,
_30,
NATIVE_GOLD,;
}
public enum ShardType {
AIR,
FIRE,
WATER,
EARTH,
ORDER,
CHAOS,
BALANCED,;
}
public enum MetalDeviceType {
CRUCIBLE,
ALEMBIC,
VIS_CHARGE_RELAY,
ADVANCED_ALCHEMICAL_CONSTRUCT,
_4,
ITEM_GRATE,
_6,
ARCANE_LAMP,
LAMP_OF_GROWTH,
ALCHEMICAL_CONSTRUCT,
THAUMATORIUM,
_11,
MNEMONIC_MATRIX,
LAMP_OF_FERTILITY,
VIS_RELAY,;
}
public enum WoodenDeviceType {
BELLOWS,
EAR,
PRESSURE_PLATE,
PRESSURE_PLATE_B,
BORE_BASE,
BORE,
PLANKS_GREATWOOD,
PLANKS_SILVERWOOD,
BANNER,;
}
public enum AiryBlockType {
NODE,
NITOR,
_2,
_3,
WARDING_STONE_FENCE,
ENERGIZED_NODE,;
}
public enum Entity {
BRAINY_ZOMBIE("entBrainyZombie", "EntityBrainyZombie"),
GIANT_BRAINY_ZOMBIE("entGiantBrainyZombie", "EntityGiantBrainyZombie"),
WISP("entWisp", "EntityWisp"),
FIREBAT("entFirebat", "EntityFireBat"),;
private static String packageName = "thaumcraft.common.entities.monster.";
public String entityID;
private String className;
private Entity(String id, String clazz) {
this.entityID = id;
this.className = clazz;
}
public String getClassName() {
return packageName + this.className;
}
}
public enum BlockPlant {
GREATWOOD_SAPLING,
SILVERWOOD_SAPLING,
SHIMMERLEAF,
CINDERPEARL,
PURIFYING_PLANT,
VISHROOM,;
}
public enum TreeType {
GREATWOOD,
SILVERWOOD,;
}
public static final String Name = "Thaumcraft";
public static Block plant;
public static Block candle;
public static Block crystal;
@@ -191,7 +51,6 @@ public class ThaumcraftHelper implements IModHelper {
public static Block airy;
public static Block fluxGas;
public static Block fluxGoo;
public static Item filledJar;
public static Item miscResource;
public static Item shard;
@@ -201,63 +60,17 @@ public class ThaumcraftHelper implements IModHelper {
public static Item nuggetBeef;
public static Item nuggetPork;
public static Item zombieBrain;
public static ResearchItem bloodFramePage;
public static ResearchPage bloodFrame1;
public static ResearchPage bloodFrame2;
public static ResearchItem frenzyFramePage;
public static ResearchPage frenzyFrame1;
public static ResearchPage frenzyFrame2;
public static Class<? extends TileEntity> nodeClass;
public static final String Name = "Thaumcraft";
public static Object bloodFrame;
public static Object frenziedFrame;
private static boolean isThaumcraftPresent = false;
public static boolean isActive() {
return isThaumcraftPresent;
}
public void preInit() {
if (Loader.isModLoaded(Name) && Config.thaumcraftActive) {
isThaumcraftPresent = true;
aspectTime = new Aspect(
"tempus",
0xB68CFF,
new Aspect[] { Aspect.VOID, Aspect.ORDER },
new ResourceLocation(CommonProxy.DOMAIN, CommonProxy.TEXTURE + "aspects/tempus.png"),
1);
MagicBeesAPI.thaumcraftAspectTempus = aspectTime;
} else {
// Switch off TC-dependant items.
ResourceType.LORE_FRAGMENT.setHidden();
ResourceType.TC_DUST_AIR.setHidden();
ResourceType.TC_DUST_CHAOS.setHidden();
ResourceType.TC_DUST_EARTH.setHidden();
ResourceType.TC_DUST_FIRE.setHidden();
ResourceType.TC_DUST_ORDER.setHidden();
ResourceType.TC_DUST_WATER.setHidden();
}
}
public void init() {
if (isActive()) {
getBlocks();
getItems();
}
}
public void postInit() {
if (isActive()) {
setupItemAspects();
setupCrafting();
setupResearch();
}
}
private static Object aspectTime;
private static Object frameMagic;
private static Object thaumScoop;
private static Object thaumGrafter;
@@ -271,12 +84,13 @@ public class ThaumcraftHelper implements IModHelper {
private static Object essenceTime;
private static Object essenceOblivion;
private static Object visAuraProvider;
public static Object bloodFrame;
public static Object frenziedFrame;
private static Object voidScoop;
private static Object voidGrafter;
private static InfusionRecipe apimancersDrainer;
public static boolean isActive() {
return isThaumcraftPresent;
}
private static void getBlocks() {
plant = BlockInterface.getBlock(Name, "blockCustomPlant");
@@ -340,32 +154,56 @@ public class ThaumcraftHelper implements IModHelper {
"MB_Scoop",
new ItemStack(Config.thaumiumScoop),
new AspectList().add(Aspect.ORDER, 2),
new Object[] { "sWs", "sTs", " T ", 's', Items.stick, 'W', Blocks.wool, 'T',
new ItemStack(miscResource, 1, MiscResource.THAUMIUM.ordinal()) });
"sWs",
"sTs",
" T ",
's',
Items.stick,
'W',
Blocks.wool,
'T',
new ItemStack(miscResource, 1, MiscResource.THAUMIUM.ordinal()));
thaumGrafter = ThaumcraftApi.addArcaneCraftingRecipe(
"MB_Grafter",
new ItemStack(Config.thaumiumGrafter),
new AspectList().add(Aspect.ORDER, 5),
new Object[] { " T", " s ", "s ", 's', Items.stick, 'T',
new ItemStack(miscResource, 1, MiscResource.THAUMIUM.ordinal()) });
" T",
" s ",
"s ",
's',
Items.stick,
'T',
new ItemStack(miscResource, 1, MiscResource.THAUMIUM.ordinal()));
frameMagic = ThaumcraftApi.addArcaneCraftingRecipe(
"MB_FrameMagic",
new ItemStack(Config.hiveFrameMagic),
new AspectList().add(Aspect.ORDER, 5).add(Aspect.AIR, 2).add(Aspect.EARTH, 2),
new Object[] { "sss", "sCs", "sss", 's', Items.stick, 'C',
new ItemStack(miscResource, 1, MiscResource.ENCHANTED_FABRIC.ordinal()) });
"sss",
"sCs",
"sss",
's',
Items.stick,
'C',
new ItemStack(miscResource, 1, MiscResource.ENCHANTED_FABRIC.ordinal()));
visAuraProvider = ThaumcraftApi.addArcaneCraftingRecipe(
"MB_VisAuraProvider",
new ItemStack(Config.visAuraProvider),
new AspectList().add(Aspect.ORDER, 60).add(Aspect.AIR, 60).add(Aspect.ENTROPY, 60)
.add(Aspect.WATER, 60),
new Object[] { "ngn", "gvg", "npn", 'n', Items.gold_nugget, 'g',
new ItemStack(wooden, 1, WoodenDeviceType.PLANKS_GREATWOOD.ordinal()), 'v',
new ItemStack(metal, 1, MetalDeviceType.VIS_RELAY.ordinal()), 'p',
Config.pollen.getStackForType(PollenType.UNUSUAL) });
"ngn",
"gvg",
"npn",
'n',
Items.gold_nugget,
'g',
new ItemStack(wooden, 1, WoodenDeviceType.PLANKS_GREATWOOD.ordinal()),
'v',
new ItemStack(metal, 1, MetalDeviceType.VIS_RELAY.ordinal()),
'p',
Config.pollen.getStackForType(PollenType.UNUSUAL));
essenceLife = ThaumcraftApi.addCrucibleRecipe(
"MB_EssenceLife",
@@ -426,22 +264,49 @@ public class ThaumcraftHelper implements IModHelper {
"MB_EssenceOblivion",
Config.miscResources.getStackForType(ResourceType.ESSENCE_SCORNFUL_OBLIVION),
new AspectList().add(Aspect.ENTROPY, 25).add(Aspect.AIR, 40).add(Aspect.ORDER, 15),
new Object[] { Config.miscResources.getStackForType(ResourceType.DIMENSIONAL_SINGULARITY),
Blocks.dragon_egg, });
Config.miscResources.getStackForType(ResourceType.DIMENSIONAL_SINGULARITY),
Blocks.dragon_egg);
voidScoop = ThaumcraftApi.addArcaneCraftingRecipe(
"MB_ScoopVoid",
new ItemStack(Config.voidScoop),
new AspectList().add(Aspect.ORDER, 2),
new Object[] { "sWs", "sTs", " T ", 's', Items.stick, 'W', Blocks.wool, 'T',
new ItemStack(miscResource, 1, MiscResource.VOID_INGOT.ordinal()) });
"sWs",
"sTs",
" T ",
's',
Items.stick,
'W',
Blocks.wool,
'T',
new ItemStack(miscResource, 1, MiscResource.VOID_INGOT.ordinal()));
voidGrafter = ThaumcraftApi.addArcaneCraftingRecipe(
"MB_GrafterVoid",
new ItemStack(Config.voidGrafter),
new AspectList().add(Aspect.ORDER, 5),
new Object[] { " T", " s ", "s ", 's', Items.stick, 'T',
new ItemStack(miscResource, 1, MiscResource.VOID_INGOT.ordinal()) });
" T",
" s ",
"s ",
's',
Items.stick,
'T',
new ItemStack(miscResource, 1, MiscResource.VOID_INGOT.ordinal()));
ItemStack centrifuge = new ItemStack(ConfigBlocks.blockTube);
centrifuge.setItemDamage(2);
apimancersDrainer = ThaumcraftApi.addInfusionCraftingRecipe(
"MB_ApimancersDrainer",
new ItemStack(Config.apimancersDrainer),
6,
new AspectList().add(Aspect.MAGIC, 40).add(Aspect.HARVEST, 20).add(Aspect.EXCHANGE, 20)
.add(Aspect.ELDRITCH, 20),
new ItemStack(ConfigBlocks.blockEssentiaReservoir),
new ItemStack[] { centrifuge, Config.pollen.getStackForType(PollenType.UNUSUAL),
Config.pollen.getStackForType(PollenType.PHASED),
Config.miscResources.getStackForType(ResourceType.DIMENSIONAL_SINGULARITY),
Config.pollen.getStackForType(PollenType.UNUSUAL),
Config.pollen.getStackForType(PollenType.PHASED) });
}
private static void setupResearch() {
@@ -539,7 +404,7 @@ public class ThaumcraftHelper implements IModHelper {
1,
1,
new ItemStack(Config.hiveFrameMagic))
.setPages(getResearchPage("MB_FrameMagic"), new ResearchPage((IArcaneRecipe) frameMagic))
.setPages(getResearchPage("MB_FrameMagic.1"), new ResearchPage((IArcaneRecipe) frameMagic))
.registerResearchItem();
input = new ItemStack(Config.hiveFrameMagic);
@@ -686,6 +551,19 @@ public class ThaumcraftHelper implements IModHelper {
new ResearchPage((IArcaneRecipe) visAuraProvider))
.setParentsHidden("VISPOWER").registerResearchItem();
new ResearchItem(
"MB_ApimancersDrainer",
category,
new AspectList().add(Aspect.ELDRITCH, 1).add(Aspect.HARVEST, 1).add(Aspect.MAGIC, 1)
.add((Aspect) aspectTime, 1),
-3,
5,
4,
new ItemStack(Config.apimancersDrainer))
.setPages(getResearchPage("MB_ApimancersDrainer.1"), new ResearchPage(apimancersDrainer))
.setParentsHidden("VOIDMETAL", "ESSENTIARESERVOIR").setParents("MB_EssenceUnstable")
.setConcealed().registerResearchItem();
}
private static ResearchPage getResearchPage(String ident) {
@@ -883,4 +761,183 @@ public class ThaumcraftHelper implements IModHelper {
new AspectList().add(Aspect.VOID, 6).add((Aspect) aspectTime, 8));
}
public void preInit() {
if (Loader.isModLoaded(Name) && Config.thaumcraftActive) {
isThaumcraftPresent = true;
aspectTime = new Aspect(
"tempus",
0xB68CFF,
new Aspect[] { Aspect.VOID, Aspect.ORDER },
new ResourceLocation(CommonProxy.DOMAIN, CommonProxy.TEXTURE + "aspects/tempus.png"),
1);
MagicBeesAPI.thaumcraftAspectTempus = aspectTime;
} else {
// Switch off TC-dependant items.
ResourceType.LORE_FRAGMENT.setHidden();
ResourceType.TC_DUST_AIR.setHidden();
ResourceType.TC_DUST_CHAOS.setHidden();
ResourceType.TC_DUST_EARTH.setHidden();
ResourceType.TC_DUST_FIRE.setHidden();
ResourceType.TC_DUST_ORDER.setHidden();
ResourceType.TC_DUST_WATER.setHidden();
}
}
public void init() {
if (isActive()) {
getBlocks();
getItems();
}
}
public void postInit() {
if (isActive()) {
setupItemAspects();
setupCrafting();
setupResearch();
}
}
public enum MiscResource {
ALUMENTUM,
NITOR,
THAUMIUM,
QUICKSILVER,
MAGIC_TALLOW,
BRAIN_DEPRECATED,
AMBER,
ENCHANTED_FABRIC,
VIS_FILTER,
KNOWLEDGE_FRAGMENT,
MIRRORED_GLASS,
TAINTED_GOO,
TAINTED_TENDRIL,
JAR_LABEL,
SALIS,
CHARM,
VOID_INGOT,
VOID_SEED,
COIN,
}
public enum NuggetType {
IRON,
COPPER,
TIN,
SILVER,
LEAD,
QUICKSILVER,
THAUMIUM,
VOID_METAL,
_8,
_9,
_10,
_11,
_12,
_13,
_14,
_15,
NATIVE_IRON,
NATIVE_COPPER,
NATIVE_TIN,
NATIVE_SILVER,
NATIVE_LEAD,
NATIVE_CINNABAR,
_22,
_23,
_24,
_25,
_26,
_27,
_28,
_29,
_30,
NATIVE_GOLD,
}
public enum ShardType {
AIR,
FIRE,
WATER,
EARTH,
ORDER,
CHAOS,
BALANCED,
}
public enum MetalDeviceType {
CRUCIBLE,
ALEMBIC,
VIS_CHARGE_RELAY,
ADVANCED_ALCHEMICAL_CONSTRUCT,
_4,
ITEM_GRATE,
_6,
ARCANE_LAMP,
LAMP_OF_GROWTH,
ALCHEMICAL_CONSTRUCT,
THAUMATORIUM,
_11,
MNEMONIC_MATRIX,
LAMP_OF_FERTILITY,
VIS_RELAY,
}
public enum WoodenDeviceType {
BELLOWS,
EAR,
PRESSURE_PLATE,
PRESSURE_PLATE_B,
BORE_BASE,
BORE,
PLANKS_GREATWOOD,
PLANKS_SILVERWOOD,
BANNER,
}
public enum AiryBlockType {
NODE,
NITOR,
_2,
_3,
WARDING_STONE_FENCE,
ENERGIZED_NODE,
}
public enum Entity {
BRAINY_ZOMBIE("entBrainyZombie", "EntityBrainyZombie"),
GIANT_BRAINY_ZOMBIE("entGiantBrainyZombie", "EntityGiantBrainyZombie"),
WISP("entWisp", "EntityWisp"),
FIREBAT("entFirebat", "EntityFireBat"),;
private static final String packageName = "thaumcraft.common.entities.monster.";
public String entityID;
private final String className;
Entity(String id, String clazz) {
this.entityID = id;
this.className = clazz;
}
public String getClassName() {
return packageName + this.className;
}
}
public enum BlockPlant {
GREATWOOD_SAPLING,
SILVERWOOD_SAPLING,
SHIMMERLEAF,
CINDERPEARL,
PURIFYING_PLANT,
VISHROOM,
}
public enum TreeType {
GREATWOOD,
SILVERWOOD,
}
}
@@ -0,0 +1,290 @@
package magicbees.tileentity;
import java.util.Objects;
import net.minecraft.item.ItemStack;
import net.minecraft.nbt.NBTTagCompound;
import net.minecraft.tileentity.TileEntity;
import net.minecraftforge.common.util.ForgeDirection;
import cpw.mods.fml.common.Optional;
import forestry.api.apiculture.EnumBeeType;
import forestry.api.apiculture.IAlleleBeeSpecies;
import forestry.api.apiculture.IBee;
import forestry.api.apiculture.IBeeGenome;
import forestry.api.apiculture.IBeeHousing;
import forestry.api.apiculture.IBeeModifier;
import forestry.api.apiculture.IBeekeepingLogic;
import forestry.apiculture.genetics.BeeGenome;
import magicbees.bees.BeeManager;
import magicbees.bees.BeeSpecies;
import magicbees.main.Config;
import thaumcraft.api.aspects.Aspect;
import thaumcraft.api.aspects.AspectList;
import thaumcraft.api.aspects.IAspectContainer;
import thaumcraft.api.aspects.IEssentiaTransport;
import thaumicenergistics.api.storage.IAspectStorage;
@Optional.InterfaceList({
@Optional.Interface(iface = "thaumicenergistics.api.storage.IAspectStorage", modid = "thaumicenergistics") })
public class TileEntityApimancersDrainerCommon extends TileEntity
implements IEssentiaTransport, IAspectContainer, IAspectStorage {
public Aspect aspect;
public AspectList essentia = new AspectList();
public final int maxAmount = Config.drainerCapacity;
protected int increment = 0;
public void setAspect(Aspect sAspect) {
aspect = sAspect;
}
@Override
public void updateEntity() {
super.updateEntity();
// If there's no stored aspect we shouldn't even check for the above block.
// We also don't need to run all the logic if the cabinet is full.
if (aspect == null || essentia.visSize() == maxAmount) return;
if (increment >= Config.drainerTimeBetween) {
increment = 0;
try {
TileEntity above = worldObj.getTileEntity(this.xCoord, this.yCoord + 1, this.zCoord);
IBeeHousing beeHousing = beeHousing(above);
if (beeHousing != null) {
// This performs all the checks to see if the bee is a living queen and if the species conditions
// are met.
if (!canWork(beeHousing, above)) return;
// The beeRoot.isMember call will treat null the same as EnumBeeType.NONE which leads getSpecies to
// return null.
ItemStack queenStack = getQueen(beeHousing, above);
IAlleleBeeSpecies queenSpecies = BeeGenome.getSpecies(queenStack);
if (queenSpecies == null) return;
if (BeeManager.beeRoot.getType(queenStack) != EnumBeeType.QUEEN) return;
if (Objects.equals(queenSpecies.getUID(), BeeSpecies.TC_ESSENTIA.getSpecies().getUID())) {
IBeeModifier modifier = BeeManager.beeRoot.createBeeHousingModifier(beeHousing);
IBee queen = BeeManager.beeRoot.getMember(queenStack);
int amount = Config.drainerAmount * getProductionMultiplier(modifier, queen, above);
addToContainer(aspect, amount);
drainQueen(beeHousing, modifier, queen);
}
}
} catch (Exception ignored) {}
}
increment++;
}
protected IBeeHousing beeHousing(TileEntity above) {
return above instanceof IBeeHousing ? (IBeeHousing) above : null;
}
protected boolean canWork(IBeeHousing beeHousing, TileEntity above) {
IBeekeepingLogic beekeepingLogic = beeHousing.getBeekeepingLogic();
return beekeepingLogic.canWork();
}
protected ItemStack getQueen(IBeeHousing beeHousing, TileEntity te) {
return beeHousing.getBeeInventory().getQueen();
}
protected int getProductionMultiplier(IBeeModifier modifier, IBee queen, TileEntity te) {
IBeeGenome queenGenome = queen.getGenome();
float productionMultiplier = modifier.getProductionModifier(queenGenome, 1.0F);
float minimum = Math.max(productionMultiplier, 1.0F);
return (int) Math.ceil(minimum);
}
private void drainQueen(IBeeHousing housing, IBeeModifier modifier, IBee queen) {
float lifespanModifier = modifier.getLifespanModifier(queen.getGenome(), queen.getMate(), 1.0f);
queen.age(housing.getWorld(), lifespanModifier);
// Write the changed queen back into the item stack.
NBTTagCompound nbttagcompound = new NBTTagCompound();
queen.writeToNBT(nbttagcompound);
housing.getBeeInventory().getQueen().setTagCompound(nbttagcompound);
}
@Override
@Optional.Method(modid = "thaumicenergistics")
public int getContainerCapacity() {
return maxAmount;
}
@Override
@Optional.Method(modid = "thaumicenergistics")
public boolean doesShareCapacity() {
return true;
}
@Override
public AspectList getAspects() {
return this.essentia;
}
@Override
public void setAspects(AspectList aspects) {
this.essentia = aspects;
}
@Override
public boolean doesContainerAccept(Aspect tag) {
return false;
}
@Override
public int addToContainer(Aspect tag, int am) {
int toAdd = Math.min(maxAmount - essentia.visSize(), am);
if (aspect.equals(tag) && toAdd > 0) {
essentia.add(aspect, toAdd);
markDirty();
return am - toAdd;
}
markDirty();
return am;
}
@Override
public boolean takeFromContainer(Aspect tag, int amount) {
if (!this.worldObj.isRemote) {
this.worldObj.markBlockForUpdate(this.xCoord, this.yCoord, this.zCoord);
}
if (this.essentia.getAmount(tag) >= amount) {
this.essentia.reduce(tag, amount);
return true;
}
return false;
}
@Override
public boolean takeFromContainer(AspectList ot) {
// TODO Auto-generated method stub
boolean hasIt = true;
if (!this.worldObj.isRemote) {
this.worldObj.markBlockForUpdate(this.xCoord, this.yCoord, this.zCoord);
}
for (Aspect next : ot.aspects.keySet()) {
if (this.essentia.getAmount(next) < ot.getAmount(next)) hasIt = false;
}
if (hasIt) {
for (Aspect next : ot.aspects.keySet()) {
essentia.reduce(next, ot.getAmount(next));
}
return true;
}
return false;
}
@Override
public boolean doesContainerContainAmount(Aspect tag, int amount) {
return this.essentia.getAmount(tag) >= amount;
}
@Override
public boolean doesContainerContain(AspectList ot) {
boolean hasIt = true;
for (Aspect next : ot.aspects.keySet()) {
if (this.essentia.getAmount(next) < ot.getAmount(next)) hasIt = false;
}
return hasIt;
}
@Override
public int containerContains(Aspect tag) {
return this.essentia.getAmount(tag);
}
@Override
public boolean isConnectable(ForgeDirection face) {
return (face != ForgeDirection.UP);
}
@Override
public boolean canInputFrom(ForgeDirection face) {
return false;
}
@Override
public boolean canOutputTo(ForgeDirection face) {
return (face != ForgeDirection.UP);
}
@Override
public int takeEssentia(Aspect aspect, int amount, ForgeDirection face) {
if (face != ForgeDirection.UP) {
if (!this.worldObj.isRemote) {
this.worldObj.markBlockForUpdate(this.xCoord, this.yCoord, this.zCoord);
}
if (amount > this.essentia.getAmount(aspect)) {
int total = this.essentia.getAmount(aspect);
this.essentia.reduce(aspect, total);
return total;
}
this.essentia.reduce(aspect, amount);
return amount;
}
return 0;
}
@Override
public void setSuction(Aspect aspect, int amount) {}
@Override
public int getMinimumSuction() {
return -1;
}
@Override
public int getSuctionAmount(ForgeDirection face) {
return -1;
}
@Override
public boolean renderExtendedTube() {
return false;
}
@Override
public Aspect getSuctionType(ForgeDirection face) {
return null;
}
@Override
public Aspect getEssentiaType(ForgeDirection face) {
return this.essentia.size() > 0
? this.essentia.getAspects()[this.worldObj.rand.nextInt(this.essentia.getAspects().length)]
: null;
}
@Override
public int getEssentiaAmount(ForgeDirection face) {
return this.essentia.visSize();
}
@Override
public int addEssentia(Aspect aspect, int amount, ForgeDirection face) {
return this.canInputFrom(face) ? amount - this.addToContainer(aspect, amount) : 0;
}
/* Saving and loading */
@Override
public void writeToNBT(NBTTagCompound compound) {
super.writeToNBT(compound);
this.essentia.writeToNBT(compound);
if (aspect != null) compound.setString("aspect", aspect.getTag());
compound.setInteger("increment", increment);
}
@Override
public void readFromNBT(NBTTagCompound compound) {
super.readFromNBT(compound);
this.essentia.readFromNBT(compound);
if (this.essentia.visSize() > this.maxAmount) {
this.essentia = new AspectList();
}
if (compound.hasKey("aspect")) aspect = Aspect.getAspect(compound.getString("aspect"));
increment = compound.getInteger("increment");
}
}
@@ -0,0 +1,89 @@
package magicbees.tileentity;
import java.util.stream.Collectors;
import net.minecraft.item.ItemStack;
import net.minecraft.tileentity.TileEntity;
import net.minecraft.util.EnumChatFormatting;
import forestry.api.apiculture.IBee;
import forestry.api.apiculture.IBeeHousing;
import forestry.api.apiculture.IBeeModifier;
import gregtech.api.interfaces.metatileentity.IMetaTileEntity;
import gregtech.api.interfaces.tileentity.IGregTechDeviceInformation;
import gregtech.api.metatileentity.BaseMetaTileEntity;
import gregtech.common.tileentities.machines.basic.GT_MetaTileEntity_IndustrialApiary;
public class TileEntityApimancersDrainerGT extends TileEntityApimancersDrainerCommon
implements IGregTechDeviceInformation {
@Override
public boolean isGivingInformation() {
return true;
}
@Override
public String[] getInfoData() {
String aspects = essentia.aspects.entrySet().stream()
.map(
e -> EnumChatFormatting.LIGHT_PURPLE + e.getKey().getName()
+ ": "
+ EnumChatFormatting.GREEN
+ e.getValue())
.collect(Collectors.joining(EnumChatFormatting.RESET + ", " + EnumChatFormatting.RESET));
return new String[] { EnumChatFormatting.DARK_PURPLE + "Apimancer's Drainer" + EnumChatFormatting.RESET,
aspect != null ? "Attuned: " + aspect.getName() : "Not attuned", "Stored Essentia:", aspects };
}
@Override
protected IBeeHousing beeHousing(TileEntity above) {
IBeeHousing regularCheck = super.beeHousing(above);
if (regularCheck != null) return regularCheck;
BaseMetaTileEntity GTMetaTileEntity = getGTTileEntity(above);
if (GTMetaTileEntity != null) {
IMetaTileEntity underlyingMetaTileEntity = GTMetaTileEntity.getMetaTileEntity();
if (!(underlyingMetaTileEntity instanceof GT_MetaTileEntity_IndustrialApiary)) return null;
return (IBeeHousing) underlyingMetaTileEntity;
}
return null;
}
@Override
protected boolean canWork(IBeeHousing beeHousing, TileEntity te) {
BaseMetaTileEntity GTMetaTileEntity = getGTTileEntity(te);
return GTMetaTileEntity != null ? GTMetaTileEntity.isActive() : super.canWork(beeHousing, te);
}
@Override
protected ItemStack getQueen(IBeeHousing beeHousing, TileEntity te) {
BaseMetaTileEntity GTMetaTileEntity = getGTTileEntity(te);
GT_MetaTileEntity_IndustrialApiary industrialApiary = getGTIndustrialApiary(GTMetaTileEntity);
return industrialApiary != null ? industrialApiary.getUsedQueen() : super.getQueen(beeHousing, te);
}
@Override
protected int getProductionMultiplier(IBeeModifier modifier, IBee queen, TileEntity te) {
BaseMetaTileEntity GTMetaTileEntity = getGTTileEntity(te);
GT_MetaTileEntity_IndustrialApiary industrialApiary = getGTIndustrialApiary(GTMetaTileEntity);
int housingProductionMultiplier = super.getProductionMultiplier(modifier, queen, te);
return industrialApiary != null
? housingProductionMultiplier * (int) Math.ceil(Math.sqrt(industrialApiary.mSpeed))
: housingProductionMultiplier;
}
private BaseMetaTileEntity getGTTileEntity(TileEntity te) {
boolean isGTMetaTileEntity = te instanceof BaseMetaTileEntity;
return isGTMetaTileEntity ? (BaseMetaTileEntity) te : null;
}
private GT_MetaTileEntity_IndustrialApiary getGTIndustrialApiary(BaseMetaTileEntity bmte) {
if (bmte != null) {
IMetaTileEntity underlyingMetaTileEntity = bmte.getMetaTileEntity();
if (!(underlyingMetaTileEntity instanceof GT_MetaTileEntity_IndustrialApiary)) return null;
return (GT_MetaTileEntity_IndustrialApiary) underlyingMetaTileEntity;
}
return null;
}
}
@@ -1,7 +1,6 @@
package magicbees.tileentity;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Collections;
import java.util.List;
import java.util.Map;
@@ -10,10 +9,8 @@ import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.inventory.Container;
import net.minecraft.inventory.ICrafting;
import net.minecraft.inventory.ISidedInventory;
import net.minecraft.item.Item;
import net.minecraft.item.ItemStack;
import net.minecraft.nbt.NBTTagCompound;
import net.minecraft.nbt.NBTTagList;
import net.minecraft.network.Packet;
import net.minecraft.tileentity.TileEntity;
import net.minecraft.util.ChunkCoordinates;
@@ -22,35 +19,33 @@ import net.minecraft.world.ChunkPosition;
import net.minecraft.world.World;
import net.minecraft.world.biome.BiomeGenBase;
import net.minecraft.world.chunk.Chunk;
import net.minecraftforge.common.util.Constants;
import com.mojang.authlib.GameProfile;
import forestry.api.apiculture.DefaultBeeListener;
import forestry.api.apiculture.DefaultBeeModifier;
import forestry.api.apiculture.IBee;
import forestry.api.apiculture.IBeeGenome;
import forestry.api.apiculture.IBeeHousing;
import forestry.api.apiculture.IBeeHousingInventory;
import forestry.api.apiculture.IBeeListener;
import forestry.api.apiculture.IBeeModifier;
import forestry.api.apiculture.IBeekeepingLogic;
import forestry.api.apiculture.IBeekeepingMode;
import forestry.api.apiculture.IHiveFrame;
import forestry.api.core.EnumHumidity;
import forestry.api.core.EnumTemperature;
import forestry.api.core.ForestryAPI;
import forestry.api.core.IErrorLogic;
import forestry.apiculture.ApiaryBeeListener;
import forestry.apiculture.IApiary;
import forestry.apiculture.inventory.IApiaryInventory;
import magicbees.api.bees.IMagicApiaryAuraProvider;
import magicbees.bees.AuraCharge;
import magicbees.bees.BeeManager;
import magicbees.bees.MagicApiaryInventory;
import magicbees.main.CommonProxy;
import magicbees.main.utils.ChunkCoords;
import magicbees.main.utils.ItemStackUtils;
import magicbees.main.utils.net.EventAuraChargeUpdate;
import magicbees.main.utils.net.NetworkEventHandler;
public class TileEntityMagicApiary extends TileEntity implements ISidedInventory, IBeeHousing, ITileEntityAuraCharged {
public class TileEntityMagicApiary extends TileEntity implements ISidedInventory, IApiary, ITileEntityAuraCharged {
// Constants
private static final int AURAPROVIDER_SEARCH_RADIUS = 6;
@@ -62,21 +57,13 @@ public class TileEntityMagicApiary extends TileEntity implements ISidedInventory
private BiomeGenBase biome;
private int breedingProgressPercent = 0;
private final IBeekeepingLogic beeLogic;
private final IErrorLogic errorLogic;
private final IBeeListener beeListener;
private final IBeeModifier beeModifier;
private final MagicApiaryInventory inventory;
private final IBeekeepingLogic beeLogic = BeeManager.beeRoot.createBeekeepingLogic(this);
private final IBeeListener beeListener = new ApiaryBeeListener(this);
private final IBeeModifier beeModifier = new MagicApiaryBeeModifier(this);
private final MagicApiaryInventory inventory = new MagicApiaryInventory(this);
private final IErrorLogic errorLogic = ForestryAPI.errorStateRegistry.createErrorLogic();
private final AuraCharges auraCharges = new AuraCharges();
public TileEntityMagicApiary() {
beeLogic = BeeManager.beeRoot.createBeekeepingLogic(this);
beeModifier = new MagicApiaryBeeModifier(this);
beeListener = new MagicApiaryBeeListener(this);
inventory = new MagicApiaryInventory(this);
errorLogic = ForestryAPI.errorStateRegistry.createErrorLogic();
}
@Override
public Iterable<IBeeModifier> getBeeModifiers() {
List<IBeeModifier> beeModifiers = new ArrayList<IBeeModifier>();
@@ -101,12 +88,13 @@ public class TileEntityMagicApiary extends TileEntity implements ISidedInventory
}
@Override
public IBeekeepingLogic getBeekeepingLogic() {
return beeLogic;
public IApiaryInventory getApiaryInventory() {
return inventory;
}
public void setOwner(EntityPlayer player) {
this.ownerProfile = player.getGameProfile();
@Override
public IBeekeepingLogic getBeekeepingLogic() {
return beeLogic;
}
@Override
@@ -236,14 +224,6 @@ public class TileEntityMagicApiary extends TileEntity implements ISidedInventory
return (breedingProgressPercent * i) / 100;
}
public int getTemperatureScaled(int i) {
return Math.round(i * (getExactTemperature() / 2));
}
public int getHumidityScaled(int i) {
return Math.round(i * getExactHumidity());
}
/* Saving and loading */
@Override
public void writeToNBT(NBTTagCompound compound) {
@@ -272,10 +252,6 @@ public class TileEntityMagicApiary extends TileEntity implements ISidedInventory
return event.getPacket();
}
public float getExactTemperature() {
return getBiome().getFloatTemperature(xCoord, yCoord, zCoord);
}
public float getExactHumidity() {
return getBiome().rainfall;
}
@@ -480,156 +456,6 @@ public class TileEntityMagicApiary extends TileEntity implements ISidedInventory
return inventory.canExtractItem(i, itemStack, i1);
}
private static class MagicApiaryInventory implements IBeeHousingInventory {
public static final int SLOT_QUEEN = 0;
public static final int SLOT_DRONE = 1;
public static final int SLOT_FRAME_START = 2;
public static final int SLOT_FRAME_COUNT = 3;
public static final int SLOT_PRODUCTS_START = 5;
public static final int SLOT_PRODUCTS_COUNT = 7;
private final TileEntityMagicApiary magicApiary;
private ItemStack[] items;
public MagicApiaryInventory(TileEntityMagicApiary magicApiary) {
this.magicApiary = magicApiary;
this.items = new ItemStack[12];
}
@Override
public ItemStack getQueen() {
return magicApiary.getStackInSlot(SLOT_QUEEN);
}
@Override
public ItemStack getDrone() {
return magicApiary.getStackInSlot(SLOT_DRONE);
}
@Override
public void setQueen(ItemStack itemstack) {
magicApiary.setInventorySlotContents(SLOT_QUEEN, itemstack);
}
@Override
public void setDrone(ItemStack itemstack) {
magicApiary.setInventorySlotContents(SLOT_DRONE, itemstack);
}
@Override
public boolean addProduct(ItemStack product, boolean all) {
int countAdded = ItemStackUtils
.addItemToInventory(magicApiary, product, SLOT_PRODUCTS_START, SLOT_PRODUCTS_COUNT);
if (all) {
return countAdded == product.stackSize;
} else {
return countAdded > 0;
}
}
public int getSizeInventory() {
return items.length;
}
public ItemStack getStackInSlot(int i) {
return items[i];
}
public void setInventorySlotContents(int i, ItemStack itemStack) {
items[i] = itemStack;
if (itemStack != null && itemStack.stackSize > getInventoryStackLimit()) {
itemStack.stackSize = getInventoryStackLimit();
}
}
public int[] getAccessibleSlotsFromSide(int side) {
if (side == 0 || side == 1) {
return new int[] { SLOT_QUEEN, SLOT_DRONE };
} else {
int[] slots = new int[SLOT_PRODUCTS_COUNT];
for (int i = 0, slot = SLOT_PRODUCTS_START; i < SLOT_PRODUCTS_COUNT; ++i, ++slot) {
slots[i] = slot;
}
return slots;
}
}
public boolean canInsertItem(int slot, ItemStack itemStack, int side) {
if (slot == SLOT_QUEEN && BeeManager.beeRoot.isMember(itemStack)
&& !BeeManager.beeRoot.isDrone(itemStack)) {
return true;
} else if (slot == SLOT_DRONE && BeeManager.beeRoot.isDrone(itemStack)) {
return true;
}
return slot == SLOT_DRONE && BeeManager.beeRoot.isDrone(itemStack);
}
public boolean canExtractItem(int slot, ItemStack itemStack, int side) {
switch (slot) {
case SLOT_FRAME_START:
case SLOT_FRAME_START + 1:
case SLOT_FRAME_START + 2:
return false;
default:
return true;
}
}
public int getInventoryStackLimit() {
return 64;
}
public Collection<IHiveFrame> getFrames() {
Collection<IHiveFrame> hiveFrames = new ArrayList<IHiveFrame>(SLOT_FRAME_COUNT);
for (int i = SLOT_FRAME_START; i < SLOT_FRAME_START + SLOT_FRAME_COUNT; i++) {
ItemStack stackInSlot = magicApiary.getStackInSlot(i);
if (stackInSlot == null) {
continue;
}
Item itemInSlot = stackInSlot.getItem();
if (itemInSlot instanceof IHiveFrame) {
hiveFrames.add((IHiveFrame) itemInSlot);
}
}
return hiveFrames;
}
public void writeToNBT(NBTTagCompound compound) {
NBTTagList itemsNBT = new NBTTagList();
for (int i = 0; i < items.length; i++) {
ItemStack itemStack = items[i];
if (itemStack != null) {
NBTTagCompound item = new NBTTagCompound();
item.setByte("Slot", (byte) i);
itemStack.writeToNBT(item);
itemsNBT.appendTag(item);
}
}
compound.setTag("Items", itemsNBT);
}
public void readFromNBT(NBTTagCompound compound) {
NBTTagList items = compound.getTagList("Items", Constants.NBT.TAG_COMPOUND);
for (int i = 0; i < items.tagCount(); i++) {
NBTTagCompound item = items.getCompoundTagAt(i);
int slot = item.getByte("Slot");
if (slot >= 0 && slot < getSizeInventory()) {
setInventorySlotContents(slot, ItemStack.loadItemStackFromNBT(item));
}
}
}
}
private static class MagicApiaryBeeModifier extends DefaultBeeModifier {
private final TileEntityMagicApiary magicApiary;
@@ -640,29 +466,17 @@ public class TileEntityMagicApiary extends TileEntity implements ISidedInventory
@Override
public float getMutationModifier(IBeeGenome genome, IBeeGenome mate, float currentModifier) {
float mod = 1.0f;
if (magicApiary.isMutationBoosted()) {
mod = mod * 2f;
}
return mod;
return magicApiary.isMutationBoosted() ? 2f : 1f;
}
@Override
public float getLifespanModifier(IBeeGenome genome, IBeeGenome mate, float currentModifier) {
float mod = 1.0f;
if (magicApiary.isDeathRateBoosted()) {
mod = mod / 2f;
}
return mod;
return magicApiary.isDeathRateBoosted() ? 2f : 1f;
}
@Override
public float getProductionModifier(IBeeGenome genome, float currentModifier) {
float mod = -0.1f;// was 0.9x, now -0.1
if (magicApiary.isProductionBoosted()) {
mod = 0.8f;// was 1.8x, now +0.8
}
return mod;
return magicApiary.isProductionBoosted() ? 0.8f : -0.1f;
}
@Override
@@ -670,40 +484,4 @@ public class TileEntityMagicApiary extends TileEntity implements ISidedInventory
return 0.8f;
}
}
private static class MagicApiaryBeeListener extends DefaultBeeListener {
private final TileEntityMagicApiary magicApiary;
public MagicApiaryBeeListener(TileEntityMagicApiary magicApiary) {
this.magicApiary = magicApiary;
}
@Override
public void wearOutEquipment(int amount) {
IBeekeepingMode beekeepingMode = BeeManager.beeRoot.getBeekeepingMode(magicApiary.getWorldObj());
int wear = Math.round(amount * beekeepingMode.getWearModifier());
for (int i = MagicApiaryInventory.SLOT_FRAME_START; i
< MagicApiaryInventory.SLOT_FRAME_START + MagicApiaryInventory.SLOT_FRAME_COUNT; i++) {
ItemStack hiveFrameStack = magicApiary.getStackInSlot(i);
if (hiveFrameStack == null) {
continue;
}
Item hiveFrameItem = hiveFrameStack.getItem();
if (!(hiveFrameItem instanceof IHiveFrame)) {
continue;
}
IHiveFrame hiveFrame = (IHiveFrame) hiveFrameItem;
ItemStack queenStack = magicApiary.getBeeInventory().getQueen();
IBee queen = BeeManager.beeRoot.getMember(queenStack);
ItemStack usedFrame = hiveFrame.frameUsed(magicApiary, hiveFrameStack, queen, wear);
magicApiary.setInventorySlotContents(i, usedFrame);
}
}
}
}
@@ -605,7 +605,7 @@ tc.research_page.MB_EssenceLife.1=Einfach zu kreieren, durch Magie, hat diese Es
tc.research_name.MB_EssenceDeath=Essenz eines Flachen Grabes
tc.research_text.MB_EssenceDeath=[MB] Nicht ganz tot.
tc.reseacrh_page.MB_EssenceDeath.1=Die Essenz eines Flachen Grabes bündelt den Tod vieler... "natürlicher" Kreaturen, die die Welt bewandern: Zombies, Skelette, all solche Wesen. Wenn du Bienen dieser Energie aussetzt, werden sie langsam und träge, und ihre Lebensdauer sinkt. Einige Apimanten denken, das Nutzen von mit dieser Essenz erfüllten Rähmchen wäre grausam, jedoch sehen andere es als natürlichen Teil normaler Bienenzucht, dabei bestrebt, ihre perfekte Sorte Bienen irgendwann innerhalb IHRER Lebenszeit zu kreieren. <BR> Die Gilde der Sicherheit der Apimanten empfiehlt Umgang mit Telekinese oder einer sehr langen Zange.
tc.research_page.MB_EssenceDeath.1=Die Essenz eines Flachen Grabes bündelt den Tod vieler... "natürlicher" Kreaturen, die die Welt bewandern: Zombies, Skelette, all solche Wesen. Wenn du Bienen dieser Energie aussetzt, werden sie langsam und träge, und ihre Lebensdauer sinkt. Einige Apimanten denken, das Nutzen von mit dieser Essenz erfüllten Rähmchen wäre grausam, jedoch sehen andere es als natürlichen Teil normaler Bienenzucht, dabei bestrebt, ihre perfekte Sorte Bienen irgendwann innerhalb IHRER Lebenszeit zu kreieren. <BR> Die Gilde der Sicherheit der Apimanten empfiehlt Umgang mit Telekinese oder einer sehr langen Zange.
tc.research_name.MB_EssenceArmor=Essenz der Immerwährenden Haltbarkeit
tc.research_text.MB_EssenceArmor=[MB] The rubber to your glue
@@ -38,6 +38,7 @@ item.beeRing.name=Collector's Bee Ring
tile.effectJar.name=Bee Collector's Jar
tile.magicApiary.name=Magic Apiary
tile.visAuraProvider.name=Vis Apiary Booster
tile.apimancersDrainer.name=Apimancer's Drainer
tile.manaAuraProvider.name=Mana Apiary Booster
tile.hive.curious.name=Curious Hive
tile.hive.unusual.name=Unusual Hive
@@ -403,6 +404,8 @@ magicbees.speciesTCOrder=Ordered
magicbees.speciesTCOrder.description=Their combs are nearly perfect, each part mirroring the pattern of the whole.|Apinomicon
magicbees.speciesTCChaos=Chaotic
magicbees.speciesTCChaos.description=The social structure of their hives seems to vary day by day, making it more flexible and resillient than others, but significantly more unpredictable.|Apinomicon
magicbees.speciesTCEssentia=Essentia
magicbees.speciesTCEssentia.description="Why spam Essentia Condensers when you can just use bees?"|Quantumly, Condenser Enjoyer
magicbees.speciesTCVis=Vis
magicbees.speciesTCVis.description="They can feel changes in the aura, but are not yet able to affect it."|Azanor, research notes
magicbees.speciesTCRejuvenating=Rejuvenating
@@ -656,7 +659,7 @@ tc.research_page.MB_EssenceLife.1=Simple to create by means of magic, this essen
tc.research_name.MB_EssenceDeath=Essence of a Shallow Grave
tc.research_text.MB_EssenceDeath=Not quite six feet under.
tc.reseacrh_page.MB_EssenceDeath.1=The Essence of a Shallow Grave channels the death of many of the ... "natural" creatures that wander the world: Zombies, Skeletons, those sorts of things. Exposing bees to this energy has the effect of making them slow and sluggish, and curtails the extent of their lifespan. Some Apimancers consider using frames imbued with these Essences to be cruel, however, others view it as a natrual part of normal beekeeping, with an eye to creating their perfect strain of bees sometime within THEIR lifetime. <BR> The Apimancer's Guild of Safety recommends handling them with telekenisis or very long tongs.
tc.research_page.MB_EssenceDeath.1=The Essence of a Shallow Grave channels the death of many of the ... "natural" creatures that wander the world: Zombies, Skeletons, those sorts of things. Exposing bees to this energy has the effect of making them slow and sluggish, and curtails the extent of their lifespan. Some Apimancers consider using frames imbued with these Essences to be cruel, however, others view it as a natrual part of normal beekeeping, with an eye to creating their perfect strain of bees sometime within THEIR lifetime. <BR> The Apimancer's Guild of Safety recommends handling them with telekenisis or very long tongs.
tc.research_name.MB_EssenceArmor=Essence of Everlasting Durability
tc.research_text.MB_EssenceArmor=The rubber to your glue
@@ -682,6 +685,10 @@ tc.research_name.MB_VisAuraProvider=Vis Apiary Booster
tc.research_text.MB_VisAuraProvider=Vis? What about Bis?
tc.research_page.MB_VisAuraProvider.1=Infusing Unusual Pollen with vis and combining it with gold creates an unusual crystal that, when fed centivis from an aura node, creates an energizing aura that bees are naturally attracted to when attuned to the environment within a Magic Apiary.<LINE>§3Aqua§0 CV will double mutation rate<BR>§8Perditio§0 CV will halve lifespan<BR>§6Aer§0 CV will double production rate
tc.research_name.MB_ApimancersDrainer=Apimancer's Drainer
tc.research_text.MB_ApimancersDrainer=How long will your queen last?
tc.research_page.MB_ApimancersDrainer.1=The Apimancer's Drainer is an innovative device in the field of Apimancy, designed to extract essentia from the life force of bees. It is placed beneath an apiary, establishing a direct connection with the apiary above.<BR>To determine the type of essentia it produces, the Drainer is attuned by tapping it with the desired essentia.<BR>Once attuned, the Drainer converts the life energy of the queen into the selected essentia...
tc.research_name.MB_ScoopVoid=Void Scoop
tc.research_text.MB_ScoopVoid=The dark net
tc.research_page.MB_ScoopVoid.1=Void metal is a curious thing, and it's time to see what it can bring to Apimancy. Its self-regenerative properties have seeped their way into the net as well, creating a most unsettling mesh.<BR>Hopefully it won't affect the bees too much...
@@ -296,14 +296,14 @@ magicbees.speciesApatite=Апатитовая
magicbees.speciesApatite.description=День и ночь жужжат. Я забаррикадировал окна и спрятался в подвале, но пронзительный шум апатин пчёл проникал в стены и доводил меня до безумия.|Beekeeping 101
magicbees.speciesMutable=Изменчивая
magicbees.speciesMutable.description=Changeable in nature, mercurial in personality.|Apinomicon
magicbees.speciesMutable.description=Изменчивая по натуре, непостоянная по характеру.|Apinomicon
magicbees.speciesTransmuting=Трансмутирующая
magicbees.speciesTransmuting.description="I could've sworn this was made out of stone yesterday!"|Sengir, Mad Apiarist
magicbees.speciesTransmuting.description="Я мог бы поклясться, что вчера это было сделано из камня!"|Sengir, Mad Apiarist
magicbees.speciesCrumbling=Разрушающая
magicbees.speciesCrumbling.description=They have a corrosive effect on their surroundings, rapidly aging them.|Apinomicon
magicbees.speciesCrumbling.description=Они оказывают разъедающее воздействие на окружающую среду, быстро старея.|Apinomicon
magicbees.speciesInvisible=Невидимая
magicbees.speciesInvisible.description=Easy to miss, their glassy body is difficult to spot in the countryside.|Apinomicon
magicbees.speciesInvisible.description=Их легко не заметить, их стекловидное тело трудно заметить в сельской местности.|Apinomicon
magicbees.speciesTCAir=Аура
magicbees.speciesTCAir.description="Они работают так быстро, что это захватывает дух."|Sengir, Mad Apiarist
@@ -312,7 +312,7 @@ magicbees.speciesTCFire.description=Внимание: содержание ул
magicbees.speciesTCWater=Аква
magicbees.speciesTCWater.description="Я пытался размножить их однажды, но я получил мыло."|MysteriousAges, Apprentice Thaumaturge
magicbees.speciesTCEarth=Солим
magicbees.speciesTCEarth.description="You're really gonna dig these bees, but watch out - they bore quite easily."|MysteriousAges, Apprentice Comedian
magicbees.speciesTCEarth.description="Ты действительно собираешься выкопать этих пчел, но будь осторожен - они довольно легко размножаются".|MysteriousAges, Apprentice Comedian
magicbees.speciesTCOrder=Праекантатио
magicbees.speciesTCOrder.description=Пчеловодство это магия!|Apinomicon, Preface
magicbees.speciesTCChaos=Абсолютные
@@ -326,7 +326,7 @@ magicbees.speciesTCFlux.description="Я думал, что они помогут
magicbees.speciesTCAttractive=Привлекательные
magicbees.speciesTCAttractive.description=Претерпев странную мутацию, эти пчёлы в настоящее время привлекают магию к себе.|Apinomicon
magicbees.speciesTCRejuvenating=Rejuvenating
magicbees.speciesTCRejuvenating.description=The hum of the hive is magical, and over time is absorbed by nearby nodes.|Apinomicon
magicbees.speciesTCRejuvenating.description=Гул улья волшебный, и со временем он поглощается близлежащими узлами.|Apinomicon
magicbees.speciesTCBrainy=Умные
magicbees.speciesTCBrainy.description=Их соты могут быть вонючими и плохо пахнуть, но их интеллект хорошо развит.|Apinomicon
magicbees.speciesTCWispy=Виспи
@@ -341,40 +341,40 @@ magicbees.speciesTCPork=Свиные
magicbees.speciesTCPork.description="Хрю, хрю. Эм.... бззз?"|Confused bee
magicbees.speciesEEMinium=Алхимические
magicbees.speciesEEMinium.description=Это может быть возможным, чтобы воспользоваться их ртутной и изменчивой природой.|Apinomicon
magicbees.speciesAMEssence=Essence
magicbees.speciesAMEssence.description=Drawing from motes of dust in the air and ground, they concentrate the energy
magicbees.speciesAMQuintessence=Quintessential
magicbees.speciesAMQuintessence.description=The heart of magic lies dormant in all things.|Apinomicon, preface
magicbees.speciesAMEssence=Эссенция
magicbees.speciesAMEssence.description=Извлекая энергию из пылинок в воздухе и на земле, они концентрируют энергию
magicbees.speciesAMQuintessence=Квинтэссенция
magicbees.speciesAMQuintessence.description=Сердце магии дремлет во всех вещах.|Apinomicon, preface
magicbees.speciesAMEarth=Erde
magicbees.speciesAMEarth.description=Empowered by the Earth, their produce is infused with its essence.|Apinomicon
magicbees.speciesAMEarth.description=Наделенные силой Земли, их продукты пропитаны ее сущностью.|Apinomicon
magicbees.speciesAMAir=Luft
magicbees.speciesAMAir.description=Swift as the wind, and lighter than air.|Apinomicon
magicbees.speciesAMAir.description=Быстрые, как ветер, и легче воздуха.|Apinomicon
magicbees.speciesAMFire=Feuer
magicbees.speciesAMFire.description=Their colony can reach temperatures that boil water and melt metals.|Apinomicon
magicbees.speciesAMFire.description=Их колония может достигать температур, при которых кипит вода и плавятся металлы.|Apinomicon
magicbees.speciesAMWater=Wasser
magicbees.speciesAMWater.description=Through prolonged exposure to liquids, their combs are quite wet and heavy.|Apinomicon
magicbees.speciesAMWater.description=Из-за длительного воздействия жидкостей их гребни становятся довольно влажными и тяжелыми.|Apinomicon
magicbees.speciesAMLightning=Blitz
magicbees.speciesAMLightning.description=They can travel vast distances in a blink, and are known for starting many wildfires.|Apinomicon
magicbees.speciesAMLightning.description=Они могут преодолевать огромные расстояния в мгновение ока и известны тем, что устраивают множество лесных пожаров.|Apinomicon
magicbees.speciesAMPlant=Staude
magicbees.speciesAMPlant.description=They have an affinity for all that is green and grows.|Apinomicon
magicbees.speciesAMPlant.description=Они питают слабость ко всему зеленому и растущему.|Apinomicon
magicbees.speciesAMIce=Eis
magicbees.speciesAMIce.description="They keep stealing stuff from me, and I never see them. They're far too slippery."|MysteriousAges, incorrigible punster
magicbees.speciesAMIce.description="Они продолжают красть у меня вещи, и я никогда их не вижу. Они слишком скользкие".|MysteriousAges, incorrigible punster
magicbees.speciesAMMagma=Magma
magicbees.speciesAMMagma.description=As they fly by, they sear the surface of the landscape, eventually scouring all plants and fragile minerals away.|Apinomicon
magicbees.speciesAMMagma.description=Пролетая мимо, они опаляют поверхность ландшафта, в конечном итоге уничтожая все растения и хрупкие минералы.|Apinomicon
magicbees.speciesAMArcane=Arkanen
magicbees.speciesAMArcane.description="Curious creatures, though their produce is quite useful."|Mithion, Adept
magicbees.speciesAMArcane.description="Любопытные существа, хотя их продукция довольно полезна".|Mithion, Adept
magicbees.speciesAMVortex=Вихревые
magicbees.speciesAMVortex.description=Ненасытны маной, они могут быть опасны для любого заклинателя.|Apinomicon
magicbees.speciesAMWight=Wight
magicbees.speciesAMWight.description="They attract magical spirits; not always docile."|Mithion, Adept
magicbees.speciesAMWight.description=Они привлекают волшебных духов; не всегда послушны".|Mithion, Adept
magicbees.speciesTEBlizzy=Blizzy
magicbees.speciesTEBlizzy.description=Frigid and cold, like miniature snowmen.|Apinomicon
magicbees.speciesTEBlizzy.description=Холодные, как миниатюрные снеговики.|Apinomicon
magicbees.speciesTEGelid=Gelid
magicbees.speciesTEGelid.description=Liquid coolant producers.|Apinomicon
magicbees.speciesTEGelid.description=Производители жидких охлаждающих жидкостей.|Apinomicon
magicbees.speciesTEDante=Dante
magicbees.speciesTEDante.description=Mixing bees in an inferno produces surprising results.|Apinomicon
magicbees.speciesTEDante.description=Смешивание пчел в аду дает удивительные результаты.|Apinomicon
magicbees.speciesTEPyro=Pyro
magicbees.speciesTEPyro.description=You Monster.|Everyone, to you.
magicbees.speciesTEPyro.description=Ты монстр.|Everyone, to you.
magicbees.speciesTEElectrum=Electrum
magicbees.speciesTEElectrum.description=...|Apinomicon
magicbees.speciesTEPlatinum=Platinum
@@ -388,9 +388,9 @@ magicbees.speciesTEBronze.description=...|Apinomicon
magicbees.speciesTECoal=Carbon
magicbees.speciesTECoal.description=...|Apinomicon
magicbees.speciesTEDestabilized=Destabilized
magicbees.speciesTEDestabilized.description=These bees started out unstable; they didn't get better with time.|Apinomicon
magicbees.speciesTEDestabilized.description=Эти пчелы изначально были нестабильными; со временем они не становились лучше.|Apinomicon
magicbees.speciesTELux=Lux
magicbees.speciesTELux.description=Let there be light...|Apinomicon
magicbees.speciesTELux.description=Да будет свет...|Apinomicon
magicbees.speciesTEWinsome=Winsome
magicbees.speciesTEWinsome.description=....|Apinomicon
magicbees.speciesTEEndearing=Endearing
@@ -454,7 +454,7 @@ classification.metallic.description=Они собирают фрагменты
classification.gem=Жемчужные
classification.gem.description=Они собирают фрагменты драгоценных камней в их сотах.|Apinomicon
classification.transmuting=Polymorphic
classification.transmuting.description=Reality seems to be somewhat volatile around bees of this family.|Apinomicon
classification.transmuting.description=Реальность, по-видимому, несколько изменчива в отношении пчел этого семейства.|Apinomicon
classification.thaumic=Таумические
classification.thaumic.description=Эти пчёлы имеют повышенную близость к магии и ауре.|Apinomicon
classification.fleshy=Мясистые
@@ -465,57 +465,57 @@ classification.essential=Ценные
classification.essential.description=Эти пчёлы имеют повышенную близость к аспектированной магии.|Apinomicon
tc.aspect.tempus=Time, Moment, Eternity
tc.research_category.MAGICBEES=Apimancy
tc.research_category.MAGICBEES=Магия пчеловодства
tc.research_name.MB_Root=Apimancy
tc.research_text.MB_Root=[MB] Adding some sparkle to your buzz.
tc.research_page.MB_Root.1=Welcome to Apimancy! As a budding keeper of magical bees, there are a few things you should know before diving in. As your acceptance letter to the Academy of Austere Apimancers has mentioned, there are several new tools available to discover. These include some improved versions of Forestry tools, each with their own particular quirks and new frames for your apiaries. <LINE> You may also discover that there are new bee strains available to discover, if you can coax them to live in certain conditions. The Forestry Escritoire will help you discover them and become the envy
tc.research_page.MB_Root.2=of your former, nonmagical colleagues. Also take note of the several new strains of wild bees that have appeared: these are the key to progressing into the magical lineages of your small winged charges.
tc.research_name.MB_Root=Магия пчеловодства
tc.research_text.MB_Root=[MB] Добавим немного блеска вашему кайфу.
tc.research_page.MB_Root.1=Добро пожаловать в Магия пчеловодства! Как начинающему хранителю волшебных пчел, есть несколько вещей, которые вы должны знать, прежде чем погрузиться в работу. Как упоминалось в вашем письме о приеме в Академию Суровых Пчеловодов, вам доступно несколько новых инструментов. К ним относятся несколько улучшенных версий инструментов для лесного хозяйства, каждая со своими особенностями, и новые рамки для ваших пасек. <LINE> Вы также можете обнаружить, что существуют новые штаммы пчел, которые можно обнаружить, если вам удастся уговорить их жить в определенных условиях. Секретер лесного хозяйства поможет вам обнаружить их и стать предметом зависти
tc.research_page.MB_Root.2=ваших бывших, не магических коллег. Также обратите внимание на несколько появившихся новых штаммов диких пчел: они являются ключом к развитию волшебных линий ваших маленьких крылатых подопечных.
tc.research_name.MB_LoreFragment=Фрагменты знаний
tc.research_text.MB_LoreFragment=[MB] Исследование? Скорее всего пчелиное исследование!
tc.research_page.MB_LoreFragment.1=While experimenting with bee breeds, you may run accross a strain whose intellectual capabilities are a match for your own. Well, maybe, however unlikely that is. It's possible that they may unearth some obscure reference or a snippet of information that your great intellect may have missed while exploiting the greater mysteries of the universe. <BR> Should your helpful buzzing friends happen to locate this sort of item for you, it may be possible to combine the scraps together into something a little more cohesive.
tc.research_page.MB_LoreFragment.1=Экспериментируя с породами пчел, вы можете наткнуться на штамм, интеллектуальные способности которого соответствуют вашим собственным. Что ж, возможно, как бы маловероятно это ни было. Вполне возможно, что они раскопают какую-нибудь неясную ссылку или фрагмент информации, которые ваш великий интеллект, возможно, упустил, исследуя великие тайны Вселенной. <BR> Если вашим услужливым жужжащим друзьям посчастливится найти для вас что-нибудь подобное, возможно, удастся объединить обрезки в нечто более цельное.
tc.research_name.MB_FrameMagic=Магическая рамка
tc.research_text.MB_FrameMagic=[MB] Появление магии в контекстах пчеловодства
tc.research_page.MB_FrameMagic.1=The Magic Frame is a simple improvement over your regular, run-of-the-mill Untreated Frames. Still fairly simple to produce, it is capable of lasting three times longer in an apiary than Untreated Frames before becoming unuseable. The enchantable properties of the Magic Frame enable it to be used with several of the special essences involved in Apimancy where other frames would reject the infusion of magics.
tc.research_page.MB_FrameMagic.1=Волшебная рамка - это простое усовершенствование по сравнению с обычными необработанными рамками. Несмотря на то, что она довольно проста в изготовлении, она способна прослужить на пасеке в три раза дольше, чем необработанные рамки, прежде чем придет в негодность. Зачаровывающие свойства Магической рамки позволяют использовать ее с несколькими особыми эссенциями, используемыми в Магии пчеловодства, там, где другие рамки отвергли бы вливание магии.
tc.research_name.MB_Scoop=Таумический сачок
tc.research_text.MB_Scoop=[MB] Используйте с осторожностью.
tc.research_page.MB_Scoop.1=Normal scoops are fragile, and prone to breakage. As an authority in Apimancy, you can do better. By adding some Thaumium to the handle, and lacing it with a measure of order, your new scoop will last up to three times longer! <BR> In addition, the Thaumium in the device will accept the Repair enchantment.
tc.research_page.MB_Scoop.1=Обычные сачки хрупкие и склонны к поломке. Как специалист по Магии пчеловедения, вы можете сделать лучше. Если добавить немного таумия в ручку и аккуратно зашнуровать ее, ваш новый сачок прослужит в три раза дольше! <BR> Кроме того, таумий в устройстве примет восстанавливающее заклинание.
tc.research_name.MB_Grafter=Таумический садовый нож
tc.research_text.MB_Grafter=[MB] Саженцы для каждого случая.
tc.research_page.MB_Grafter.1=Simple grafters are almost uselessly fragile, and while Proven Grafters are useful, the rarity of emeralds makes them annoying to procure. The solution? Make it yourself! <BR> The Thaumium Grafter, like the Thaumium Scoop, is a tougher, enchantable version of the most basic of the Arborimancer's tools. Use caution though, for although the Repair enchantment can be applied to the grafter, its unusual properties make it exhausting to use.
tc.research_page.MB_Grafter.1=Простой садовый нож почти бесполезно хрупок, и, хотя проверенные садовые ножи полезны, редкость садовый ножей затрудняет их приобретение. Решение? Сделай это сам! <BR> Таумический садовый нож, как и таумический сачок, представляет собой более жесткую, зачаровываемую версию самого простого из инструментов лесовода. Однако будьте осторожны, поскольку, хотя восстанавливающее заклинание может быть применено к прививщику, его необычные свойства делают его использование утомительным.
tc.research_name.MB_EssenceLife=Эссенция ложной жизни
tc.research_text.MB_EssenceLife=[MB] Роза с другим названием. . .
tc.research_page.MB_EssenceLife.1=Simple to create by means of magic, this essence has unusual properties when exposed to bees. When combined with an everyday apiary frame, it has the effect of greatly extending the lifespan of a working hive.
tc.research_page.MB_EssenceLife.1=Простая в приготовлении с помощью магии, эта эссенция обладает необычными свойствами при воздействии на пчел. В сочетании с обычной рамкой для пасеки она значительно продлевает срок службы рабочего улья.
tc.research_name.MB_EssenceDeath=Эссенция неглубокой могилы
tc.research_text.MB_EssenceDeath=[MB] Не совсем шесть футов под килем.
tc.reseacrh_page.MB_EssenceDeath.1=The Essence of a Shallow Grave channels the death of many of the ... "natural" creatures that wander the world: Zombies, Skeletons, those sorts of things. Exposing bees to this energy has the effect of making them slow and sluggish, and curtails the extent of their lifespan. Some Apimancers consider using frames imbued with these Essences to be cruel, however, others view it as a natrual part of normal beekeeping, with an eye to creating their perfect strain of bees sometime within THEIR lifetime. <BR> The Apimancer's Guild of Safety recommends handling them with telekenisis or very long tongs.
tc.research_page.MB_EssenceDeath.1=Эссенция неглубокой могилы приводит к смерти... "естественных" мобов, которые бродят по миру: зомби, скелеты и тому подобное. Воздействие этой энергии на пчел приводит к тому, что они становятся медлительными и неповоротливыми и сокращает продолжительность их жизни. Некоторые Маги пчеловодства считают использование рамок, пропитанных этими эссенциями, жестоким, однако другие рассматривают это как естественную часть обычного пчеловодства с прицелом на создание своего идеального сорта пчел когда-нибудь в течение ИХ жизни. <BR> Гильдия по безопасности Магического пчеловодства рекомендует обращаться с ними телекинезом или очень длинными щипцами.
tc.research_name.MB_EssenceArmor=Эссенция вечной прочности
tc.research_text.MB_EssenceArmor=[MB] Резина для Вашего клея
tc.research_page.MB_EssenceArmor.1=This is the distilled essence of protection, bound to last forever, or until the magics stored within it weaken and eventually break. But until then, it's invincible. Mostly. <BR> While Magic Frames are useful, they are a tad fragile. This essence takes the enchantments you weave into Magic frames to an entirely new level. Combine the essence with a magic frame, and it should have a vastly extended lifespan.
tc.research_page.MB_EssenceArmor.1=Это дистиллированная эссенция защиты, которая должна длиться вечно или до тех пор, пока хранящаяся в ней магия не ослабнет и, в конечном счете, не сломается. Но до тех пор она неуязвима. В основном. <BR> Хотя волшебные рамки полезны, они немного хрупкие. Эта эссенция выводит чары, которые вы вплетаете в магические рамки, на совершенно новый уровень. Соедините эссенцию с магической рамкой, и срок ее службы значительно увеличится.
tc.research_name.MB_EssenceUnstable=Эссенция изменчивого постоянства
tc.research_text.MB_EssenceUnstable=[MB] Гарантированная неуверенность
tc.research_page.MB_EssenceUnstable.1=Unstable by nature, the Essence of Fickle Permanence has the side effect of causing normally stable objects and systems to become somewhat unreliable. While this may mostly be a bad thing, Apimancers have discovered that exposing a hive to the essence has the duel effects of both causing the bees to work faster, and the offspring to have higher mutation rates.
tc.research_page.MB_EssenceUnstable.1=Нестабильная по своей природе эссенция Изменчивого постоянства имеет побочный эффект, заключающийся в том, что обычно стабильные объекты и системы становятся несколько ненадежными. Хотя в основном это может быть плохо, Маги пчеловодства обнаружили, что воздействие эссенции на улей имеет противоположный эффект: пчелы работают быстрее, а у потомства повышается частота мутаций.
tc.research_name.MB_EssenceTime=Эссенция утраченного времени
tc.research_text.MB_EssenceTime=[MB] No time like the unmoment
tc.research_page.MB_EssenceTime.1=Time is a fickle thing. It comes and it goes, but where exactly does it go to? As a respectable thaumaturge, it has become possible to trap these wasted moments and save them in a magical form. So, now that it is possible to collect extra time from the world, it seems only appropriate that they are used in a place that would be useful. It would be too dangerous to attempt to access these moments yourself for the moment, but perhaps it would be simple to allow your bees access to this untapped lump of time. <BR> By combining the essence with a Magic Frame as usual will suffice to extend the lifespan of bees in your keeping by several times.
tc.research_text.MB_EssenceTime=[MB] Нет времени лучше, чем безработица
tc.research_page.MB_EssenceTime.1=Время - непостоянная вещь. Оно приходит и уходит, но куда именно оно уходит? Как у уважаемого тауматурга, стало возможным улавливать эти потраченные впустую моменты и сохранять их в магической форме. Итак, теперь, когда можно собирать дополнительное время в мире, кажется уместным использовать его там, где это было бы полезно. Было бы слишком опасно пытаться получить доступ к этим моментам самостоятельно в данный момент, но, возможно, было бы просто предоставить вашим пчелам доступ к этому неиспользованному кусочку времени. <BR> Обычного сочетания эссенции с волшебной рамкой будет достаточно, чтобы продлить продолжительность жизни пчел в вашем хозяйстве в несколько раз.
tc.research_name.MB_DimensionalSingularity=Пространственная сингулярность
tc.research_text.MB_DimensionalSingularity=[MB] Quantum flux for them, unlimited storage for you
tc.research_page.MB_DimensionalSingularity.1=While it may appear similar to the Portable Hole, it serves as a two-way link with another place, which is... probably uninhabited. It should be possible to utilize these singularities to store materials outside of your dimensional understanding - which of course means that they won't clutter up your inventory. As they are now, they are not particularly useful, but there should be ways to unlock their potential.
tc.research_text.MB_DimensionalSingularity=[MB] Квантовый поток для них, неограниченное хранилище для вас
tc.research_page.MB_DimensionalSingularity.1=Хотя это может показаться похожим на Переносную дыру, оно служит двусторонней связью с другим местом, которое... вероятно, необитаемо. Должно быть возможно использовать эти особенности для хранения материалов за пределами вашего понимания измерений - что, конечно, означает, что они не будут загромождать ваш инвентарь. В нынешнем виде они не особенно полезны, но должны быть способы раскрыть их потенциал.
tc.research_name.MB_EssenceOblivion=Эссенция бесконечного равнодушия
tc.research_text.MB_EssenceOblivion=[MB] Cast aside with malice
tc.research_page.MB_EssenceOblivion.1=Breeding bees for mutations can be aggrivating, especially whith long-lived species. With a little cleverness and only the slightest hint of smugness, you have found a way to utilize the Dimensional Singularity in a manner that only sucks away the life force of your tiny flying friends, bit by bit. Well, maybe significant amounts all at once. It's probably not going to affect them too badly. <BR> It may be somewhat tricky to obtain more than one of the §5Dragon Eggs§0 nessecary to obtain more than one of these. Perhaps there is a bee species that can assist with the limitation.
tc.research_text.MB_EssenceOblivion=[MB] Отброшенный со злобой
tc.research_page.MB_EssenceOblivion.1=Разведение пчел для мутаций может быть агрессивным, особенно для долгоживущих видов. Проявив немного сообразительности и лишь малейший намек на самодовольство, вы нашли способ использовать Пространственную сингулярность таким образом, который только высасывает жизненную силу ваших крошечных летающих друзей, понемногу. Ну, может быть, значительные количества сразу. Вероятно, это не повлияет на них слишком сильно. <BR> Возможно, будет несколько сложно получить более одного из §5драконьих яиц§0 необходимо получить более одного из них. Возможно, есть вид пчел, который может помочь с этим ограничением.
for.bees.custom.drone.magicbees.speciesMystical=Мистический трутень
for.bees.custom.beealyzer.drone.magicbees.speciesMystical=Мистический
@@ -641,4 +641,4 @@ for.bees.custom.drone.magicbees.speciesCrumbling=Разрушающий трут
for.bees.custom.beealyzer.drone.magicbees.speciesCrumbling=Разрушающий
for.bees.custom.drone.magicbees.speciesInvisible=Невидимый трутень
for.bees.custom.beealyzer.drone.magicbees.speciesInvisible=Невидимый
for.bees.custom.beealyzer.drone.magicbees.speciesInvisible=Невидимый
@@ -642,7 +642,7 @@ tc.research_page.MB_EssenceLife.1=由魔力所创造,这种源质在暴露在蜜
tc.research_name.MB_EssenceDeath=暗影之墓源质
tc.research_text.MB_EssenceDeath=[MB] 离地六英尺不足.
tc.reseacrh_page.MB_EssenceDeath.1=暗影之墓源质引导着无数游荡于这个世界的..."自然"生物,走向死亡:僵尸, 骷髅, 诸如此类.暴露于这种能量下的蜜蜂会越来越迟缓, 寿命也会随之缩短.一部分神秘养蜂家认为使用浸有此种源质的框架是一种十分残忍的行为,然而, 也有其他观点认为这是常规养蜂中不可避免的一部分, 有时还可以让那些蜜蜂们在它们有限的生命周期里紧张工作起来.<BR> 神秘养蜂学安全指南章程中建议使用念力或者特别长的钳子来拿取此框架.
tc.research_page.MB_EssenceDeath.1=暗影之墓源质引导着无数游荡于这个世界的..."自然"生物,走向死亡:僵尸, 骷髅, 诸如此类.暴露于这种能量下的蜜蜂会越来越迟缓, 寿命也会随之缩短.一部分神秘养蜂家认为使用浸有此种源质的框架是一种十分残忍的行为,然而, 也有其他观点认为这是常规养蜂中不可避免的一部分, 有时还可以让那些蜜蜂们在它们有限的生命周期里紧张工作起来.<BR> 神秘养蜂学安全指南章程中建议使用念力或者特别长的钳子来拿取此框架.
tc.research_name.MB_EssenceArmor=恒久不灭源质
tc.research_text.MB_EssenceArmor=[MB] 你胶水上的橡胶
@@ -493,7 +493,7 @@ tc.research_page.MB_EssenceLife.1=Simple to create by means of magic, this essen
tc.research_name.MB_EssenceDeath=暗影之墓源質
tc.research_text.MB_EssenceDeath=[MB] Not quite six feet under.
tc.reseacrh_page.MB_EssenceDeath.1=The Essence of a Shallow Grave channels the death of many of the ... "natural" creatures that wander the world: Zombies, Skeletons, those sorts of things. Exposing bees to this energy has the effect of making them slow and sluggish, and curtails the extent of their lifespan. Some Apimancers consider using frames imbued with these Essences to be cruel, however, others view it as a natrual part of normal beekeeping, with an eye to creating their perfect strain of bees sometime within THEIR lifetime. <BR> The Apimancer's Guild of Safety recommends handling them with telekenisis or very long tongs.
tc.research_page.MB_EssenceDeath.1=The Essence of a Shallow Grave channels the death of many of the ... "natural" creatures that wander the world: Zombies, Skeletons, those sorts of things. Exposing bees to this energy has the effect of making them slow and sluggish, and curtails the extent of their lifespan. Some Apimancers consider using frames imbued with these Essences to be cruel, however, others view it as a natrual part of normal beekeeping, with an eye to creating their perfect strain of bees sometime within THEIR lifetime. <BR> The Apimancer's Guild of Safety recommends handling them with telekenisis or very long tongs.
tc.research_name.MB_EssenceArmor=恆久不滅源質
tc.research_text.MB_EssenceArmor=[MB] The rubber to your glue
Binary file not shown.

After

Width:  |  Height:  |  Size: 348 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 348 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 378 B