mirror of
https://github.com/GTNewHorizons/Botania.git
synced 2026-11-25 22:44:44 +00:00
much cleanup wow
This commit is contained in:
1 parent
2bb8f3521c
commit
beb8503dd2
7 files changed
+23
-23
No files matched your search
@@ -28,7 +28,7 @@ import vazkii.botania.common.lib.LibBlockNames;
|
||||
public class BlockForestEye extends BlockModContainer implements ILexiconable {
|
||||
|
||||
IIcon[] icons;
|
||||
|
||||
|
||||
public BlockForestEye() {
|
||||
super(Material.iron);
|
||||
setHardness(5.0F);
|
||||
@@ -49,7 +49,7 @@ public class BlockForestEye extends BlockModContainer implements ILexiconable {
|
||||
public IIcon getIcon(int par1, int par2) {
|
||||
return icons[Math.min(icons.length - 1, par1)];
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public boolean renderAsNormalBlock() {
|
||||
return false;
|
||||
@@ -59,12 +59,12 @@ public class BlockForestEye extends BlockModContainer implements ILexiconable {
|
||||
public boolean isOpaqueCube() {
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public boolean hasComparatorInputOverride() {
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public int getComparatorInputOverride(World par1World, int par2, int par3, int par4, int par5) {
|
||||
TileForestEye eye = (TileForestEye) par1World.getTileEntity(par2, par3, par4);
|
||||
|
||||
@@ -17,15 +17,15 @@ import net.minecraft.util.AxisAlignedBB;
|
||||
public class TileForestEye extends TileMod {
|
||||
|
||||
public int entities = 0;
|
||||
|
||||
|
||||
@Override
|
||||
public void updateEntity() {
|
||||
int range = 6;
|
||||
int entityCount = worldObj.getEntitiesWithinAABB(EntityAnimal.class, AxisAlignedBB.getBoundingBox(xCoord - range, yCoord - range, zCoord - range, xCoord + range + 1, yCoord + range + 1, zCoord + range + 1)).size();
|
||||
int entityCount = worldObj.getEntitiesWithinAABB(EntityAnimal.class, AxisAlignedBB.getBoundingBox(xCoord - range, yCoord - range, zCoord - range, xCoord + range + 1, yCoord + range + 1, zCoord + range + 1)).size();
|
||||
if(entityCount != entities) {
|
||||
entities = entityCount;
|
||||
worldObj.func_147453_f(xCoord, yCoord, zCoord, worldObj.getBlock(xCoord, yCoord, zCoord));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
@@ -43,9 +43,9 @@ public final class TerrasteelCraftingHandler {
|
||||
item.worldObj.playSoundAtEntity(item, "random.levelup", 1F, 1F);
|
||||
|
||||
getManaFromPools : {
|
||||
int x = (int) MathHelper.floor_double(item.posX);
|
||||
int y = (int) MathHelper.floor_double(item.posY);
|
||||
int z = (int) MathHelper.floor_double(item.posZ);
|
||||
int x = MathHelper.floor_double(item.posX);
|
||||
int y = MathHelper.floor_double(item.posY);
|
||||
int z = MathHelper.floor_double(item.posZ);
|
||||
|
||||
for(int i = -4; i < 5; i++)
|
||||
for(int j = -4; j < 5; j++)
|
||||
@@ -69,9 +69,9 @@ public final class TerrasteelCraftingHandler {
|
||||
}
|
||||
|
||||
static int validateCraftingItem(EntityItem item) {
|
||||
int x = (int) MathHelper.floor_double(item.posX);
|
||||
int y = (int) MathHelper.floor_double(item.posY);
|
||||
int z = (int) MathHelper.floor_double(item.posZ);
|
||||
int x = MathHelper.floor_double(item.posX);
|
||||
int y = MathHelper.floor_double(item.posY);
|
||||
int z = MathHelper.floor_double(item.posZ);
|
||||
|
||||
if(item.worldObj.getBlock(x, y - 1, z) != Blocks.beacon)
|
||||
return -1;
|
||||
@@ -168,9 +168,9 @@ public final class TerrasteelCraftingHandler {
|
||||
}
|
||||
|
||||
static void finalizeCraftingRecipe(EntityItem item) {
|
||||
int x = (int) MathHelper.floor_double(item.posX);
|
||||
int y = (int) MathHelper.floor_double(item.posY);
|
||||
int z = (int) MathHelper.floor_double(item.posZ);
|
||||
int x = MathHelper.floor_double(item.posX);
|
||||
int y = MathHelper.floor_double(item.posY);
|
||||
int z = MathHelper.floor_double(item.posZ);
|
||||
|
||||
List<EntityItem> items = item.worldObj.getEntitiesWithinAABB(EntityItem.class, AxisAlignedBB.getBoundingBox(x, y, z, x + 1, y + 1, z + 1));
|
||||
for(EntityItem otherItem : items)
|
||||
|
||||
@@ -576,9 +576,9 @@ public final class ModCrafingRecipes {
|
||||
"WWW", "W W", "W W",
|
||||
'W', new ItemStack(ModBlocks.livingwood, 1, 1));
|
||||
recipeOpenCrate = BotaniaAPI.getLatestAddedRecipe();
|
||||
|
||||
|
||||
// Eye of the Ancients Recipe
|
||||
addOreDictRecipe(new ItemStack(ModBlocks.forestEye),
|
||||
addOreDictRecipe(new ItemStack(ModBlocks.forestEye),
|
||||
"MSM", "SES", "MSM",
|
||||
'M', LibOreDict.MANA_STEEL,
|
||||
'S', LibOreDict.LIVING_ROCK,
|
||||
|
||||
@@ -84,7 +84,7 @@ public final class ModManaAlchemyRecipes {
|
||||
|
||||
nameTagRecipe = BotaniaAPI.registerManaAlchemyRecipe(new ItemStack(Items.name_tag), new ItemStack(Items.writable_book), 16000);
|
||||
enderPearlRecipe = BotaniaAPI.registerManaAlchemyRecipe(new ItemStack(Items.ender_pearl, 2), new ItemStack(Items.ghast_tear), 28000);
|
||||
|
||||
|
||||
redstoneToGlowstoneRecipes = new ArrayList();
|
||||
redstoneToGlowstoneRecipes.add(BotaniaAPI.registerManaAlchemyRecipe(new ItemStack(Items.redstone), new ItemStack(Items.glowstone_dust), 300));
|
||||
redstoneToGlowstoneRecipes.add(BotaniaAPI.registerManaAlchemyRecipe(new ItemStack(Items.glowstone_dust), new ItemStack(Items.redstone), 300));
|
||||
|
||||
@@ -723,9 +723,9 @@ public class EntityManaBurst extends EntityThrowable implements IManaBurst {
|
||||
public final int meta;
|
||||
|
||||
public PositionProperties(Entity entity) {
|
||||
int x = (int) MathHelper.floor_double(entity.posX);
|
||||
int y = (int) MathHelper.floor_double(entity.posY);
|
||||
int z = (int) MathHelper.floor_double(entity.posZ);
|
||||
int x = MathHelper.floor_double(entity.posX);
|
||||
int y = MathHelper.floor_double(entity.posY);
|
||||
int z = MathHelper.floor_double(entity.posZ);
|
||||
coords = new ChunkCoordinates(x, y, z);
|
||||
block = entity.worldObj.getBlock(x, y, z);
|
||||
meta = entity.worldObj.getBlockMetadata(x, y, z);
|
||||
|
||||
@@ -312,7 +312,7 @@ public final class LexiconData {
|
||||
|
||||
forestEye = new BLexiconEntry(LibLexicon.DEVICE_FOREST_EYE, categoryDevices);
|
||||
forestEye.setLexiconPages(new PageText("0"), new PageText("1"), new PageCraftingRecipe("2", ModCrafingRecipes.recipeForestEye));
|
||||
|
||||
|
||||
// TOOLS ENTRIES
|
||||
manaBlaster = new BLexiconEntry(LibLexicon.TOOL_MANA_BLASTER, categoryTools);
|
||||
manaBlaster.setLexiconPages(new PageText("0"), new PageText("1"), new PageText("2"), new PageCraftingRecipe("3", ModCrafingRecipes.recipeManaBlaster));
|
||||
|
||||
Reference in new issue
Block a user