mirror of
https://github.com/GTNewHorizons/MagicBees.git
synced 2026-11-25 06:24:54 +00:00
Compare commits
21
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
f881470241 | ||
|
|
d4bd32c67b | ||
|
|
60607bc521 | ||
|
|
2e7e1a3efc | ||
|
|
0bd57ed988 | ||
|
|
eccceab233 | ||
|
|
e5d696f210 | ||
|
|
0f59e8b4ef | ||
|
|
7248bac5d0 | ||
|
|
81cb972fff | ||
|
|
9589da0f00 | ||
|
|
b5cf82b574 | ||
|
|
c4cb9a19c6 | ||
|
|
8fb3407357 | ||
|
|
001f1b27f6 | ||
|
|
6429eea5d6 | ||
|
|
3ff6e91053 | ||
|
|
cdf3046e61 | ||
|
|
05476997e1 | ||
|
|
c2cafd4a98 | ||
|
|
e9606af217 |
No files matched your search
@@ -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
|
||||
@@ -29,3 +29,4 @@ src/main/resources/mixins.*.json
|
||||
*.bat
|
||||
*.DS_Store
|
||||
!gradlew.bat
|
||||
layout.json
|
||||
+7
-7
@@ -1,14 +1,14 @@
|
||||
// Add your dependencies here
|
||||
|
||||
dependencies {
|
||||
compile('com.github.GTNewHorizons:ForestryMC:4.9.7:dev')
|
||||
api('com.github.GTNewHorizons:ForestryMC:4.11.2:dev')
|
||||
|
||||
compileOnly('com.github.GTNewHorizons:BloodMagic:1.6.2: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.3-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.48.64:dev')
|
||||
compileOnly('com.github.GTNewHorizons:ThaumicEnergistics:1.6.10-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
@@ -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.
|
||||
|
||||
Vendored
BIN
Binary file not shown.
+1
-1
@@ -1,6 +1,6 @@
|
||||
distributionBase=GRADLE_USER_HOME
|
||||
distributionPath=wrapper/dists
|
||||
distributionUrl=https\://services.gradle.org/distributions/gradle-8.8-bin.zip
|
||||
distributionUrl=https\://services.gradle.org/distributions/gradle-8.14.3-bin.zip
|
||||
networkTimeout=10000
|
||||
validateDistributionUrl=true
|
||||
zipStoreBase=GRADLE_USER_HOME
|
||||
|
||||
@@ -15,6 +15,8 @@
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
#
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
#
|
||||
|
||||
##############################################################################
|
||||
#
|
||||
@@ -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
@@ -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
|
||||
|
||||
@@ -1,2 +0,0 @@
|
||||
before_install:
|
||||
- ./gradlew setupCIWorkspace
|
||||
+1
-1
@@ -17,7 +17,7 @@ pluginManagement {
|
||||
}
|
||||
|
||||
plugins {
|
||||
id 'com.gtnewhorizons.gtnhsettingsconvention' version '1.0.23'
|
||||
id 'com.gtnewhorizons.gtnhsettingsconvention' version '1.0.48'
|
||||
}
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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]
|
||||
|
||||
Reference in new issue
Block a user