Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
24e473018e | ||
|
|
d635a7a406 | ||
|
|
f82ed6358a | ||
|
|
1ed50ed660 | ||
|
|
f38854d65e | ||
|
|
53d085d292 | ||
|
|
4345981958 | ||
|
|
1dd3f7342e | ||
|
|
f88d1f8c96 | ||
|
|
59aa1ce79c | ||
|
|
d571f64b14 | ||
|
|
f3cf6407cf | ||
|
|
e3460d5dbc | ||
|
|
d9a7759c49 |
No files matched your search
@@ -3,9 +3,9 @@ name: Build and test
|
|||||||
|
|
||||||
on:
|
on:
|
||||||
pull_request:
|
pull_request:
|
||||||
branches: [ master, main ]
|
branches: [ master, main, release/** ]
|
||||||
push:
|
push:
|
||||||
branches: [ master, main ]
|
branches: [ master, main, release/** ]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build-and-test:
|
build-and-test:
|
||||||
|
|||||||
@@ -0,0 +1,17 @@
|
|||||||
|
name: Optimize images
|
||||||
|
|
||||||
|
on:
|
||||||
|
pull_request:
|
||||||
|
branches: [ master, main, release/** ]
|
||||||
|
paths:
|
||||||
|
- "**/*.png"
|
||||||
|
|
||||||
|
push:
|
||||||
|
branches: [ master, main, release/** ]
|
||||||
|
paths:
|
||||||
|
- "**/*.png"
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
optimize-images:
|
||||||
|
uses: GTNewHorizons/GTNH-Actions-Workflows/.github/workflows/optimize-images.yml@master
|
||||||
|
secrets: inherit
|
||||||
@@ -1,14 +1,18 @@
|
|||||||
// Add your dependencies here
|
// Add your dependencies here
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
api('com.github.GTNewHorizons:ForestryMC:4.11.7:dev')
|
api('com.github.GTNewHorizons:ForestryMC:4.12.1:dev')
|
||||||
|
|
||||||
compileOnly('com.github.GTNewHorizons:BloodMagic:1.8.12:dev')
|
compileOnly('com.github.GTNewHorizons:BloodMagic:1.10.0:dev')
|
||||||
compileOnly('com.github.GTNewHorizons:ThaumicHorizons:1.8.11:dev')
|
compileOnly('com.github.GTNewHorizons:ThaumicHorizons:1.9.0:dev')
|
||||||
compileOnly('com.github.GTNewHorizons:Baubles-Expanded:2.2.9-GTNH:dev') {transitive = false}
|
compileOnly('com.github.GTNewHorizons:Baubles-Expanded:2.3.0-GTNH:dev') {transitive = false}
|
||||||
compileOnly('com.github.GTNewHorizons:Botania:1.13.15-GTNH:api') {transitive = false}
|
compileOnly('com.github.GTNewHorizons:Botania:1.14.1-GTNH:api') {transitive = false}
|
||||||
compileOnly('thaumcraft:Thaumcraft:1.7.10-4.2.3.5:dev') {transitive = false}
|
compileOnly('thaumcraft:Thaumcraft:1.7.10-4.2.3.5:dev') {transitive = false}
|
||||||
compileOnly('com.github.GTNewHorizons:GT5-Unofficial:5.09.52.331:dev')
|
compileOnly('com.github.GTNewHorizons:GT5-Unofficial:5.09.55.13:dev')
|
||||||
compileOnly('com.github.GTNewHorizons:ThaumicEnergistics:1.7.31-GTNH:dev')
|
compileOnly('com.github.GTNewHorizons:ThaumicEnergistics:1.8.0-GTNH:dev')
|
||||||
|
|
||||||
|
//runtimeOnlyNonPublishable('com.github.GTNewHorizons:Baubles-Expanded:2.3.0-GTNH:dev') {transitive = false}
|
||||||
|
//runtimeOnlyNonPublishable('thaumcraft:Thaumcraft:1.7.10-4.2.3.5:dev') {transitive = false}
|
||||||
|
//runtimeOnlyNonPublishable('com.github.GTNewHorizons:GT5-Unofficial:5.09.55.13:dev')
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1,12 +1,12 @@
|
|||||||
#This file is generated by updateDaemonJvm
|
#This file is generated by updateDaemonJvm
|
||||||
toolchainUrl.FREE_BSD.AARCH64=https\://api.foojay.io/disco/v3.0/ids/df211d3c3eefdc408b462041881bc575/redirect
|
toolchainUrl.FREE_BSD.AARCH64=https\://api.foojay.io/disco/v3.0/ids/c5ee947fbfb70bc347d8d531e3a578c4/redirect
|
||||||
toolchainUrl.FREE_BSD.X86_64=https\://api.foojay.io/disco/v3.0/ids/b41931cf1e70bc8e08d7dd19c343ef00/redirect
|
toolchainUrl.FREE_BSD.X86_64=https\://api.foojay.io/disco/v3.0/ids/cd495626d2ee49a75447e3fdc6afb287/redirect
|
||||||
toolchainUrl.LINUX.AARCH64=https\://api.foojay.io/disco/v3.0/ids/df211d3c3eefdc408b462041881bc575/redirect
|
toolchainUrl.LINUX.AARCH64=https\://api.foojay.io/disco/v3.0/ids/c5ee947fbfb70bc347d8d531e3a578c4/redirect
|
||||||
toolchainUrl.LINUX.X86_64=https\://api.foojay.io/disco/v3.0/ids/b41931cf1e70bc8e08d7dd19c343ef00/redirect
|
toolchainUrl.LINUX.X86_64=https\://api.foojay.io/disco/v3.0/ids/cd495626d2ee49a75447e3fdc6afb287/redirect
|
||||||
toolchainUrl.MAC_OS.AARCH64=https\://api.foojay.io/disco/v3.0/ids/3426ffcaa54c3f62406beb1f1ab8b179/redirect
|
toolchainUrl.MAC_OS.AARCH64=https\://api.foojay.io/disco/v3.0/ids/d4fd992c9557644e637ebe98263e0ae7/redirect
|
||||||
toolchainUrl.MAC_OS.X86_64=https\://api.foojay.io/disco/v3.0/ids/d6690dfd71c4c91e08577437b5b2beb0/redirect
|
toolchainUrl.MAC_OS.X86_64=https\://api.foojay.io/disco/v3.0/ids/59a9771cad43219260d9aac9a8ec4d6a/redirect
|
||||||
toolchainUrl.UNIX.AARCH64=https\://api.foojay.io/disco/v3.0/ids/df211d3c3eefdc408b462041881bc575/redirect
|
toolchainUrl.UNIX.AARCH64=https\://api.foojay.io/disco/v3.0/ids/c5ee947fbfb70bc347d8d531e3a578c4/redirect
|
||||||
toolchainUrl.UNIX.X86_64=https\://api.foojay.io/disco/v3.0/ids/b41931cf1e70bc8e08d7dd19c343ef00/redirect
|
toolchainUrl.UNIX.X86_64=https\://api.foojay.io/disco/v3.0/ids/cd495626d2ee49a75447e3fdc6afb287/redirect
|
||||||
toolchainUrl.WINDOWS.AARCH64=https\://api.foojay.io/disco/v3.0/ids/3cd7045fca9a72cd9bc7d14a385e594c/redirect
|
toolchainUrl.WINDOWS.AARCH64=https\://api.foojay.io/disco/v3.0/ids/3689d0bcdd77ac01674ba3c9dbbe94d0/redirect
|
||||||
toolchainUrl.WINDOWS.X86_64=https\://api.foojay.io/disco/v3.0/ids/0ef34dd9312b12d61ba1b8e66126d140/redirect
|
toolchainUrl.WINDOWS.X86_64=https\://api.foojay.io/disco/v3.0/ids/8e1d9ee5d0f13e442218f6884a306da1/redirect
|
||||||
toolchainVersion=25
|
toolchainVersion=25
|
||||||
@@ -1,6 +1,6 @@
|
|||||||
distributionBase=GRADLE_USER_HOME
|
distributionBase=GRADLE_USER_HOME
|
||||||
distributionPath=wrapper/dists
|
distributionPath=wrapper/dists
|
||||||
distributionUrl=https\://services.gradle.org/distributions/gradle-9.3.1-bin.zip
|
distributionUrl=https\://services.gradle.org/distributions/gradle-9.4.0-bin.zip
|
||||||
networkTimeout=10000
|
networkTimeout=10000
|
||||||
validateDistributionUrl=true
|
validateDistributionUrl=true
|
||||||
zipStoreBase=GRADLE_USER_HOME
|
zipStoreBase=GRADLE_USER_HOME
|
||||||
|
|||||||
@@ -57,7 +57,7 @@
|
|||||||
# Darwin, MinGW, and NonStop.
|
# Darwin, MinGW, and NonStop.
|
||||||
#
|
#
|
||||||
# (3) This script is generated from the Groovy template
|
# (3) This script is generated from the Groovy template
|
||||||
# https://github.com/gradle/gradle/blob/HEAD/platforms/jvm/plugins-application/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt
|
# https://github.com/gradle/gradle/blob/b631911858264c0b6e4d6603d677ff5218766cee/platforms/jvm/plugins-application/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt
|
||||||
# within the Gradle project.
|
# within the Gradle project.
|
||||||
#
|
#
|
||||||
# You can find Gradle at https://github.com/gradle/gradle/.
|
# You can find Gradle at https://github.com/gradle/gradle/.
|
||||||
|
|||||||
@@ -17,7 +17,7 @@ pluginManagement {
|
|||||||
}
|
}
|
||||||
|
|
||||||
plugins {
|
plugins {
|
||||||
id 'com.gtnewhorizons.gtnhsettingsconvention' version '2.0.21'
|
id 'com.gtnewhorizons.gtnhsettingsconvention' version '2.0.24'
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@@ -19,7 +19,7 @@ public class BeeGenomeManager {
|
|||||||
|
|
||||||
// Basic genome for All thaumic bees.
|
// Basic genome for All thaumic bees.
|
||||||
private static IAllele[] getTemplateModBase() {
|
private static IAllele[] getTemplateModBase() {
|
||||||
IAllele[] genome = new IAllele[EnumBeeChromosome.values().length];
|
IAllele[] genome = new IAllele[EnumBeeChromosome.VALUES.length];
|
||||||
|
|
||||||
genome[EnumBeeChromosome.SPECIES.ordinal()] = BeeSpecies.MYSTICAL.getSpecies();
|
genome[EnumBeeChromosome.SPECIES.ordinal()] = BeeSpecies.MYSTICAL.getSpecies();
|
||||||
genome[EnumBeeChromosome.SPEED.ordinal()] = Allele.getBaseAllele("speedSlowest");
|
genome[EnumBeeChromosome.SPEED.ordinal()] = Allele.getBaseAllele("speedSlowest");
|
||||||
|
|||||||
@@ -261,11 +261,11 @@ public class BeeProductHelper {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public static void initOreDictSProducts() {
|
public static void initOreDictSProducts() {
|
||||||
boolean isGTLoaded = Config.isGTNHCoreModLoaded;
|
boolean isGTNHCoreModLoaded = Config.isGTNHCoreModLoaded;
|
||||||
SILVER.addProduct(ForestryHelper.itemHoneycomb, 0.10f);
|
SILVER.addProduct(ForestryHelper.itemHoneycomb, 0.10f);
|
||||||
if (OreDictionary.getOres("nuggetSilver").size() > 0) {
|
if (OreDictionary.getOres("nuggetSilver").size() > 0) {
|
||||||
SILVER.addSpecialty(
|
SILVER.addSpecialty(
|
||||||
isGTLoaded ? Materials.Silver.getNuggets(1) : OreDictionary.getOres("nuggetSilver").get(0),
|
isGTNHCoreModLoaded ? Materials.Silver.getNuggets(1) : OreDictionary.getOres("nuggetSilver").get(0),
|
||||||
0.16f);
|
0.16f);
|
||||||
} else {
|
} else {
|
||||||
SILVER.setInactive();
|
SILVER.setInactive();
|
||||||
@@ -274,7 +274,7 @@ public class BeeProductHelper {
|
|||||||
LEAD.addProduct(ForestryHelper.itemHoneycomb, 0.10f);
|
LEAD.addProduct(ForestryHelper.itemHoneycomb, 0.10f);
|
||||||
if (OreDictionary.getOres("nuggetLead").size() > 0) {
|
if (OreDictionary.getOres("nuggetLead").size() > 0) {
|
||||||
LEAD.addSpecialty(
|
LEAD.addSpecialty(
|
||||||
isGTLoaded ? Materials.Lead.getNuggets(1) : OreDictionary.getOres("nuggetLead").get(0),
|
isGTNHCoreModLoaded ? Materials.Lead.getNuggets(1) : OreDictionary.getOres("nuggetLead").get(0),
|
||||||
0.17f);
|
0.17f);
|
||||||
} else {
|
} else {
|
||||||
LEAD.setInactive();
|
LEAD.setInactive();
|
||||||
@@ -291,7 +291,8 @@ public class BeeProductHelper {
|
|||||||
TE_PLATINUM.addProduct(ForestryHelper.itemHoneycomb, 0.10f);
|
TE_PLATINUM.addProduct(ForestryHelper.itemHoneycomb, 0.10f);
|
||||||
if (OreDictionary.getOres("nuggetPlatinum").size() > 0) {
|
if (OreDictionary.getOres("nuggetPlatinum").size() > 0) {
|
||||||
TE_PLATINUM.addSpecialty(
|
TE_PLATINUM.addSpecialty(
|
||||||
isGTLoaded ? Materials.Platinum.getNuggets(1) : OreDictionary.getOres("nuggetPlatinum").get(0),
|
isGTNHCoreModLoaded ? Materials.Platinum.getNuggets(1)
|
||||||
|
: OreDictionary.getOres("nuggetPlatinum").get(0),
|
||||||
0.18f);
|
0.18f);
|
||||||
} else {
|
} else {
|
||||||
TE_PLATINUM.setInactive();
|
TE_PLATINUM.setInactive();
|
||||||
@@ -300,7 +301,7 @@ public class BeeProductHelper {
|
|||||||
TE_NICKEL.addProduct(ForestryHelper.itemHoneycomb, 0.10f);
|
TE_NICKEL.addProduct(ForestryHelper.itemHoneycomb, 0.10f);
|
||||||
if (OreDictionary.getOres("nuggetNickel").size() > 0) {
|
if (OreDictionary.getOres("nuggetNickel").size() > 0) {
|
||||||
TE_NICKEL.addSpecialty(
|
TE_NICKEL.addSpecialty(
|
||||||
isGTLoaded ? Materials.Nickel.getNuggets(1) : OreDictionary.getOres("nuggetNickel").get(0),
|
isGTNHCoreModLoaded ? Materials.Nickel.getNuggets(1) : OreDictionary.getOres("nuggetNickel").get(0),
|
||||||
0.18f);
|
0.18f);
|
||||||
} else {
|
} else {
|
||||||
TE_NICKEL.setInactive();
|
TE_NICKEL.setInactive();
|
||||||
@@ -309,7 +310,7 @@ public class BeeProductHelper {
|
|||||||
ARDITE.addProduct(ForestryHelper.itemHoneycomb, 0.10f);
|
ARDITE.addProduct(ForestryHelper.itemHoneycomb, 0.10f);
|
||||||
if (OreDictionary.getOres("nuggetArdite").size() > 0) {
|
if (OreDictionary.getOres("nuggetArdite").size() > 0) {
|
||||||
ARDITE.addSpecialty(
|
ARDITE.addSpecialty(
|
||||||
isGTLoaded ? Materials.Ardite.getNuggets(1) : OreDictionary.getOres("nuggetArdite").get(0),
|
isGTNHCoreModLoaded ? Materials.Ardite.getNuggets(1) : OreDictionary.getOres("nuggetArdite").get(0),
|
||||||
0.18f);
|
0.18f);
|
||||||
} else {
|
} else {
|
||||||
ARDITE.setInactive();
|
ARDITE.setInactive();
|
||||||
@@ -318,7 +319,7 @@ public class BeeProductHelper {
|
|||||||
COBALT.addProduct(ForestryHelper.itemHoneycomb, 0.10f);
|
COBALT.addProduct(ForestryHelper.itemHoneycomb, 0.10f);
|
||||||
if (OreDictionary.getOres("nuggetCobalt").size() > 0) {
|
if (OreDictionary.getOres("nuggetCobalt").size() > 0) {
|
||||||
COBALT.addSpecialty(
|
COBALT.addSpecialty(
|
||||||
isGTLoaded ? Materials.Cobalt.getNuggets(1) : OreDictionary.getOres("nuggetCobalt").get(0),
|
isGTNHCoreModLoaded ? Materials.Cobalt.getNuggets(1) : OreDictionary.getOres("nuggetCobalt").get(0),
|
||||||
0.18f);
|
0.18f);
|
||||||
} else {
|
} else {
|
||||||
COBALT.setInactive();
|
COBALT.setInactive();
|
||||||
@@ -327,7 +328,7 @@ public class BeeProductHelper {
|
|||||||
TE_BRONZE.addProduct(ForestryHelper.itemHoneycomb, 0.10f);
|
TE_BRONZE.addProduct(ForestryHelper.itemHoneycomb, 0.10f);
|
||||||
if (OreDictionary.getOres("nuggetBronze").size() > 0) {
|
if (OreDictionary.getOres("nuggetBronze").size() > 0) {
|
||||||
TE_BRONZE.addSpecialty(
|
TE_BRONZE.addSpecialty(
|
||||||
isGTLoaded ? Materials.Bronze.getNuggets(1) : OreDictionary.getOres("nuggetBronze").get(0),
|
isGTNHCoreModLoaded ? Materials.Bronze.getNuggets(1) : OreDictionary.getOres("nuggetBronze").get(0),
|
||||||
0.18f);
|
0.18f);
|
||||||
} else {
|
} else {
|
||||||
TE_BRONZE.setInactive();
|
TE_BRONZE.setInactive();
|
||||||
@@ -336,7 +337,7 @@ public class BeeProductHelper {
|
|||||||
TE_INVAR.addProduct(ForestryHelper.itemHoneycomb, 0.10f);
|
TE_INVAR.addProduct(ForestryHelper.itemHoneycomb, 0.10f);
|
||||||
if (OreDictionary.getOres("nuggetInvar").size() > 0) {
|
if (OreDictionary.getOres("nuggetInvar").size() > 0) {
|
||||||
TE_INVAR.addSpecialty(
|
TE_INVAR.addSpecialty(
|
||||||
isGTLoaded ? Materials.Invar.getNuggets(1) : OreDictionary.getOres("nuggetInvar").get(0),
|
isGTNHCoreModLoaded ? Materials.Invar.getNuggets(1) : OreDictionary.getOres("nuggetInvar").get(0),
|
||||||
0.18f);
|
0.18f);
|
||||||
} else {
|
} else {
|
||||||
TE_INVAR.setInactive();
|
TE_INVAR.setInactive();
|
||||||
@@ -345,7 +346,8 @@ public class BeeProductHelper {
|
|||||||
TE_ELECTRUM.addProduct(ForestryHelper.itemHoneycomb, 0.10f);
|
TE_ELECTRUM.addProduct(ForestryHelper.itemHoneycomb, 0.10f);
|
||||||
if (OreDictionary.getOres("nuggetElectrum").size() > 0) {
|
if (OreDictionary.getOres("nuggetElectrum").size() > 0) {
|
||||||
TE_ELECTRUM.addSpecialty(
|
TE_ELECTRUM.addSpecialty(
|
||||||
isGTLoaded ? Materials.Electrum.getNuggets(1) : OreDictionary.getOres("nuggetElectrum").get(0),
|
isGTNHCoreModLoaded ? Materials.Electrum.getNuggets(1)
|
||||||
|
: OreDictionary.getOres("nuggetElectrum").get(0),
|
||||||
0.18f);
|
0.18f);
|
||||||
} else {
|
} else {
|
||||||
TE_ELECTRUM.setInactive();
|
TE_ELECTRUM.setInactive();
|
||||||
@@ -354,7 +356,8 @@ public class BeeProductHelper {
|
|||||||
MANYULLYN.addProduct(ForestryHelper.itemHoneycomb, 0.10f);
|
MANYULLYN.addProduct(ForestryHelper.itemHoneycomb, 0.10f);
|
||||||
if (OreDictionary.getOres("nuggetManyullyn").size() > 0) {
|
if (OreDictionary.getOres("nuggetManyullyn").size() > 0) {
|
||||||
MANYULLYN.addSpecialty(
|
MANYULLYN.addSpecialty(
|
||||||
isGTLoaded ? Materials.Manyullyn.getNuggets(1) : OreDictionary.getOres("nuggetManyullyn").get(0),
|
isGTNHCoreModLoaded ? Materials.Manyullyn.getNuggets(1)
|
||||||
|
: OreDictionary.getOres("nuggetManyullyn").get(0),
|
||||||
0.18f);
|
0.18f);
|
||||||
} else {
|
} else {
|
||||||
MANYULLYN.setInactive();
|
MANYULLYN.setInactive();
|
||||||
|
|||||||
@@ -36,7 +36,9 @@ public class BlockEffectJar extends BlockContainer {
|
|||||||
boolean activate = false;
|
boolean activate = false;
|
||||||
|
|
||||||
if (!player.isSneaking()) {
|
if (!player.isSneaking()) {
|
||||||
player.openGui(MagicBees.object, UIScreens.EFFECT_JAR.ordinal(), world, x, y, z);
|
if (!world.isRemote) {
|
||||||
|
player.openGui(MagicBees.object, UIScreens.EFFECT_JAR.ordinal(), world, x, y, z);
|
||||||
|
}
|
||||||
activate = true;
|
activate = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -43,7 +43,7 @@ public class BlockHive extends Block {
|
|||||||
@Override
|
@Override
|
||||||
public int getLightValue(IBlockAccess world, int x, int y, int z) {
|
public int getLightValue(IBlockAccess world, int x, int y, int z) {
|
||||||
int meta = world.getBlockMetadata(x, y, z);
|
int meta = world.getBlockMetadata(x, y, z);
|
||||||
if (meta < 0 || meta > HiveType.values().length) {
|
if (meta < 0 || meta > HiveType.VALUES.length) {
|
||||||
meta = 0;
|
meta = 0;
|
||||||
}
|
}
|
||||||
return HiveType.getHiveFromMeta(meta).getLightValue();
|
return HiveType.getHiveFromMeta(meta).getLightValue();
|
||||||
@@ -54,7 +54,7 @@ public class BlockHive extends Block {
|
|||||||
@Override
|
@Override
|
||||||
public void getSubBlocks(Item item, CreativeTabs tab, List itemsList) {
|
public void getSubBlocks(Item item, CreativeTabs tab, List itemsList) {
|
||||||
// Java bitches about raw types & types not being checked. Sorry, but the API sucks.
|
// Java bitches about raw types & types not being checked. Sorry, but the API sucks.
|
||||||
for (HiveType type : HiveType.values()) {
|
for (HiveType type : HiveType.VALUES) {
|
||||||
if (type.show || Config.forestryDebugEnabled) {
|
if (type.show || Config.forestryDebugEnabled) {
|
||||||
itemsList.add(new ItemStack(this, 1, type.ordinal()));
|
itemsList.add(new ItemStack(this, 1, type.ordinal()));
|
||||||
}
|
}
|
||||||
@@ -75,7 +75,7 @@ public class BlockHive extends Block {
|
|||||||
@Override
|
@Override
|
||||||
@SideOnly(Side.CLIENT)
|
@SideOnly(Side.CLIENT)
|
||||||
public IIcon getIcon(int side, int meta) {
|
public IIcon getIcon(int side, int meta) {
|
||||||
if (meta < 0 || meta > HiveType.values().length) {
|
if (meta < 0 || meta > HiveType.VALUES.length) {
|
||||||
meta = 0;
|
meta = 0;
|
||||||
}
|
}
|
||||||
return HiveType.getHiveFromMeta(meta).getIconForSide(side);
|
return HiveType.getHiveFromMeta(meta).getIconForSide(side);
|
||||||
|
|||||||
@@ -40,7 +40,9 @@ public class BlockMagicApiary extends BlockContainer {
|
|||||||
boolean activate = false;
|
boolean activate = false;
|
||||||
|
|
||||||
if (!player.isSneaking()) {
|
if (!player.isSneaking()) {
|
||||||
player.openGui(MagicBees.object, UIScreens.THAUMIC_APIARY.ordinal(), world, x, y, z);
|
if (!world.isRemote) {
|
||||||
|
player.openGui(MagicBees.object, UIScreens.THAUMIC_APIARY.ordinal(), world, x, y, z);
|
||||||
|
}
|
||||||
activate = true;
|
activate = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -25,9 +25,11 @@ public enum HiveType {
|
|||||||
CURIOUS("curious", BeeSpecies.MYSTICAL, 12, true),
|
CURIOUS("curious", BeeSpecies.MYSTICAL, 12, true),
|
||||||
UNUSUAL("unusual", BeeSpecies.UNUSUAL, 12, true),
|
UNUSUAL("unusual", BeeSpecies.UNUSUAL, 12, true),
|
||||||
RESONANT("resonant", BeeSpecies.SORCEROUS, 12, true),
|
RESONANT("resonant", BeeSpecies.SORCEROUS, 12, true),
|
||||||
DEEP("deep", BeeSpecies.ATTUNED, 4, false),
|
DEEP("deep", BeeSpecies.ATTUNED, 4, true),
|
||||||
INFERNAL("infernal", BeeSpecies.INFERNAL, 15, false),
|
INFERNAL("infernal", BeeSpecies.INFERNAL, 15, true),
|
||||||
OBLIVION("oblivion", BeeSpecies.OBLIVION, 7, false),;
|
OBLIVION("oblivion", BeeSpecies.OBLIVION, 7, true),;
|
||||||
|
|
||||||
|
public static final HiveType[] VALUES = values();
|
||||||
|
|
||||||
private static String[] nameList;
|
private static String[] nameList;
|
||||||
|
|
||||||
@@ -43,8 +45,8 @@ public enum HiveType {
|
|||||||
public static HiveType getHiveFromMeta(int meta) {
|
public static HiveType getHiveFromMeta(int meta) {
|
||||||
HiveType type = CURIOUS;
|
HiveType type = CURIOUS;
|
||||||
|
|
||||||
if (meta > 0 && meta < HiveType.values().length) {
|
if (meta > 0 && meta < HiveType.VALUES.length) {
|
||||||
type = HiveType.values()[meta];
|
type = HiveType.VALUES[meta];
|
||||||
}
|
}
|
||||||
|
|
||||||
return type;
|
return type;
|
||||||
@@ -96,7 +98,7 @@ public enum HiveType {
|
|||||||
|
|
||||||
@SideOnly(Side.CLIENT)
|
@SideOnly(Side.CLIENT)
|
||||||
public static void registerIcons(IIconRegister register) {
|
public static void registerIcons(IIconRegister register) {
|
||||||
for (HiveType type : HiveType.values()) {
|
for (HiveType type : HiveType.VALUES) {
|
||||||
type.icons = new IIcon[2];
|
type.icons = new IIcon[2];
|
||||||
|
|
||||||
type.icons[0] = register.registerIcon(CommonProxy.DOMAIN + ":beehive." + type.ordinal() + ".top");
|
type.icons[0] = register.registerIcon(CommonProxy.DOMAIN + ":beehive." + type.ordinal() + ".top");
|
||||||
@@ -167,9 +169,9 @@ public enum HiveType {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private static String[] generateNames() {
|
private static String[] generateNames() {
|
||||||
String[] names = new String[values().length];
|
String[] names = new String[VALUES.length];
|
||||||
for (int i = 0; i < names.length; ++i) {
|
for (int i = 0; i < names.length; ++i) {
|
||||||
names[i] = values()[i].name;
|
names[i] = VALUES[i].name;
|
||||||
}
|
}
|
||||||
return names;
|
return names;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -3,6 +3,7 @@ package magicbees.client.gui;
|
|||||||
import net.minecraft.client.gui.inventory.GuiContainer;
|
import net.minecraft.client.gui.inventory.GuiContainer;
|
||||||
import net.minecraft.entity.player.EntityPlayer;
|
import net.minecraft.entity.player.EntityPlayer;
|
||||||
import net.minecraft.util.ResourceLocation;
|
import net.minecraft.util.ResourceLocation;
|
||||||
|
import net.minecraft.util.StatCollector;
|
||||||
|
|
||||||
import org.lwjgl.opengl.GL11;
|
import org.lwjgl.opengl.GL11;
|
||||||
|
|
||||||
@@ -36,7 +37,7 @@ public class GUIEffectJar extends GuiContainer {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected void drawGuiContainerForegroundLayer(int par1, int par2) {
|
protected void drawGuiContainerForegroundLayer(int par1, int par2) {
|
||||||
fontRendererObj.drawString("Inventory", 9, 63, 0);
|
fontRendererObj.drawString(StatCollector.translateToLocal("container.inventory"), 9, 63, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|||||||
@@ -4,6 +4,7 @@ import net.minecraft.client.gui.GuiButton;
|
|||||||
import net.minecraft.client.gui.inventory.GuiContainer;
|
import net.minecraft.client.gui.inventory.GuiContainer;
|
||||||
import net.minecraft.entity.player.InventoryPlayer;
|
import net.minecraft.entity.player.InventoryPlayer;
|
||||||
import net.minecraft.util.ResourceLocation;
|
import net.minecraft.util.ResourceLocation;
|
||||||
|
import net.minecraft.util.StatCollector;
|
||||||
|
|
||||||
import org.lwjgl.opengl.GL11;
|
import org.lwjgl.opengl.GL11;
|
||||||
|
|
||||||
@@ -20,7 +21,7 @@ public class GuiMagicApiary extends GuiContainer {
|
|||||||
CommonProxy.GUI_TEXTURE + "apiary.png");
|
CommonProxy.GUI_TEXTURE + "apiary.png");
|
||||||
|
|
||||||
private static final int WIDTH = 176;
|
private static final int WIDTH = 176;
|
||||||
private static final int HEIGHT = 190;
|
private static final int HEIGHT = 192;
|
||||||
|
|
||||||
private static final int LIFEBAR_WIDTH = 2;
|
private static final int LIFEBAR_WIDTH = 2;
|
||||||
private static final int LIFEBAR_HEIGHT = 46;
|
private static final int LIFEBAR_HEIGHT = 46;
|
||||||
@@ -67,7 +68,7 @@ public class GuiMagicApiary extends GuiContainer {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected void drawGuiContainerForegroundLayer(int par1, int par2) {
|
protected void drawGuiContainerForegroundLayer(int par1, int par2) {
|
||||||
fontRendererObj.drawString("Inventory", 9, 99, 0);
|
fontRendererObj.drawString(StatCollector.translateToLocal("container.inventory"), 9, 99, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|||||||
@@ -37,7 +37,7 @@ public class ItemDrop extends Item {
|
|||||||
@SideOnly(Side.CLIENT)
|
@SideOnly(Side.CLIENT)
|
||||||
@SuppressWarnings({ "unchecked", "rawtypes" })
|
@SuppressWarnings({ "unchecked", "rawtypes" })
|
||||||
public void getSubItems(Item item, CreativeTabs tabs, List list) {
|
public void getSubItems(Item item, CreativeTabs tabs, List list) {
|
||||||
for (DropType type : DropType.values()) {
|
for (DropType type : DropType.VALUES) {
|
||||||
list.add(this.getStackForType(type));
|
list.add(this.getStackForType(type));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -70,11 +70,11 @@ public class ItemDrop extends Item {
|
|||||||
@Override
|
@Override
|
||||||
@SideOnly(Side.CLIENT)
|
@SideOnly(Side.CLIENT)
|
||||||
public int getColorFromItemStack(ItemStack stack, int pass) {
|
public int getColorFromItemStack(ItemStack stack, int pass) {
|
||||||
int meta = Math.max(0, Math.min(DropType.values().length - 1, stack.getItemDamage()));
|
int meta = Math.max(0, Math.min(DropType.VALUES.length - 1, stack.getItemDamage()));
|
||||||
int colour = DropType.values()[meta].combColour[0];
|
int colour = DropType.VALUES[meta].combColour[0];
|
||||||
|
|
||||||
if (pass >= 1) {
|
if (pass >= 1) {
|
||||||
colour = DropType.values()[meta].combColour[1];
|
colour = DropType.VALUES[meta].combColour[1];
|
||||||
}
|
}
|
||||||
|
|
||||||
return colour;
|
return colour;
|
||||||
@@ -82,6 +82,6 @@ public class ItemDrop extends Item {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String getItemStackDisplayName(ItemStack stack) {
|
public String getItemStackDisplayName(ItemStack stack) {
|
||||||
return DropType.values()[stack.getItemDamage()].getName();
|
return DropType.VALUES[stack.getItemDamage()].getName();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -37,7 +37,7 @@ public class ItemNugget extends Item {
|
|||||||
@SideOnly(Side.CLIENT)
|
@SideOnly(Side.CLIENT)
|
||||||
@SuppressWarnings({ "unchecked", "rawtypes" })
|
@SuppressWarnings({ "unchecked", "rawtypes" })
|
||||||
public void getSubItems(Item item, CreativeTabs tab, List list) {
|
public void getSubItems(Item item, CreativeTabs tab, List list) {
|
||||||
for (NuggetType type : NuggetType.values()) {
|
for (NuggetType type : NuggetType.VALUES) {
|
||||||
if (type.isActive()) {
|
if (type.isActive()) {
|
||||||
list.add(new ItemStack(item, 1, type.ordinal()));
|
list.add(new ItemStack(item, 1, type.ordinal()));
|
||||||
}
|
}
|
||||||
@@ -46,12 +46,12 @@ public class ItemNugget extends Item {
|
|||||||
|
|
||||||
@SideOnly(Side.CLIENT)
|
@SideOnly(Side.CLIENT)
|
||||||
public void registerIcons(IIconRegister par1IconRegister) {
|
public void registerIcons(IIconRegister par1IconRegister) {
|
||||||
this.icons = new IIcon[NuggetType.values().length];
|
this.icons = new IIcon[NuggetType.VALUES.length];
|
||||||
for (int i = 0; i < NuggetType.values().length; i++) {
|
for (int i = 0; i < NuggetType.VALUES.length; i++) {
|
||||||
this.icons[i] = par1IconRegister.registerIcon(
|
this.icons[i] = par1IconRegister.registerIcon(
|
||||||
CommonProxy.DOMAIN + ":nugget"
|
CommonProxy.DOMAIN + ":nugget"
|
||||||
+ NuggetType.values()[i].name().substring(0, 1)
|
+ NuggetType.VALUES[i].name().substring(0, 1)
|
||||||
+ NuggetType.values()[i].name().substring(1).toLowerCase());
|
+ NuggetType.VALUES[i].name().substring(1).toLowerCase());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -63,6 +63,6 @@ public class ItemNugget extends Item {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String getItemStackDisplayName(ItemStack stack) {
|
public String getItemStackDisplayName(ItemStack stack) {
|
||||||
return NuggetType.values()[stack.getItemDamage()].getName();
|
return NuggetType.VALUES[stack.getItemDamage()].getName();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -36,7 +36,7 @@ public class ItemPropolis extends Item {
|
|||||||
@SideOnly(Side.CLIENT)
|
@SideOnly(Side.CLIENT)
|
||||||
@SuppressWarnings({ "unchecked", "rawtypes" })
|
@SuppressWarnings({ "unchecked", "rawtypes" })
|
||||||
public void getSubItems(Item item, CreativeTabs tabs, List list) {
|
public void getSubItems(Item item, CreativeTabs tabs, List list) {
|
||||||
for (PropolisType type : PropolisType.values()) {
|
for (PropolisType type : PropolisType.VALUES) {
|
||||||
list.add(this.getStackForType(type));
|
list.add(this.getStackForType(type));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -50,14 +50,14 @@ public class ItemPropolis extends Item {
|
|||||||
public int getColorFromItemStack(ItemStack stack, int pass) {
|
public int getColorFromItemStack(ItemStack stack, int pass) {
|
||||||
int colour = 0xffffff;
|
int colour = 0xffffff;
|
||||||
int meta = stack.getItemDamage();
|
int meta = stack.getItemDamage();
|
||||||
if (meta >= 0 && meta < PropolisType.values().length) {
|
if (meta >= 0 && meta < PropolisType.VALUES.length) {
|
||||||
colour = PropolisType.values()[meta].colour;
|
colour = PropolisType.VALUES[meta].colour;
|
||||||
}
|
}
|
||||||
return colour;
|
return colour;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String getItemStackDisplayName(ItemStack stack) {
|
public String getItemStackDisplayName(ItemStack stack) {
|
||||||
return PropolisType.values()[stack.getItemDamage()].getName();
|
return PropolisType.VALUES[stack.getItemDamage()].getName();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -45,14 +45,14 @@ public class ItemWax extends Item {
|
|||||||
@Override
|
@Override
|
||||||
@SideOnly(Side.CLIENT)
|
@SideOnly(Side.CLIENT)
|
||||||
public IIcon getIconFromDamage(int meta) {
|
public IIcon getIconFromDamage(int meta) {
|
||||||
return (WaxType.values()[meta].sparkly) ? this.itemIcon : this.secondaryIcon;
|
return (WaxType.VALUES[meta].sparkly) ? this.itemIcon : this.secondaryIcon;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@SideOnly(Side.CLIENT)
|
@SideOnly(Side.CLIENT)
|
||||||
@SuppressWarnings({ "unchecked", "rawtypes" })
|
@SuppressWarnings({ "unchecked", "rawtypes" })
|
||||||
public void getSubItems(Item item, CreativeTabs tabs, List list) {
|
public void getSubItems(Item item, CreativeTabs tabs, List list) {
|
||||||
for (WaxType type : WaxType.values()) {
|
for (WaxType type : WaxType.VALUES) {
|
||||||
list.add(this.getStackForType(type));
|
list.add(this.getStackForType(type));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -62,14 +62,14 @@ public class ItemWax extends Item {
|
|||||||
public int getColorFromItemStack(ItemStack stack, int pass) {
|
public int getColorFromItemStack(ItemStack stack, int pass) {
|
||||||
int colour = 0xffffff;
|
int colour = 0xffffff;
|
||||||
int meta = stack.getItemDamage();
|
int meta = stack.getItemDamage();
|
||||||
if (meta >= 0 && meta < WaxType.values().length) {
|
if (meta >= 0 && meta < WaxType.VALUES.length) {
|
||||||
colour = WaxType.values()[meta].colour;
|
colour = WaxType.VALUES[meta].colour;
|
||||||
}
|
}
|
||||||
return colour;
|
return colour;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String getItemStackDisplayName(ItemStack stack) {
|
public String getItemStackDisplayName(ItemStack stack) {
|
||||||
return WaxType.values()[stack.getItemDamage()].getName();
|
return WaxType.VALUES[stack.getItemDamage()].getName();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -11,7 +11,9 @@ public enum DropType {
|
|||||||
LUX("lux", 0xF5F3A4, 0xC9C87D),
|
LUX("lux", 0xF5F3A4, 0xC9C87D),
|
||||||
ENDEARING("endearing", 0x12E3D9, 0x069E97),;
|
ENDEARING("endearing", 0x12E3D9, 0x069E97),;
|
||||||
|
|
||||||
private DropType(String pName, int colourA, int colourB) {
|
public static final DropType[] VALUES = values();
|
||||||
|
|
||||||
|
DropType(String pName, int colourA, int colourB) {
|
||||||
this.name = pName;
|
this.name = pName;
|
||||||
this.combColour[0] = colourA;
|
this.combColour[0] = colourA;
|
||||||
this.combColour[1] = colourB;
|
this.combColour[1] = colourB;
|
||||||
|
|||||||
@@ -15,6 +15,8 @@ public enum NuggetType {
|
|||||||
EMERALD,
|
EMERALD,
|
||||||
APATITE,;
|
APATITE,;
|
||||||
|
|
||||||
|
public static final NuggetType[] VALUES = values();
|
||||||
|
|
||||||
private Item targetIngot;
|
private Item targetIngot;
|
||||||
private boolean active;
|
private boolean active;
|
||||||
|
|
||||||
|
|||||||
@@ -13,7 +13,9 @@ public enum PropolisType {
|
|||||||
ORDER("dull", 0xDDDDFF),
|
ORDER("dull", 0xDDDDFF),
|
||||||
CHAOS("magic", 0x555577),;
|
CHAOS("magic", 0x555577),;
|
||||||
|
|
||||||
private PropolisType(String pName, int overlayColour) {
|
public static final PropolisType[] VALUES = values();
|
||||||
|
|
||||||
|
PropolisType(String pName, int overlayColour) {
|
||||||
this.name = pName;
|
this.name = pName;
|
||||||
this.colour = overlayColour;
|
this.colour = overlayColour;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -8,7 +8,9 @@ public enum WaxType {
|
|||||||
SOUL("soul", false, 0x967C63),
|
SOUL("soul", false, 0x967C63),
|
||||||
AMNESIC("amnesic", true, 0x856DFF);
|
AMNESIC("amnesic", true, 0x856DFF);
|
||||||
|
|
||||||
private WaxType(String n, boolean sp, int c) {
|
public static final WaxType[] VALUES = values();
|
||||||
|
|
||||||
|
WaxType(String n, boolean sp, int c) {
|
||||||
this.name = n;
|
this.name = n;
|
||||||
this.sparkly = sp;
|
this.sparkly = sp;
|
||||||
this.colour = c;
|
this.colour = c;
|
||||||
|
|||||||
@@ -165,7 +165,7 @@ public class Config {
|
|||||||
public static Configuration configuration;
|
public static Configuration configuration;
|
||||||
|
|
||||||
// ---- Loaded mods -----------------------------------------
|
// ---- Loaded mods -----------------------------------------
|
||||||
public static boolean isGTLoaded = Loader.isModLoaded("gregtech");
|
public static boolean isGT5uNHLoaded = Loader.isModLoaded("gregtech_nh");
|
||||||
public static boolean isGTNHCoreModLoaded = Loader.isModLoaded("gregtech") && Loader.isModLoaded("dreamcraft");
|
public static boolean isGTNHCoreModLoaded = Loader.isModLoaded("gregtech") && Loader.isModLoaded("dreamcraft");
|
||||||
public static boolean isThaumicEnergisticsLoaded = Loader.isModLoaded("thaumicenergistics");
|
public static boolean isThaumicEnergisticsLoaded = Loader.isModLoaded("thaumicenergistics");
|
||||||
|
|
||||||
@@ -442,7 +442,7 @@ public class Config {
|
|||||||
hive = new BlockHive();
|
hive = new BlockHive();
|
||||||
GameRegistry.registerBlock(hive, ItemMagicHive.class, "hive");
|
GameRegistry.registerBlock(hive, ItemMagicHive.class, "hive");
|
||||||
|
|
||||||
for (HiveType t : HiveType.values()) {
|
for (HiveType t : HiveType.VALUES) {
|
||||||
hive.setHarvestLevel("scoop", 0, t.ordinal());
|
hive.setHarvestLevel("scoop", 0, t.ordinal());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -462,7 +462,7 @@ public class Config {
|
|||||||
private void setupNuggets() {
|
private void setupNuggets() {
|
||||||
nuggets = new ItemNugget();
|
nuggets = new ItemNugget();
|
||||||
String item;
|
String item;
|
||||||
for (NuggetType type : NuggetType.values()) {
|
for (NuggetType type : NuggetType.VALUES) {
|
||||||
LogHelper.info("Found nugget of type " + type.toString());
|
LogHelper.info("Found nugget of type " + type.toString());
|
||||||
item = type.toString().toLowerCase();
|
item = type.toString().toLowerCase();
|
||||||
item = Character.toString(item.charAt(0)).toUpperCase() + item.substring(1);
|
item = Character.toString(item.charAt(0)).toUpperCase() + item.substring(1);
|
||||||
|
|||||||
@@ -50,14 +50,16 @@ public class BlockUtil {
|
|||||||
|
|
||||||
public static List<Chunk> getChunksInSearchRange(World world, int xCoord, int zCoord, int searchRadius) {
|
public static List<Chunk> getChunksInSearchRange(World world, int xCoord, int zCoord, int searchRadius) {
|
||||||
List<Chunk> searchChunks = new ArrayList<Chunk>();
|
List<Chunk> searchChunks = new ArrayList<Chunk>();
|
||||||
int chunkRange = (int) Math.ceil(searchRadius / 16.0);
|
int minChunkX = (xCoord - searchRadius) >> 4;
|
||||||
int minChunkX = xCoord / 16 - chunkRange;
|
int maxChunkX = (xCoord + searchRadius) >> 4;
|
||||||
int maxChunkX = xCoord / 16 + chunkRange;
|
int minChunkZ = (zCoord - searchRadius) >> 4;
|
||||||
int minChunkZ = zCoord / 16 - chunkRange;
|
int maxChunkZ = (zCoord + searchRadius) >> 4;
|
||||||
int maxChunkZ = zCoord / 16 + chunkRange;
|
|
||||||
|
|
||||||
for (int chunkX = minChunkX; chunkX <= maxChunkX; ++chunkX) {
|
for (int chunkX = minChunkX; chunkX <= maxChunkX; ++chunkX) {
|
||||||
for (int chunkZ = minChunkZ; chunkZ <= maxChunkZ; ++chunkZ) {
|
for (int chunkZ = minChunkZ; chunkZ <= maxChunkZ; ++chunkZ) {
|
||||||
|
if (!world.blockExists(chunkX << 4, 0, chunkZ << 4)) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
Chunk chunk = world.getChunkFromChunkCoords(chunkX, chunkZ);
|
Chunk chunk = world.getChunkFromChunkCoords(chunkX, chunkZ);
|
||||||
if (chunk != null) searchChunks.add(chunk);
|
if (chunk != null) searchChunks.add(chunk);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -90,8 +90,8 @@ public class ItemBloodBaseFrame extends EnergyItems implements IHiveFrame {
|
|||||||
@Override
|
@Override
|
||||||
@SuppressWarnings({ "unchecked", "rawtypes" })
|
@SuppressWarnings({ "unchecked", "rawtypes" })
|
||||||
public void addInformation(ItemStack par1ItemStack, EntityPlayer par2EntityPlayer, List par3List, boolean par4) {
|
public void addInformation(ItemStack par1ItemStack, EntityPlayer par2EntityPlayer, List par3List, boolean par4) {
|
||||||
par3List.add(StatCollector.translateToLocal("You feel gross touching this"));
|
par3List.add(StatCollector.translateToLocal("tooltip.bloodBaseFrame.desc"));
|
||||||
par3List.add(StatCollector.translateToLocal("Uses " + String.valueOf(energyUsed) + " LP per cycle"));
|
par3List.add(StatCollector.translateToLocalFormatted("tooltip.bloodFrame.cost", energyUsed));
|
||||||
|
|
||||||
if (par1ItemStack.hasTagCompound()) {
|
if (par1ItemStack.hasTagCompound()) {
|
||||||
par3List.add(
|
par3List.add(
|
||||||
|
|||||||
@@ -91,7 +91,7 @@ public class ItemBloodFrame extends EnergyItems implements IHiveFrame {
|
|||||||
@SuppressWarnings({ "unchecked", "rawtypes" })
|
@SuppressWarnings({ "unchecked", "rawtypes" })
|
||||||
public void addInformation(ItemStack par1ItemStack, EntityPlayer par2EntityPlayer, List par3List, boolean par4) {
|
public void addInformation(ItemStack par1ItemStack, EntityPlayer par2EntityPlayer, List par3List, boolean par4) {
|
||||||
par3List.add(StatCollector.translateToLocal("tooltip.bloodframe.desc"));
|
par3List.add(StatCollector.translateToLocal("tooltip.bloodframe.desc"));
|
||||||
par3List.add(StatCollector.translateToLocal("Uses " + String.valueOf(energyUsed) + " LP per cycle"));
|
par3List.add(StatCollector.translateToLocalFormatted("tooltip.bloodFrame.cost", energyUsed));
|
||||||
|
|
||||||
if (par1ItemStack.hasTagCompound()) {
|
if (par1ItemStack.hasTagCompound()) {
|
||||||
par3List.add(
|
par3List.add(
|
||||||
|
|||||||
@@ -90,8 +90,8 @@ public class ItemFrenziedFrame extends EnergyItems implements IHiveFrame {
|
|||||||
@Override
|
@Override
|
||||||
@SuppressWarnings({ "unchecked", "rawtypes" })
|
@SuppressWarnings({ "unchecked", "rawtypes" })
|
||||||
public void addInformation(ItemStack par1ItemStack, EntityPlayer par2EntityPlayer, List par3List, boolean par4) {
|
public void addInformation(ItemStack par1ItemStack, EntityPlayer par2EntityPlayer, List par3List, boolean par4) {
|
||||||
par3List.add(StatCollector.translateToLocal("MAY CHAOS TAKE THE WORLD"));
|
par3List.add(StatCollector.translateToLocal("tooltip.FrenziedFlame.desc"));
|
||||||
par3List.add(StatCollector.translateToLocal("Uses " + String.valueOf(energyUsed) + " LP per cycle"));
|
par3List.add(StatCollector.translateToLocalFormatted("tooltip.bloodFrame.cost", energyUsed));
|
||||||
|
|
||||||
if (par1ItemStack.hasTagCompound()) {
|
if (par1ItemStack.hasTagCompound()) {
|
||||||
par3List.add(
|
par3List.add(
|
||||||
|
|||||||
@@ -69,7 +69,7 @@ public class TileEntityApimancersDrainerGT extends TileEntityApimancersDrainerCo
|
|||||||
MTEIndustrialApiary industrialApiary = getGTIndustrialApiary(GTMetaTileEntity);
|
MTEIndustrialApiary industrialApiary = getGTIndustrialApiary(GTMetaTileEntity);
|
||||||
int housingProductionMultiplier = super.getProductionMultiplier(modifier, queen, te);
|
int housingProductionMultiplier = super.getProductionMultiplier(modifier, queen, te);
|
||||||
return industrialApiary != null
|
return industrialApiary != null
|
||||||
? housingProductionMultiplier * (int) Math.ceil(Math.sqrt(industrialApiary.mSpeed))
|
? housingProductionMultiplier * (int) Math.ceil(Math.sqrt(industrialApiary.getSpeed()))
|
||||||
: housingProductionMultiplier;
|
: housingProductionMultiplier;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -158,6 +158,12 @@ item.bloodFrame.name=Sanguis Artus
|
|||||||
item.frenziedFrame.name=Maddening Frame of Frenzy
|
item.frenziedFrame.name=Maddening Frame of Frenzy
|
||||||
item.bloodSoakedFrame.name=Blood Frame
|
item.bloodSoakedFrame.name=Blood Frame
|
||||||
|
|
||||||
|
#Tooltips
|
||||||
|
tooltip.bloodBaseFrame.desc=You feel gross touching this
|
||||||
|
tooltip.bloodFrame.desc=Stirs Bees into a frenzy
|
||||||
|
tooltip.FrenziedFlame.desc=MAY CHAOS TAKE THE WORLD
|
||||||
|
tooltip.bloodFrame.cost=Uses %d LP per bee tick
|
||||||
|
|
||||||
#Capsules
|
#Capsules
|
||||||
item.capsule.magic.name=Magic Capsule
|
item.capsule.magic.name=Magic Capsule
|
||||||
capsule.magic=%s Magic Capsule
|
capsule.magic=%s Magic Capsule
|
||||||
@@ -214,7 +220,7 @@ moon.new=New Moon
|
|||||||
|
|
||||||
#Backpack
|
#Backpack
|
||||||
item.backpack.thaumaturgeT1.name=Thaumaturge's Backpack
|
item.backpack.thaumaturgeT1.name=Thaumaturge's Backpack
|
||||||
item.backpack.thaumaturgeT2.name=Thaumaturge's Backpack
|
item.backpack.thaumaturgeT2.name=Thaumaturge's Woven Backpack
|
||||||
backpack.thaumaturge=Thaumaturge's Backpack
|
backpack.thaumaturge=Thaumaturge's Backpack
|
||||||
|
|
||||||
#Itemgroups
|
#Itemgroups
|
||||||
|
|||||||
|
Before Width: | Height: | Size: 5.3 KiB After Width: | Height: | Size: 5.2 KiB |
|
Before Width: | Height: | Size: 2.2 KiB After Width: | Height: | Size: 1.9 KiB |
|
Before Width: | Height: | Size: 3.3 KiB After Width: | Height: | Size: 3.2 KiB |
|
Before Width: | Height: | Size: 348 B After Width: | Height: | Size: 249 B |
|
Before Width: | Height: | Size: 348 B After Width: | Height: | Size: 249 B |
|
Before Width: | Height: | Size: 378 B After Width: | Height: | Size: 267 B |
|
Before Width: | Height: | Size: 3.0 KiB After Width: | Height: | Size: 3.0 KiB |
|
Before Width: | Height: | Size: 3.0 KiB After Width: | Height: | Size: 3.0 KiB |
|
Before Width: | Height: | Size: 3.0 KiB After Width: | Height: | Size: 3.0 KiB |
|
Before Width: | Height: | Size: 3.0 KiB After Width: | Height: | Size: 3.0 KiB |
|
Before Width: | Height: | Size: 2.9 KiB After Width: | Height: | Size: 2.9 KiB |
|
Before Width: | Height: | Size: 2.9 KiB After Width: | Height: | Size: 2.9 KiB |
|
Before Width: | Height: | Size: 4.7 KiB After Width: | Height: | Size: 4.0 KiB |
|
Before Width: | Height: | Size: 5.5 KiB After Width: | Height: | Size: 4.1 KiB |
|
Before Width: | Height: | Size: 8.5 KiB After Width: | Height: | Size: 6.6 KiB |
|
Before Width: | Height: | Size: 8.3 KiB After Width: | Height: | Size: 6.8 KiB |
|
Before Width: | Height: | Size: 5.7 KiB After Width: | Height: | Size: 4.3 KiB |
|
Before Width: | Height: | Size: 6.3 KiB After Width: | Height: | Size: 4.5 KiB |
|
Before Width: | Height: | Size: 416 B After Width: | Height: | Size: 405 B |
|
Before Width: | Height: | Size: 719 B After Width: | Height: | Size: 718 B |
|
Before Width: | Height: | Size: 415 B After Width: | Height: | Size: 396 B |
|
Before Width: | Height: | Size: 1.3 KiB After Width: | Height: | Size: 1.3 KiB |
|
Before Width: | Height: | Size: 1.2 KiB After Width: | Height: | Size: 1.1 KiB |
|
Before Width: | Height: | Size: 1.2 KiB After Width: | Height: | Size: 1.1 KiB |
|
Before Width: | Height: | Size: 1.2 KiB After Width: | Height: | Size: 834 B |
|
Before Width: | Height: | Size: 1.2 KiB After Width: | Height: | Size: 640 B |
|
Before Width: | Height: | Size: 1.2 KiB After Width: | Height: | Size: 930 B |
|
Before Width: | Height: | Size: 1.2 KiB After Width: | Height: | Size: 912 B |
|
Before Width: | Height: | Size: 4.7 KiB After Width: | Height: | Size: 3.9 KiB |
|
Before Width: | Height: | Size: 8.6 KiB After Width: | Height: | Size: 6.6 KiB |
|
Before Width: | Height: | Size: 3.5 KiB After Width: | Height: | Size: 2.4 KiB |
|
Before Width: | Height: | Size: 2.9 KiB After Width: | Height: | Size: 2.8 KiB |
|
Before Width: | Height: | Size: 2.9 KiB After Width: | Height: | Size: 2.8 KiB |
|
Before Width: | Height: | Size: 2.9 KiB After Width: | Height: | Size: 2.8 KiB |
|
Before Width: | Height: | Size: 2.9 KiB After Width: | Height: | Size: 2.8 KiB |
|
Before Width: | Height: | Size: 2.9 KiB After Width: | Height: | Size: 2.8 KiB |
|
Before Width: | Height: | Size: 2.9 KiB After Width: | Height: | Size: 2.8 KiB |
|
Before Width: | Height: | Size: 1.5 KiB After Width: | Height: | Size: 1.4 KiB |
|
Before Width: | Height: | Size: 271 B After Width: | Height: | Size: 265 B |
|
Before Width: | Height: | Size: 305 B After Width: | Height: | Size: 258 B |
|
Before Width: | Height: | Size: 1.6 KiB After Width: | Height: | Size: 1.5 KiB |
|
Before Width: | Height: | Size: 412 B After Width: | Height: | Size: 347 B |
|
Before Width: | Height: | Size: 425 B After Width: | Height: | Size: 373 B |
|
Before Width: | Height: | Size: 403 B After Width: | Height: | Size: 322 B |
|
Before Width: | Height: | Size: 2.0 KiB After Width: | Height: | Size: 1.0 KiB |
|
Before Width: | Height: | Size: 2.6 KiB After Width: | Height: | Size: 2.0 KiB |
|
Before Width: | Height: | Size: 272 B After Width: | Height: | Size: 252 B |
|
Before Width: | Height: | Size: 47 KiB After Width: | Height: | Size: 47 KiB |
|
Before Width: | Height: | Size: 48 KiB After Width: | Height: | Size: 48 KiB |
|
Before Width: | Height: | Size: 412 B After Width: | Height: | Size: 347 B |
|
Before Width: | Height: | Size: 425 B After Width: | Height: | Size: 373 B |
|
Before Width: | Height: | Size: 403 B After Width: | Height: | Size: 322 B |
|
Before Width: | Height: | Size: 450 B After Width: | Height: | Size: 342 B |
|
Before Width: | Height: | Size: 48 KiB After Width: | Height: | Size: 48 KiB |
|
Before Width: | Height: | Size: 488 B After Width: | Height: | Size: 363 B |
|
Before Width: | Height: | Size: 48 KiB After Width: | Height: | Size: 48 KiB |
|
Before Width: | Height: | Size: 401 B After Width: | Height: | Size: 284 B |
|
Before Width: | Height: | Size: 363 B After Width: | Height: | Size: 314 B |
|
Before Width: | Height: | Size: 1.3 KiB After Width: | Height: | Size: 1.2 KiB |
|
Before Width: | Height: | Size: 1.5 KiB After Width: | Height: | Size: 1.3 KiB |
|
Before Width: | Height: | Size: 1.2 KiB After Width: | Height: | Size: 1.2 KiB |
|
Before Width: | Height: | Size: 3.0 KiB After Width: | Height: | Size: 2.9 KiB |
|
Before Width: | Height: | Size: 383 B After Width: | Height: | Size: 302 B |
|
Before Width: | Height: | Size: 277 B After Width: | Height: | Size: 252 B |
|
Before Width: | Height: | Size: 4.0 KiB After Width: | Height: | Size: 3.8 KiB |
|
Before Width: | Height: | Size: 2.8 KiB After Width: | Height: | Size: 2.8 KiB |
|
Before Width: | Height: | Size: 3.5 KiB After Width: | Height: | Size: 3.3 KiB |
|
Before Width: | Height: | Size: 3.2 KiB After Width: | Height: | Size: 3.2 KiB |
|
Before Width: | Height: | Size: 3.0 KiB After Width: | Height: | Size: 3.0 KiB |