Reorganize folders for modules

This commit is contained in:
mDiyo committed 2014-06-04 21:44:48 -08:00
1 parent 2c14f315de
commit e2f0558b6f
370 files changed
+4274 -4788

No files matched your search

@@ -0,0 +1,53 @@
package tconstruct.world.blocks;
import java.util.Random;
import net.minecraft.block.Block;
import net.minecraft.world.World;
import net.minecraftforge.common.IPlantable;
public class OreberryBushEssence extends OreberryBush implements IPlantable
{
public OreberryBushEssence(String[] textureNames, int meta, int sub, String[] oreTypes)
{
super(textureNames, meta, sub, oreTypes);
}
/* Bush growth */
@Override
public void updateTick (World world, int x, int y, int z, Random random1)
{
if (world.isRemote)
{
return;
}
if (random1.nextInt(20) == 0)// && world.getBlockLightValue(x, y, z) <=
// 8)
{
int meta = world.getBlockMetadata(x, y, z);
if (world.getFullBlockLightValue(x, y, z) < 10 || meta % 4 == 1)
{
if (meta < 12)
{
world.setBlock(x, y, z, (Block) this, meta + 4, 3);
}
}
/*
* else if (meta < 8) { world.setBlock(x, y, z, blockID, meta + 4,
* 3); }
*/
}
}
@Override
public boolean canPlaceBlockAt (World world, int x, int y, int z)
{
return true;
/*
* if (world.getFullBlockLightValue(x, y, z) < 13) return
* super.canPlaceBlockAt(world, x, y, z); return false;
*/
}
}