mirror of
https://github.com/GTNewHorizons/MagicBees.git
synced 2026-11-25 06:24:54 +00:00
Compare commits
58
Commits
2.10.10-GTNH
..
mu
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
2ab98749cb | ||
|
|
ca02e2d91f | ||
|
|
24e473018e | ||
|
|
d635a7a406 | ||
|
|
f82ed6358a | ||
|
|
1ed50ed660 | ||
|
|
f38854d65e | ||
|
|
294e579aa7 | ||
|
|
18f7074caa | ||
|
|
fb96b5f764 | ||
|
|
eedc659dbb | ||
|
|
a8a32c9763 | ||
|
|
6ba6d066a2 | ||
|
|
20ce9aa472 | ||
|
|
65e3ad1871 | ||
|
|
edfdc477eb | ||
|
|
c782a9bf34 | ||
|
|
8a6eb5068b | ||
|
|
e6b536b05c | ||
|
|
58eb38d7c1 | ||
|
|
49617a2900 | ||
|
|
5176a61f98 | ||
|
|
44f8d4d90d | ||
|
|
0fca525643 | ||
|
|
67d259b365 | ||
|
|
19221a6075 | ||
|
|
8ace30decd | ||
|
|
9beaf61993 | ||
|
|
7f381a7729 | ||
|
|
a8296f2ecf | ||
|
|
90b36cca2a | ||
|
|
94faecf80e | ||
|
|
82249614d4 | ||
|
|
e1b4c3073f | ||
|
|
2775665493 | ||
|
|
5fa28362b6 | ||
|
|
e61f57e6f3 | ||
|
|
354a09449c | ||
|
|
11cad05353 | ||
|
|
c917b9fae2 | ||
|
|
4fff7eb524 | ||
|
|
da4ced5fca | ||
|
|
f970d0ce11 | ||
|
|
b637b24d8b | ||
|
|
d6ab1dc83a | ||
|
|
b0ad29e234 | ||
|
|
fc9d138798 | ||
|
|
5575acbdaf | ||
|
|
4d9a31f945 | ||
|
|
0133560c6d | ||
|
|
9976f0c995 | ||
|
|
0b2a8fa3e9 | ||
|
|
62cd1ff608 | ||
|
|
b743b909d3 | ||
|
|
365b19a559 | ||
|
|
2ba2286060 | ||
|
|
53d085d292 | ||
|
|
4345981958 |
No files matched your search
@@ -3,9 +3,9 @@ name: Build and test
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
branches: [ master, main ]
|
||||
branches: [ master, main, release/** ]
|
||||
push:
|
||||
branches: [ master, main ]
|
||||
branches: [ master, main, release/** ]
|
||||
|
||||
jobs:
|
||||
build-and-test:
|
||||
|
||||
+12
-7
@@ -1,14 +1,19 @@
|
||||
// Add your dependencies here
|
||||
|
||||
dependencies {
|
||||
api('com.github.GTNewHorizons:ForestryMC:4.11.8:dev')
|
||||
api('com.ruling_0:MaterialLib:0.24.0-mu:dev')
|
||||
api('com.github.GTNewHorizons:ForestryMC:4.12.1:dev')
|
||||
|
||||
compileOnly('com.github.GTNewHorizons:BloodMagic:1.8.14:dev')
|
||||
compileOnly('com.github.GTNewHorizons:ThaumicHorizons:1.8.11:dev')
|
||||
compileOnly('com.github.GTNewHorizons:Baubles-Expanded:2.2.11-GTNH:dev') {transitive = false}
|
||||
compileOnly('com.github.GTNewHorizons:Botania:1.13.16-GTNH:api') {transitive = false}
|
||||
compileOnly('com.github.GTNewHorizons:BloodMagic:1.10.0:dev')
|
||||
compileOnly('com.github.GTNewHorizons:ThaumicHorizons:1.9.0:dev')
|
||||
compileOnly('com.github.GTNewHorizons:Baubles-Expanded:2.3.0-GTNH:dev') {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('com.github.GTNewHorizons:GT5-Unofficial:5.09.52.347:dev')
|
||||
compileOnly('com.github.GTNewHorizons:ThaumicEnergistics:1.7.34-GTNH:dev')
|
||||
compileOnly('com.github.GTNewHorizons:GT5-Unofficial:5.99.99-mu60: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,4 +1,5 @@
|
||||
// Add any additional repositories for your dependencies here
|
||||
|
||||
repositories {
|
||||
mavenLocal()
|
||||
}
|
||||
@@ -19,7 +19,7 @@ public class BeeGenomeManager {
|
||||
|
||||
// Basic genome for All thaumic bees.
|
||||
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.SPEED.ordinal()] = Allele.getBaseAllele("speedSlowest");
|
||||
|
||||
@@ -131,7 +131,11 @@ import net.minecraft.init.Items;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraftforge.oredict.OreDictionary;
|
||||
|
||||
import gregtech.api.enums.Materials;
|
||||
import com.ruling_0.materiallib.api.Material;
|
||||
import com.ruling_0.materiallib.api.MaterialLibAPI;
|
||||
|
||||
import gregtech.api.enums.materials.Materials;
|
||||
import gregtech.api.enums.materials.Shapes;
|
||||
import magicbees.item.types.CombType;
|
||||
import magicbees.item.types.DropType;
|
||||
import magicbees.item.types.NuggetType;
|
||||
@@ -260,12 +264,16 @@ public class BeeProductHelper {
|
||||
INVISIBLE.addProduct(Config.combs.getStackForType(CombType.MUNDANE), 0.35f);
|
||||
}
|
||||
|
||||
private static ItemStack getNugget(Material material) {
|
||||
return MaterialLibAPI.getStack(material, Shapes.nugget, 1);
|
||||
}
|
||||
|
||||
public static void initOreDictSProducts() {
|
||||
boolean isGTNHCoreModLoaded = Config.isGTNHCoreModLoaded;
|
||||
SILVER.addProduct(ForestryHelper.itemHoneycomb, 0.10f);
|
||||
if (OreDictionary.getOres("nuggetSilver").size() > 0) {
|
||||
SILVER.addSpecialty(
|
||||
isGTNHCoreModLoaded ? Materials.Silver.getNuggets(1) : OreDictionary.getOres("nuggetSilver").get(0),
|
||||
isGTNHCoreModLoaded ? getNugget(Materials.Silver) : OreDictionary.getOres("nuggetSilver").get(0),
|
||||
0.16f);
|
||||
} else {
|
||||
SILVER.setInactive();
|
||||
@@ -274,7 +282,7 @@ public class BeeProductHelper {
|
||||
LEAD.addProduct(ForestryHelper.itemHoneycomb, 0.10f);
|
||||
if (OreDictionary.getOres("nuggetLead").size() > 0) {
|
||||
LEAD.addSpecialty(
|
||||
isGTNHCoreModLoaded ? Materials.Lead.getNuggets(1) : OreDictionary.getOres("nuggetLead").get(0),
|
||||
isGTNHCoreModLoaded ? getNugget(Materials.Lead) : OreDictionary.getOres("nuggetLead").get(0),
|
||||
0.17f);
|
||||
} else {
|
||||
LEAD.setInactive();
|
||||
@@ -291,7 +299,7 @@ public class BeeProductHelper {
|
||||
TE_PLATINUM.addProduct(ForestryHelper.itemHoneycomb, 0.10f);
|
||||
if (OreDictionary.getOres("nuggetPlatinum").size() > 0) {
|
||||
TE_PLATINUM.addSpecialty(
|
||||
isGTNHCoreModLoaded ? Materials.Platinum.getNuggets(1)
|
||||
isGTNHCoreModLoaded ? getNugget(Materials.Platinum)
|
||||
: OreDictionary.getOres("nuggetPlatinum").get(0),
|
||||
0.18f);
|
||||
} else {
|
||||
@@ -301,7 +309,7 @@ public class BeeProductHelper {
|
||||
TE_NICKEL.addProduct(ForestryHelper.itemHoneycomb, 0.10f);
|
||||
if (OreDictionary.getOres("nuggetNickel").size() > 0) {
|
||||
TE_NICKEL.addSpecialty(
|
||||
isGTNHCoreModLoaded ? Materials.Nickel.getNuggets(1) : OreDictionary.getOres("nuggetNickel").get(0),
|
||||
isGTNHCoreModLoaded ? getNugget(Materials.Nickel) : OreDictionary.getOres("nuggetNickel").get(0),
|
||||
0.18f);
|
||||
} else {
|
||||
TE_NICKEL.setInactive();
|
||||
@@ -310,7 +318,7 @@ public class BeeProductHelper {
|
||||
ARDITE.addProduct(ForestryHelper.itemHoneycomb, 0.10f);
|
||||
if (OreDictionary.getOres("nuggetArdite").size() > 0) {
|
||||
ARDITE.addSpecialty(
|
||||
isGTNHCoreModLoaded ? Materials.Ardite.getNuggets(1) : OreDictionary.getOres("nuggetArdite").get(0),
|
||||
isGTNHCoreModLoaded ? getNugget(Materials.Ardite) : OreDictionary.getOres("nuggetArdite").get(0),
|
||||
0.18f);
|
||||
} else {
|
||||
ARDITE.setInactive();
|
||||
@@ -319,7 +327,7 @@ public class BeeProductHelper {
|
||||
COBALT.addProduct(ForestryHelper.itemHoneycomb, 0.10f);
|
||||
if (OreDictionary.getOres("nuggetCobalt").size() > 0) {
|
||||
COBALT.addSpecialty(
|
||||
isGTNHCoreModLoaded ? Materials.Cobalt.getNuggets(1) : OreDictionary.getOres("nuggetCobalt").get(0),
|
||||
isGTNHCoreModLoaded ? getNugget(Materials.Cobalt) : OreDictionary.getOres("nuggetCobalt").get(0),
|
||||
0.18f);
|
||||
} else {
|
||||
COBALT.setInactive();
|
||||
@@ -328,7 +336,7 @@ public class BeeProductHelper {
|
||||
TE_BRONZE.addProduct(ForestryHelper.itemHoneycomb, 0.10f);
|
||||
if (OreDictionary.getOres("nuggetBronze").size() > 0) {
|
||||
TE_BRONZE.addSpecialty(
|
||||
isGTNHCoreModLoaded ? Materials.Bronze.getNuggets(1) : OreDictionary.getOres("nuggetBronze").get(0),
|
||||
isGTNHCoreModLoaded ? getNugget(Materials.Bronze) : OreDictionary.getOres("nuggetBronze").get(0),
|
||||
0.18f);
|
||||
} else {
|
||||
TE_BRONZE.setInactive();
|
||||
@@ -337,7 +345,7 @@ public class BeeProductHelper {
|
||||
TE_INVAR.addProduct(ForestryHelper.itemHoneycomb, 0.10f);
|
||||
if (OreDictionary.getOres("nuggetInvar").size() > 0) {
|
||||
TE_INVAR.addSpecialty(
|
||||
isGTNHCoreModLoaded ? Materials.Invar.getNuggets(1) : OreDictionary.getOres("nuggetInvar").get(0),
|
||||
isGTNHCoreModLoaded ? getNugget(Materials.Invar) : OreDictionary.getOres("nuggetInvar").get(0),
|
||||
0.18f);
|
||||
} else {
|
||||
TE_INVAR.setInactive();
|
||||
@@ -346,7 +354,7 @@ public class BeeProductHelper {
|
||||
TE_ELECTRUM.addProduct(ForestryHelper.itemHoneycomb, 0.10f);
|
||||
if (OreDictionary.getOres("nuggetElectrum").size() > 0) {
|
||||
TE_ELECTRUM.addSpecialty(
|
||||
isGTNHCoreModLoaded ? Materials.Electrum.getNuggets(1)
|
||||
isGTNHCoreModLoaded ? getNugget(Materials.Electrum)
|
||||
: OreDictionary.getOres("nuggetElectrum").get(0),
|
||||
0.18f);
|
||||
} else {
|
||||
@@ -356,7 +364,7 @@ public class BeeProductHelper {
|
||||
MANYULLYN.addProduct(ForestryHelper.itemHoneycomb, 0.10f);
|
||||
if (OreDictionary.getOres("nuggetManyullyn").size() > 0) {
|
||||
MANYULLYN.addSpecialty(
|
||||
isGTNHCoreModLoaded ? Materials.Manyullyn.getNuggets(1)
|
||||
isGTNHCoreModLoaded ? getNugget(Materials.Manyullyn)
|
||||
: OreDictionary.getOres("nuggetManyullyn").get(0),
|
||||
0.18f);
|
||||
} else {
|
||||
|
||||
@@ -43,7 +43,7 @@ public class BlockHive extends Block {
|
||||
@Override
|
||||
public int getLightValue(IBlockAccess world, int x, int y, int z) {
|
||||
int meta = world.getBlockMetadata(x, y, z);
|
||||
if (meta < 0 || meta > HiveType.values().length) {
|
||||
if (meta < 0 || meta > HiveType.VALUES.length) {
|
||||
meta = 0;
|
||||
}
|
||||
return HiveType.getHiveFromMeta(meta).getLightValue();
|
||||
@@ -54,7 +54,7 @@ public class BlockHive extends Block {
|
||||
@Override
|
||||
public void getSubBlocks(Item item, CreativeTabs tab, List itemsList) {
|
||||
// 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) {
|
||||
itemsList.add(new ItemStack(this, 1, type.ordinal()));
|
||||
}
|
||||
@@ -75,7 +75,7 @@ public class BlockHive extends Block {
|
||||
@Override
|
||||
@SideOnly(Side.CLIENT)
|
||||
public IIcon getIcon(int side, int meta) {
|
||||
if (meta < 0 || meta > HiveType.values().length) {
|
||||
if (meta < 0 || meta > HiveType.VALUES.length) {
|
||||
meta = 0;
|
||||
}
|
||||
return HiveType.getHiveFromMeta(meta).getIconForSide(side);
|
||||
|
||||
@@ -29,6 +29,8 @@ public enum HiveType {
|
||||
INFERNAL("infernal", BeeSpecies.INFERNAL, 15, true),
|
||||
OBLIVION("oblivion", BeeSpecies.OBLIVION, 7, true),;
|
||||
|
||||
public static final HiveType[] VALUES = values();
|
||||
|
||||
private static String[] nameList;
|
||||
|
||||
private String name;
|
||||
@@ -43,8 +45,8 @@ public enum HiveType {
|
||||
public static HiveType getHiveFromMeta(int meta) {
|
||||
HiveType type = CURIOUS;
|
||||
|
||||
if (meta > 0 && meta < HiveType.values().length) {
|
||||
type = HiveType.values()[meta];
|
||||
if (meta > 0 && meta < HiveType.VALUES.length) {
|
||||
type = HiveType.VALUES[meta];
|
||||
}
|
||||
|
||||
return type;
|
||||
@@ -96,7 +98,7 @@ public enum HiveType {
|
||||
|
||||
@SideOnly(Side.CLIENT)
|
||||
public static void registerIcons(IIconRegister register) {
|
||||
for (HiveType type : HiveType.values()) {
|
||||
for (HiveType type : HiveType.VALUES) {
|
||||
type.icons = new IIcon[2];
|
||||
|
||||
type.icons[0] = register.registerIcon(CommonProxy.DOMAIN + ":beehive." + type.ordinal() + ".top");
|
||||
@@ -167,9 +169,9 @@ public enum HiveType {
|
||||
}
|
||||
|
||||
private static String[] generateNames() {
|
||||
String[] names = new String[values().length];
|
||||
String[] names = new String[VALUES.length];
|
||||
for (int i = 0; i < names.length; ++i) {
|
||||
names[i] = values()[i].name;
|
||||
names[i] = VALUES[i].name;
|
||||
}
|
||||
return names;
|
||||
}
|
||||
|
||||
@@ -37,7 +37,7 @@ public class ItemDrop extends Item {
|
||||
@SideOnly(Side.CLIENT)
|
||||
@SuppressWarnings({ "unchecked", "rawtypes" })
|
||||
public void getSubItems(Item item, CreativeTabs tabs, List list) {
|
||||
for (DropType type : DropType.values()) {
|
||||
for (DropType type : DropType.VALUES) {
|
||||
list.add(this.getStackForType(type));
|
||||
}
|
||||
}
|
||||
@@ -70,11 +70,11 @@ public class ItemDrop extends Item {
|
||||
@Override
|
||||
@SideOnly(Side.CLIENT)
|
||||
public int getColorFromItemStack(ItemStack stack, int pass) {
|
||||
int meta = Math.max(0, Math.min(DropType.values().length - 1, stack.getItemDamage()));
|
||||
int colour = DropType.values()[meta].combColour[0];
|
||||
int meta = Math.max(0, Math.min(DropType.VALUES.length - 1, stack.getItemDamage()));
|
||||
int colour = DropType.VALUES[meta].combColour[0];
|
||||
|
||||
if (pass >= 1) {
|
||||
colour = DropType.values()[meta].combColour[1];
|
||||
colour = DropType.VALUES[meta].combColour[1];
|
||||
}
|
||||
|
||||
return colour;
|
||||
@@ -82,6 +82,6 @@ public class ItemDrop extends Item {
|
||||
|
||||
@Override
|
||||
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)
|
||||
@SuppressWarnings({ "unchecked", "rawtypes" })
|
||||
public void getSubItems(Item item, CreativeTabs tab, List list) {
|
||||
for (NuggetType type : NuggetType.values()) {
|
||||
for (NuggetType type : NuggetType.VALUES) {
|
||||
if (type.isActive()) {
|
||||
list.add(new ItemStack(item, 1, type.ordinal()));
|
||||
}
|
||||
@@ -46,12 +46,12 @@ public class ItemNugget extends Item {
|
||||
|
||||
@SideOnly(Side.CLIENT)
|
||||
public void registerIcons(IIconRegister par1IconRegister) {
|
||||
this.icons = new IIcon[NuggetType.values().length];
|
||||
for (int i = 0; i < NuggetType.values().length; i++) {
|
||||
this.icons = new IIcon[NuggetType.VALUES.length];
|
||||
for (int i = 0; i < NuggetType.VALUES.length; i++) {
|
||||
this.icons[i] = par1IconRegister.registerIcon(
|
||||
CommonProxy.DOMAIN + ":nugget"
|
||||
+ NuggetType.values()[i].name().substring(0, 1)
|
||||
+ NuggetType.values()[i].name().substring(1).toLowerCase());
|
||||
+ NuggetType.VALUES[i].name().substring(0, 1)
|
||||
+ NuggetType.VALUES[i].name().substring(1).toLowerCase());
|
||||
}
|
||||
}
|
||||
|
||||
@@ -63,6 +63,6 @@ public class ItemNugget extends Item {
|
||||
|
||||
@Override
|
||||
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)
|
||||
@SuppressWarnings({ "unchecked", "rawtypes" })
|
||||
public void getSubItems(Item item, CreativeTabs tabs, List list) {
|
||||
for (PropolisType type : PropolisType.values()) {
|
||||
for (PropolisType type : PropolisType.VALUES) {
|
||||
list.add(this.getStackForType(type));
|
||||
}
|
||||
}
|
||||
@@ -50,14 +50,14 @@ public class ItemPropolis extends Item {
|
||||
public int getColorFromItemStack(ItemStack stack, int pass) {
|
||||
int colour = 0xffffff;
|
||||
int meta = stack.getItemDamage();
|
||||
if (meta >= 0 && meta < PropolisType.values().length) {
|
||||
colour = PropolisType.values()[meta].colour;
|
||||
if (meta >= 0 && meta < PropolisType.VALUES.length) {
|
||||
colour = PropolisType.VALUES[meta].colour;
|
||||
}
|
||||
return colour;
|
||||
}
|
||||
|
||||
@Override
|
||||
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
|
||||
@SideOnly(Side.CLIENT)
|
||||
public IIcon getIconFromDamage(int meta) {
|
||||
return (WaxType.values()[meta].sparkly) ? this.itemIcon : this.secondaryIcon;
|
||||
return (WaxType.VALUES[meta].sparkly) ? this.itemIcon : this.secondaryIcon;
|
||||
}
|
||||
|
||||
@Override
|
||||
@SideOnly(Side.CLIENT)
|
||||
@SuppressWarnings({ "unchecked", "rawtypes" })
|
||||
public void getSubItems(Item item, CreativeTabs tabs, List list) {
|
||||
for (WaxType type : WaxType.values()) {
|
||||
for (WaxType type : WaxType.VALUES) {
|
||||
list.add(this.getStackForType(type));
|
||||
}
|
||||
}
|
||||
@@ -62,14 +62,14 @@ public class ItemWax extends Item {
|
||||
public int getColorFromItemStack(ItemStack stack, int pass) {
|
||||
int colour = 0xffffff;
|
||||
int meta = stack.getItemDamage();
|
||||
if (meta >= 0 && meta < WaxType.values().length) {
|
||||
colour = WaxType.values()[meta].colour;
|
||||
if (meta >= 0 && meta < WaxType.VALUES.length) {
|
||||
colour = WaxType.VALUES[meta].colour;
|
||||
}
|
||||
return colour;
|
||||
}
|
||||
|
||||
@Override
|
||||
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),
|
||||
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.combColour[0] = colourA;
|
||||
this.combColour[1] = colourB;
|
||||
|
||||
@@ -15,6 +15,8 @@ public enum NuggetType {
|
||||
EMERALD,
|
||||
APATITE,;
|
||||
|
||||
public static final NuggetType[] VALUES = values();
|
||||
|
||||
private Item targetIngot;
|
||||
private boolean active;
|
||||
|
||||
|
||||
@@ -13,7 +13,9 @@ public enum PropolisType {
|
||||
ORDER("dull", 0xDDDDFF),
|
||||
CHAOS("magic", 0x555577),;
|
||||
|
||||
private PropolisType(String pName, int overlayColour) {
|
||||
public static final PropolisType[] VALUES = values();
|
||||
|
||||
PropolisType(String pName, int overlayColour) {
|
||||
this.name = pName;
|
||||
this.colour = overlayColour;
|
||||
}
|
||||
|
||||
@@ -8,7 +8,9 @@ public enum WaxType {
|
||||
SOUL("soul", false, 0x967C63),
|
||||
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.sparkly = sp;
|
||||
this.colour = c;
|
||||
|
||||
@@ -442,7 +442,7 @@ public class Config {
|
||||
hive = new BlockHive();
|
||||
GameRegistry.registerBlock(hive, ItemMagicHive.class, "hive");
|
||||
|
||||
for (HiveType t : HiveType.values()) {
|
||||
for (HiveType t : HiveType.VALUES) {
|
||||
hive.setHarvestLevel("scoop", 0, t.ordinal());
|
||||
}
|
||||
}
|
||||
@@ -462,7 +462,7 @@ public class Config {
|
||||
private void setupNuggets() {
|
||||
nuggets = new ItemNugget();
|
||||
String item;
|
||||
for (NuggetType type : NuggetType.values()) {
|
||||
for (NuggetType type : NuggetType.VALUES) {
|
||||
LogHelper.info("Found nugget of type " + type.toString());
|
||||
item = type.toString().toLowerCase();
|
||||
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) {
|
||||
List<Chunk> searchChunks = new ArrayList<Chunk>();
|
||||
int chunkRange = (int) Math.ceil(searchRadius / 16.0);
|
||||
int minChunkX = xCoord / 16 - chunkRange;
|
||||
int maxChunkX = xCoord / 16 + chunkRange;
|
||||
int minChunkZ = zCoord / 16 - chunkRange;
|
||||
int maxChunkZ = zCoord / 16 + chunkRange;
|
||||
int minChunkX = (xCoord - searchRadius) >> 4;
|
||||
int maxChunkX = (xCoord + searchRadius) >> 4;
|
||||
int minChunkZ = (zCoord - searchRadius) >> 4;
|
||||
int maxChunkZ = (zCoord + searchRadius) >> 4;
|
||||
|
||||
for (int chunkX = minChunkX; chunkX <= maxChunkX; ++chunkX) {
|
||||
for (int chunkZ = minChunkZ; chunkZ <= maxChunkZ; ++chunkZ) {
|
||||
if (!world.blockExists(chunkX << 4, 0, chunkZ << 4)) {
|
||||
continue;
|
||||
}
|
||||
Chunk chunk = world.getChunkFromChunkCoords(chunkX, chunkZ);
|
||||
if (chunk != null) searchChunks.add(chunk);
|
||||
}
|
||||
|
||||
@@ -69,7 +69,7 @@ public class TileEntityApimancersDrainerGT extends TileEntityApimancersDrainerCo
|
||||
MTEIndustrialApiary industrialApiary = getGTIndustrialApiary(GTMetaTileEntity);
|
||||
int housingProductionMultiplier = super.getProductionMultiplier(modifier, queen, te);
|
||||
return industrialApiary != null
|
||||
? housingProductionMultiplier * (int) Math.ceil(Math.sqrt(industrialApiary.mSpeed))
|
||||
? housingProductionMultiplier * (int) Math.ceil(Math.sqrt(industrialApiary.getSpeed()))
|
||||
: housingProductionMultiplier;
|
||||
}
|
||||
|
||||
|
||||
@@ -220,7 +220,7 @@ moon.new=New Moon
|
||||
|
||||
#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
|
||||
|
||||
#Itemgroups
|
||||
|
||||
Reference in new issue
Block a user