Compare commits

...
Author SHA1 Message Date
Martin Robertz 4eb810c4ac Merge branch 'master' into dev 2025-11-05 18:16:43 +01:00
Martin Robertz 417c231cf2 Merge remote-tracking branch 'SST-03/patch-1' into dev 2025-11-05 18:16:40 +01:00
Martin Robertz f881470241 update 2025-11-05 18:15:32 +01:00
koolkrafter5 d4bd32c67b Add hint text for Tempus (#57) 2025-11-05 06:52:38 +00:00
SST-03 88f97a6e83 Merge branch 'master' into patch-1 2025-10-24 12:49:48 +08:00
Martin Robertz d97b462cdc Merge remote-tracking branch 'SST-03/patch-1' into dev
# Conflicts:
#	dependencies.gradle
2025-10-02 01:15:23 +02:00
Martin Robertz 60607bc521 update 2025-10-02 01:13:16 +02:00
SST-03 7ce76d77cd Update TileEntityApimancersDrainerCommon.java 2025-09-29 17:03:38 +08:00
SST-03 b4da6ce38f Update dependencies.gradle 2025-09-29 16:30:04 +08:00
SST-03 49a39bbd6c Update settings.gradle 2025-09-29 16:15:29 +08:00
SST-03 5c0169b7ea Update TileEntityApimancersDrainerCommon.java 2025-09-29 15:51:56 +08:00
Martin Robertz 2e7e1a3efc update 2025-06-08 10:51:18 +02:00
Nikolay S. 0bd57ed988 Add missing equals sign. (#55) 2025-06-08 05:31:53 +00:00
Martin Robertz eccceab233 update 2025-05-16 22:03:38 +02:00
Caedis e5d696f210 Replace Baubles with Baubles Expanded (#54) 2025-05-13 07:42:13 -05:00
Martin Robertz 0f59e8b4ef update 2025-03-22 12:32:24 +01:00
Yannick Marcotte-Gourde 7248bac5d0 Give Enchanted Earth some minimal hardness (#52) 2025-03-22 12:26:03 +01:00
Maya 81cb972fff update 2025-02-25 21:11:41 -06:00
FrostyFire1 9589da0f00 Fix hibeescus mana drain (#51) 2025-02-25 21:11:31 -06:00
Dream Master b5cf82b574 update 2025-01-02 13:32:42 +01:00
mM4riandMartin Robertz c4cb9a19c6 Fix crash for crumbling/transmuting effect if effect range is 0 (#49)
Co-authored-by: Martin Robertz <[email protected]>
2025-01-02 12:05:18 +01:00
glowredman 8fb3407357 Add Localizations (#50) 2025-01-02 12:03:06 +01:00
Martin Robertz 001f1b27f6 update 2024-09-12 08:22:10 +02:00
chochem 6429eea5d6 Merge pull request #48 from chochem/add-null-check
Add a couple of null checks
2024-09-11 18:27:58 +01:00
chochem 3ff6e91053 second null check 2024-09-11 18:07:25 +01:00
chochem cdf3046e61 sa 2024-09-11 17:59:35 +01:00
chochem 05476997e1 add null check to allow duplicate apatite removal 2024-09-11 17:58:27 +01:00
boubou19 c2cafd4a98 Merge pull request #47 from GTNewHorizons/rename
The renaming
2024-09-03 16:52:03 +02:00
NotAPenguin e9606af217 rename 2024-09-03 14:43:39 +02:00
Dream Master c3abd86907 update 2024-07-06 12:52:27 +07:00
Martin Robertz ddac6aeb67 Merge pull request #46 from Quantumlyy/patch-bee-speed-modifier
Patch production multiplier to account for difficulty and genome
2024-07-06 10:36:48 +07:00
Quantumlyy 31c130ebae adjust modifier calculations 2024-07-03 15:06:42 +02:00
Martin Robertz 77d5bcf6d1 update 2024-05-31 19:52:13 +02:00
Martin Robertz b43e100d6f Merge pull request #45 from ClassixX/master
Update MagicApiaryInventory.java
2024-05-31 19:51:01 +02:00
ClassixX 3483b613aa Update MagicApiaryInventory.java
Changed sidedness to match forestry apiary and fixed canExtractItem to return true for the product slots
2024-05-29 20:09:36 +02:00
22 changed files with 130 additions and 125 deletions

No files matched your search

-51
View File
@@ -1,51 +0,0 @@
#!/usr/bin/env bash
# bashsupport disable=BP5006 # Global environment variables
RUNDIR="run" \
CRASH="crash-reports" \
SERVERLOG="server.log"
# enable nullglob to get 0 results when no match rather than the pattern
shopt -s nullglob
# store matches in array
crash_reports=("$RUNDIR/$CRASH/crash"*.txt)
# if array not empty there are crash_reports
if [ "${#crash_reports[@]}" -gt 0 ]; then
# get the latest crash_report from array
latest_crash_report="${crash_reports[-1]}"
{
printf 'Latest crash report detected %s:\n' "${latest_crash_report##*/}"
cat "$latest_crash_report"
} >&2
exit 1
fi
if grep --quiet --fixed-strings 'Fatal errors were detected' "$SERVERLOG"; then
{
printf 'Fatal errors detected:\n'
cat server.log
} >&2
exit 1
fi
if grep --quiet --fixed-strings 'The state engine was in incorrect state ERRORED and forced into state SERVER_STOPPED' \
"$SERVERLOG"; then
{
printf 'Server force stopped:'
cat server.log
} >&2
exit 1
fi
if ! grep --quiet --perl-regexp --only-matching '.+Done \(.+\)\! For help, type "help" or "\?"' "$SERVERLOG"; then
{
printf 'Server did not finish startup:'
cat server.log
} >&2
exit 1
fi
printf 'No crash reports detected'
exit 0
+1
View File
@@ -29,3 +29,4 @@ src/main/resources/mixins.*.json
*.bat
*.DS_Store
!gradlew.bat
layout.json
+7 -7
View File
@@ -1,14 +1,14 @@
// Add your dependencies here
dependencies {
compile('com.github.GTNewHorizons:ForestryMC:4.9.0:dev')
api('com.github.GTNewHorizons:ForestryMC:4.11.2:dev')
compileOnly('com.github.GTNewHorizons:BloodMagic:1.6.1:dev')
compileOnly('com.github.GTNewHorizons:ThaumicHorizons:1.6.1:dev')
compileOnly('com.github.GTNewHorizons:Baubles:1.0.4:dev') {transitive = false}
compileOnly('com.github.GTNewHorizons:Botania:1.11.0-GTNH:api') {transitive = false}
compileOnly('com.github.GTNewHorizons:BloodMagic:1.8.5:dev')
compileOnly('com.github.GTNewHorizons:ThaumicHorizons:1.8.4:dev')
compileOnly('com.github.GTNewHorizons:Baubles-Expanded:2.2.2-GTNH:dev') {transitive = false}
compileOnly('com.github.GTNewHorizons:Botania:1.13.4-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.46.13:dev')
compileOnly('com.github.GTNewHorizons:ThaumicEnergistics:1.6.5-GTNH:dev')
compileOnly('com.github.GTNewHorizons:GT5-Unofficial:5.09.52.97:dev')
compileOnly('com.github.GTNewHorizons:ThaumicEnergistics:1.7.14-GTNH:dev')
}
+26 -7
View File
@@ -14,7 +14,7 @@ modId = MagicBees
modGroup = magicbees
# Whether to use modGroup as the maven publishing group.
# Due to a history of using JitPack, the default is com.github.GTNewHorizons for all mods.
# When false, com.github.GTNewHorizons is used.
useModGroupForPublishing = false
# Updates your build.gradle and settings.gradle automatically whenever an update is available.
@@ -50,10 +50,10 @@ enableGenericInjection = false
# Generate a class with a String field for the mod version named as defined below.
# If generateGradleTokenClass is empty or not missing, no such class will be generated.
# If gradleTokenVersion is empty or missing, the field will not be present in the class.
generateGradleTokenClass =
generateGradleTokenClass = magicbees.Tags
# Name of the token containing the project's current version to generate/replace.
gradleTokenVersion = GRADLETOKEN_VERSION
gradleTokenVersion = VERSION
# [DEPRECATED] Mod ID replacement token.
gradleTokenModId =
@@ -70,7 +70,7 @@ gradleTokenGroupName =
# The string's content will be replaced with your mod's version when compiled. You should use this to specify your mod's
# version in @Mod([...], version = VERSION, [...]).
# Leave these properties empty to skip individual token replacements.
replaceGradleTokenInFile = VersionInfo.java
replaceGradleTokenInFile =
# In case your mod provides an API for other mods to implement you may declare its package here. Otherwise, you can
# leave this property empty.
@@ -85,13 +85,20 @@ accessTransformersFile =
# Provides setup for Mixins if enabled. If you don't know what mixins are: Keep it disabled!
usesMixins = false
# Set to a non-empty string to configure mixins in a separate source set under src/VALUE, instead of src/main.
# This can speed up compile times thanks to not running the mixin annotation processor on all input sources.
# Mixin classes will have access to "main" classes, but not the other way around.
separateMixinSourceSet =
# Adds some debug arguments like verbose output and class export.
usesMixinDebug = false
# Specify the location of your implementation of IMixinConfigPlugin. Leave it empty otherwise.
mixinPlugin =
# Specify the package that contains all of your Mixins. You may only place Mixins in this package or the build will fail!
# Specify the package that contains all of your Mixins. The package must exist or
# the build will fail. If you have a package property defined in your mixins.<modid>.json,
# it must match with this or the build will fail.
mixinsPackage =
# Specify the core mod entry class if you use a core mod. This class must implement IFMLLoadingPlugin!
@@ -117,9 +124,15 @@ minimizeShadowedDependencies = true
# If disabled, won't rename the shadowed classes.
relocateShadowedDependencies = true
# Adds the GTNH maven, CurseMaven, Modrinth, and some more well-known 1.7.10 repositories.
# Adds CurseMaven, Modrinth, and some more well-known 1.7.10 repositories.
includeWellKnownRepositories = true
# A list of repositories to exclude from the includeWellKnownRepositories setting. Should be a space separated
# list of strings, with the acceptable keys being(case does not matter):
# cursemaven
# modrinth
excludeWellKnownRepositories =
# Change these to your Maven coordinates if you want to publish to a custom Maven repository instead of the default GTNH Maven.
# Authenticate with the MAVEN_USER and MAVEN_PASSWORD environment variables.
# If you need a more complex setup disable maven publishing here and add a publishing repository to addon.gradle.
@@ -140,7 +153,7 @@ modrinthProjectId =
# type can be one of [project, version],
# and the name is the Modrinth project or version slug/id of the other mod.
# Example: required-project:fplib;optional-project:gasstation;incompatible-project:gregtech
# Note: GTNH Mixins is automatically set as a required dependency if usesMixins = true
# Note: UniMixins is automatically set as a required dependency if usesMixins = true.
modrinthRelations =
# Publishing to CurseForge requires you to set the CURSEFORGE_TOKEN environment variable to one of your CurseForge API tokens.
@@ -161,6 +174,12 @@ curseForgeRelations =
# projects. New projects should not use this parameter.
customArchiveBaseName = magicbees
# Optional parameter to customize the default working directory used by the runClient* tasks. Relative to the project directory.
# runClientWorkingDirectory = run/client
# Optional parameter to customize the default working directory used by the runServer* tasks. Relative to the project directory.
# runServerWorkingDirectory = run/server
# Optional parameter to have the build automatically fail if an illegal version is used.
# This can be useful if you e.g. only want to allow versions in the form of '1.1.xxx'.
# The check is ONLY performed if the version is a git tag.
Binary file not shown.
+1 -1
View File
@@ -1,6 +1,6 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.7-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.14.3-bin.zip
networkTimeout=10000
validateDistributionUrl=true
zipStoreBase=GRADLE_USER_HOME
Vendored
+7 -5
View File
@@ -15,6 +15,8 @@
# See the License for the specific language governing permissions and
# limitations under the License.
#
# SPDX-License-Identifier: Apache-2.0
#
##############################################################################
#
@@ -55,7 +57,7 @@
# Darwin, MinGW, and NonStop.
#
# (3) This script is generated from the Groovy template
# https://github.com/gradle/gradle/blob/HEAD/subprojects/plugins/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt
# https://github.com/gradle/gradle/blob/HEAD/platforms/jvm/plugins-application/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt
# within the Gradle project.
#
# You can find Gradle at https://github.com/gradle/gradle/.
@@ -84,7 +86,7 @@ done
# shellcheck disable=SC2034
APP_BASE_NAME=${0##*/}
# Discard cd standard output in case $CDPATH is set (https://github.com/gradle/gradle/issues/25036)
APP_HOME=$( cd "${APP_HOME:-./}" > /dev/null && pwd -P ) || exit
APP_HOME=$( cd -P "${APP_HOME:-./}" > /dev/null && printf '%s\n' "$PWD" ) || exit
# Use the maximum available, or set MAX_FD != -1 to use that value.
MAX_FD=maximum
@@ -112,7 +114,7 @@ case "$( uname )" in #(
NONSTOP* ) nonstop=true ;;
esac
CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar
CLASSPATH="\\\"\\\""
# Determine the Java command to use to start the JVM.
@@ -203,7 +205,7 @@ fi
DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"'
# Collect all arguments for the java command:
# * DEFAULT_JVM_OPTS, JAVA_OPTS, JAVA_OPTS, and optsEnvironmentVar are not allowed to contain shell fragments,
# * DEFAULT_JVM_OPTS, JAVA_OPTS, and optsEnvironmentVar are not allowed to contain shell fragments,
# and any embedded shellness will be escaped.
# * For example: A user cannot expect ${Hostname} to be expanded, as it is an environment variable and will be
# treated as '${Hostname}' itself on the command line.
@@ -211,7 +213,7 @@ DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"'
set -- \
"-Dorg.gradle.appname=$APP_BASE_NAME" \
-classpath "$CLASSPATH" \
org.gradle.wrapper.GradleWrapperMain \
-jar "$APP_HOME/gradle/wrapper/gradle-wrapper.jar" \
"$@"
# Stop when "xargs" is not available.
Vendored
+4 -2
View File
@@ -13,6 +13,8 @@
@rem See the License for the specific language governing permissions and
@rem limitations under the License.
@rem
@rem SPDX-License-Identifier: Apache-2.0
@rem
@if "%DEBUG%"=="" @echo off
@rem ##########################################################################
@@ -68,11 +70,11 @@ goto fail
:execute
@rem Setup the command line
set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar
set CLASSPATH=
@rem Execute Gradle
"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %*
"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" -jar "%APP_HOME%\gradle\wrapper\gradle-wrapper.jar" %*
:end
@rem End local scope for the variables with windows NT shell
-2
View File
@@ -1,2 +0,0 @@
before_install:
- ./gradlew setupCIWorkspace
+1 -1
View File
@@ -17,7 +17,7 @@ pluginManagement {
}
plugins {
id 'com.gtnewhorizons.gtnhsettingsconvention' version '1.0.22'
id 'com.gtnewhorizons.gtnhsettingsconvention' version '1.0.48'
}
@@ -81,12 +81,11 @@ public class MagicApiaryInventory implements IApiaryInventory {
}
public int[] getAccessibleSlotsFromSide(int side) {
if (side == 0 || side == 1) {
return new int[] { SLOT_QUEEN, SLOT_DRONE };
}
int[] slots = new int[SLOT_PRODUCTS_COUNT];
int[] slots = new int[SLOT_PRODUCTS_COUNT + 2];
slots[0] = SLOT_QUEEN;
slots[1] = SLOT_DRONE;
for (int i = 0, slot = SLOT_PRODUCTS_START; i < SLOT_PRODUCTS_COUNT; ++i, ++slot) {
slots[i] = slot;
slots[i + 2] = slot;
}
return slots;
}
@@ -101,7 +100,7 @@ public class MagicApiaryInventory implements IApiaryInventory {
}
public boolean canExtractItem(int slot, ItemStack itemStack, int side) {
return slot >= SLOT_FRAME_START && slot <= SLOT_FRAME_START + 2;
return slot >= SLOT_PRODUCTS_START && slot <= SLOT_PRODUCTS_START + SLOT_PRODUCTS_COUNT;
}
public int getInventoryStackLimit() {
@@ -59,13 +59,17 @@ public class AlleleEffectCrumbling extends AlleleEffect {
IBeeModifier beeModifier = BeeManager.beeRoot.createBeeHousingModifier(housing);
// Get random coords within territory
int xRange = (int) (beeModifier.getTerritoryModifier(genome, 1f) * genome.getTerritory()[0]);
int yRange = (int) (beeModifier.getTerritoryModifier(genome, 1f) * genome.getTerritory()[1]);
int zRange = (int) (beeModifier.getTerritoryModifier(genome, 1f) * genome.getTerritory()[2]);
int[] randomCoords = new int[3];
for (int i = 0; i < 3; i++) {
int range = (int) (beeModifier.getTerritoryModifier(genome, 1f) * genome.getTerritory()[i]);
if (range > 0) {
randomCoords[i] = world.rand.nextInt(range) - range / 2;
}
}
int xCoord = coords.posX + world.rand.nextInt(xRange) - xRange / 2;
int yCoord = coords.posY + world.rand.nextInt(yRange) - yRange / 2;
int zCoord = coords.posZ + world.rand.nextInt(zRange) - zRange / 2;
int xCoord = coords.posX + randomCoords[0];
int yCoord = coords.posY + randomCoords[1];
int zCoord = coords.posZ + randomCoords[2];
Block block = world.getBlock(xCoord, yCoord, zCoord);
if (block != null) {
@@ -37,13 +37,17 @@ public class AlleleEffectTransmuting extends AlleleEffect {
IBeeModifier beeModifier = BeeManager.beeRoot.createBeeHousingModifier(housing);
// Get random coords within territory
int xRange = (int) (beeModifier.getTerritoryModifier(genome, 1f) * genome.getTerritory()[0]);
int yRange = (int) (beeModifier.getTerritoryModifier(genome, 1f) * genome.getTerritory()[1]);
int zRange = (int) (beeModifier.getTerritoryModifier(genome, 1f) * genome.getTerritory()[2]);
int[] randomCoords = new int[3];
for (int i = 0; i < 3; i++) {
int range = (int) (beeModifier.getTerritoryModifier(genome, 1f) * genome.getTerritory()[i]);
if (range > 0) {
randomCoords[i] = world.rand.nextInt(range) - range / 2;
}
}
int xCoord = coords.posX + world.rand.nextInt(xRange) - xRange / 2;
int yCoord = coords.posY + world.rand.nextInt(yRange) - yRange / 2;
int zCoord = coords.posZ + world.rand.nextInt(zRange) - zRange / 2;
int xCoord = coords.posX + randomCoords[0];
int yCoord = coords.posY + randomCoords[1];
int zCoord = coords.posZ + randomCoords[2];
BiomeGenBase biome = world.getBiomeGenForCoords(xCoord, zCoord);
transmutationController.attemptTransmutations(
@@ -28,6 +28,7 @@ public class BlockEnchantedEarth extends Block {
setBlockTextureName(CommonProxy.DOMAIN + ":enchantedEarth");
setTickRandomly(true);
setStepSound(soundTypeGravel);
setHardness(0.1F);
}
@Override
@@ -426,14 +426,16 @@ public class CraftingManager {
GameRegistry.addRecipe(
new ShapedOreRecipe(new ItemStack(Items.emerald), "xxx", "xxx", "xxx", 'x', "nuggetEmerald"));
GameRegistry.addRecipe(
new ShapedOreRecipe(
ItemInterface.getItemStack("apatite"),
"xxx",
"xxx",
"xxx",
'x',
Config.nuggets.getStackForType(NuggetType.APATITE)));
if (ItemInterface.getItemStack("apatite") != null) {
GameRegistry.addRecipe(
new ShapedOreRecipe(
ItemInterface.getItemStack("apatite"),
"xxx",
"xxx",
"xxx",
'x',
Config.nuggets.getStackForType(NuggetType.APATITE)));
}
output = Config.miscResources.getStackForType(ResourceType.DIMENSIONAL_SINGULARITY);
GameRegistry.addRecipe(
@@ -1,5 +1,7 @@
package magicbees.main.utils;
import magicbees.Tags;
/**
* Using some of the VersionInfo code from cofh. (Thanks, Lemming!)
*
@@ -8,7 +10,7 @@ package magicbees.main.utils;
public class VersionInfo {
public static final String ModName = "MagicBees";
public static final String Version = "GRADLETOKEN_VERSION";
public static final String Version = Tags.VERSION;
public static final String GUI_FACTORY_CLASS = "magicbees.client.gui.GuiFactory";
public static final String Logo = "/gfx/magicbees/logo.png";
public static final String Depends = "required-after:Forestry@[4.2.5,);after:Baubles;after:Thaumcraft;after:ExtraBees;after:EE3;after:ArsMagica;after:TConstruct;after:Railcraft;after:ThermalFoundation;after:ThermalExpansion;after:RedstoneArsenal;after:AWWayofTime;after:Botania;after:appliedenergistics2";
@@ -638,9 +638,11 @@ public class ThaumcraftHelper implements IModHelper {
new ItemStack(item.getItem(), 1, ForestryHelper.BlockResource.APATITE.ordinal()),
list.copy());
item = ItemInterface.getItemStack(ForestryHelper.Name, "apatite");
ThaumcraftApi.registerObjectTag(
new ItemStack(item.getItem(), 1, item.getItemDamage()),
list.copy().add(Aspect.CRYSTAL, 2));
if (item != null) {
ThaumcraftApi.registerObjectTag(
new ItemStack(item.getItem(), 1, item.getItemDamage()),
list.copy().add(Aspect.CRYSTAL, 2));
}
list = new AspectList().add(Aspect.MOTION, 2).add(Aspect.FLIGHT, 1);
item = ItemInterface.getItemStack("beeDroneGE");
@@ -182,7 +182,7 @@ public class SubTileHibeescus extends SubTileFunctional {
}
protected float getManaPerOpTick() {
return getFinalOperationManaCost() / OPERATION_TICKS_TIME;
return (float) getFinalOperationManaCost() / OPERATION_TICKS_TIME;
}
@Override
@@ -15,6 +15,7 @@ import forestry.api.apiculture.IBeeGenome;
import forestry.api.apiculture.IBeeHousing;
import forestry.api.apiculture.IBeeModifier;
import forestry.api.apiculture.IBeekeepingLogic;
import forestry.api.apiculture.IBeekeepingMode;
import forestry.apiculture.genetics.BeeGenome;
import magicbees.bees.BeeManager;
import magicbees.bees.BeeSpecies;
@@ -91,8 +92,16 @@ public class TileEntityApimancersDrainerCommon extends TileEntity
}
protected int getProductionMultiplier(IBeeModifier modifier, IBee queen, TileEntity te) {
IBeeGenome queenGenome = queen.getGenome();
float productionMultiplier = modifier.getProductionModifier(queenGenome, 1.0F);
IBeekeepingMode mode = BeeManager.beeRoot.getBeekeepingMode(te.getWorldObj());
IBeeGenome genome = queen.getGenome();
float genomeSpeed = genome.getSpeed();
float productionMultiplier = modifier.getProductionModifier(genome, 1.0F);
productionMultiplier += mode != null ? mode.getBeeModifier().getProductionModifier(genome, productionMultiplier)
: 0.0F;
productionMultiplier += genomeSpeed;
float minimum = Math.max(productionMultiplier, 1.0F);
return (int) Math.ceil(minimum);
}
@@ -150,7 +159,7 @@ public class TileEntityApimancersDrainerCommon extends TileEntity
this.worldObj.markBlockForUpdate(this.xCoord, this.yCoord, this.zCoord);
}
if (this.essentia.getAmount(tag) >= amount) {
this.essentia.reduce(tag, amount);
this.essentia.remove(tag, amount);
return true;
}
return false;
@@ -168,7 +177,7 @@ public class TileEntityApimancersDrainerCommon extends TileEntity
}
if (hasIt) {
for (Aspect next : ot.aspects.keySet()) {
essentia.reduce(next, ot.getAmount(next));
essentia.remove(next, ot.getAmount(next));
}
return true;
}
@@ -215,12 +224,10 @@ public class TileEntityApimancersDrainerCommon extends TileEntity
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);
int total = this.essentia.getAmount(aspect);
this.essentia.remove(aspect, amount); // if amount >= total then it will also remove aspect.
if (amount > total) return total;
return amount;
}
return 0;
@@ -12,7 +12,7 @@ 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;
import gregtech.common.tileentities.machines.basic.MTEIndustrialApiary;
public class TileEntityApimancersDrainerGT extends TileEntityApimancersDrainerCommon
implements IGregTechDeviceInformation {
@@ -43,7 +43,7 @@ public class TileEntityApimancersDrainerGT extends TileEntityApimancersDrainerCo
BaseMetaTileEntity GTMetaTileEntity = getGTTileEntity(above);
if (GTMetaTileEntity != null) {
IMetaTileEntity underlyingMetaTileEntity = GTMetaTileEntity.getMetaTileEntity();
if (!(underlyingMetaTileEntity instanceof GT_MetaTileEntity_IndustrialApiary)) return null;
if (!(underlyingMetaTileEntity instanceof MTEIndustrialApiary)) return null;
return (IBeeHousing) underlyingMetaTileEntity;
}
@@ -59,14 +59,14 @@ public class TileEntityApimancersDrainerGT extends TileEntityApimancersDrainerCo
@Override
protected ItemStack getQueen(IBeeHousing beeHousing, TileEntity te) {
BaseMetaTileEntity GTMetaTileEntity = getGTTileEntity(te);
GT_MetaTileEntity_IndustrialApiary industrialApiary = getGTIndustrialApiary(GTMetaTileEntity);
MTEIndustrialApiary 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);
MTEIndustrialApiary industrialApiary = getGTIndustrialApiary(GTMetaTileEntity);
int housingProductionMultiplier = super.getProductionMultiplier(modifier, queen, te);
return industrialApiary != null
? housingProductionMultiplier * (int) Math.ceil(Math.sqrt(industrialApiary.mSpeed))
@@ -78,11 +78,11 @@ public class TileEntityApimancersDrainerGT extends TileEntityApimancersDrainerCo
return isGTMetaTileEntity ? (BaseMetaTileEntity) te : null;
}
private GT_MetaTileEntity_IndustrialApiary getGTIndustrialApiary(BaseMetaTileEntity bmte) {
private MTEIndustrialApiary getGTIndustrialApiary(BaseMetaTileEntity bmte) {
if (bmte != null) {
IMetaTileEntity underlyingMetaTileEntity = bmte.getMetaTileEntity();
if (!(underlyingMetaTileEntity instanceof GT_MetaTileEntity_IndustrialApiary)) return null;
return (GT_MetaTileEntity_IndustrialApiary) underlyingMetaTileEntity;
if (!(underlyingMetaTileEntity instanceof MTEIndustrialApiary)) return null;
return (MTEIndustrialApiary) underlyingMetaTileEntity;
}
return null;
}
@@ -40,6 +40,7 @@ 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.name=Hive
tile.hive.curious.name=Curious Hive
tile.hive.unusual.name=Unusual Hive
tile.hive.deep.name=Deep Hive
@@ -49,6 +50,7 @@ tile.hive.oblivion.name=Oblivion Hive
tile.enchantedEarth.name=Enchanted Earth
#Combs
item.comb.name=Comb
comb.mundane=Mundane Comb
comb.molten=Molten Comb
comb.occult=Occult Comb
@@ -78,11 +80,13 @@ comb.TElux=Lux Comb
comb.TEendearing=Endearing Comb
#Waxes
item.wax.name=Wax
wax.magic=Magic Wax
wax.soul=Soulful Wax
wax.amnesic=Amnesic Wax
#Drops
item.drop.name=Drop
drop.enchanting=Enchanting Drop
drop.intellect=Intellect Drop
drop.destabilized=Destabilized Drop
@@ -91,10 +95,12 @@ drop.lux=Lux Drop
drop.endearing=Endearing Drop
#Pollens
item.pollen.name=Pollen
pollen.unusual=Unusual Pollen
pollen.phased=Phased Pollen
#Nuggets
item.beeNugget.name=Nugget
nugget.iron=Iron Nugget
nugget.steel=Steel Nugget
nugget.copper=Copper Nugget
@@ -106,6 +112,7 @@ nugget.emerald=Emerald Shard
nugget.apatite=Apatite Shard
#Propolises
item.propolis.name=Propolis
propolis.dull=Ordered Propolis
propolis.air=Breezey Propolis
propolis.fire=Burning Propolis
@@ -115,6 +122,7 @@ propolis.magic=Chaotic Propolis
propolis.unstable=Unstable Propolis
#Misc resources
item.miscResources.name=Resource
resource.fragment=Lore Fragment
resource.lump=Aromatic Lump
resource.fertilizer=Concentrated Compound
@@ -151,7 +159,9 @@ item.frenziedFrame.name=Maddening Frame of Frenzy
item.bloodSoakedFrame.name=Blood Frame
#Capsules
item.capsule.magic.name=Magic Capsule
capsule.magic=%s Magic Capsule
item.capsule.void.name=Void Capsule
capsule.void=%s Void Capsule
#Liquids
@@ -203,6 +213,8 @@ moon.new=New Moon
#moon.alt.new=
#Backpack
item.backpack.thaumaturgeT1.name=Thaumaturge's Backpack
item.backpack.thaumaturgeT2.name=Thaumaturge's Backpack
backpack.thaumaturge=Thaumaturge's Backpack
#Itemgroups
@@ -629,6 +641,7 @@ classification.botanical=Botanical
classification.botanical.description=A peculiar variant of mundane bees, they seem to have a hightened affinity for flowers.|Apinomicon
tc.aspect.tempus=Time, Moment, Eternity
tc.aspect.help.tempus=the flow of time
tc.research_category.MAGICBEES=Apimancy
@@ -559,7 +559,7 @@ tc.research_page.MB_ScoopVoid.1=Пустотный металл — любопы
tc.research_name.MB_GrafterVoid=Пустотный садовый нож
tc.research_text.MB_GrafterVoid=Искаженная Ива
tc.research_page.MB_GrafterVoid.1Хотя нет никаких сомнений в том, что тауминит является превосходным материалом, ваше недавнее открытие пустотного металла и последующие эксперименты показали большие перспективы его использования в качестве материала для инструментов. Деликатная природа садовых ножей и восстанавливающие свойства пустотного металла выглядят многообещающей комбинацией. <BR>Очень похож на таумический нож и вызывает такое же утомление.
tc.research_page.MB_GrafterVoid.1=Хотя нет никаких сомнений в том, что тауминит является превосходным материалом, ваше недавнее открытие пустотного металла и последующие эксперименты показали большие перспективы его использования в качестве материала для инструментов. Деликатная природа садовых ножей и восстанавливающие свойства пустотного металла выглядят многообещающей комбинацией. <BR>Очень похож на таумический нож и вызывает такое же утомление.
#Botania Lexicon entries
magicbees.botania.lexicon.subtitle=[Magic Bees]