mirror of
https://github.com/GTNewHorizons/MagicBees.git
synced 2026-11-25 06:24:54 +00:00
Compare commits
6
Commits
2.10.11-GTNH
...
master
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
24e473018e | ||
|
|
d635a7a406 | ||
|
|
f82ed6358a | ||
|
|
1ed50ed660 | ||
|
|
f38854d65e | ||
|
|
53d085d292 |
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:
|
||||||
|
|||||||
+11
-7
@@ -1,14 +1,18 @@
|
|||||||
// Add your dependencies here
|
// Add your dependencies here
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
api('com.github.GTNewHorizons:ForestryMC:4.11.8:dev')
|
api('com.github.GTNewHorizons:ForestryMC:4.12.1:dev')
|
||||||
|
|
||||||
compileOnly('com.github.GTNewHorizons:BloodMagic:1.8.14: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.11-GTNH:dev') {transitive = false}
|
compileOnly('com.github.GTNewHorizons:Baubles-Expanded:2.3.0-GTNH:dev') {transitive = false}
|
||||||
compileOnly('com.github.GTNewHorizons:Botania:1.13.16-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.347:dev')
|
compileOnly('com.github.GTNewHorizons:GT5-Unofficial:5.09.55.13:dev')
|
||||||
compileOnly('com.github.GTNewHorizons:ThaumicEnergistics:1.7.34-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')
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -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();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -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;
|
||||||
|
|||||||
@@ -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);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -220,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
|
||||||
|
|||||||
Reference in new issue
Block a user