2015-08-18 20:40:55 -04:00
|
|
|
package team.chisel.block;
|
2014-04-21 19:13:15 +01:00
|
|
|
|
|
|
|
|
import net.minecraft.block.material.Material;
|
|
|
|
|
import net.minecraft.world.IBlockAccess;
|
|
|
|
|
|
2014-11-30 18:10:51 -05:00
|
|
|
public class BlockCarvablePowered extends BlockCarvable {
|
2014-04-21 19:13:15 +01:00
|
|
|
|
2015-01-07 19:50:18 -05:00
|
|
|
public BlockCarvablePowered(Material m) {
|
|
|
|
|
super(m);
|
|
|
|
|
}
|
2014-04-21 19:13:15 +01:00
|
|
|
|
2015-01-07 19:50:18 -05:00
|
|
|
/**
|
2015-08-06 00:00:22 -04:00
|
|
|
* Can this block provide power. Only wire currently seems to have this change based on its state.
|
2015-01-07 19:50:18 -05:00
|
|
|
*/
|
|
|
|
|
@Override
|
|
|
|
|
public boolean canProvidePower() {
|
|
|
|
|
return true;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
2015-08-06 00:00:22 -04:00
|
|
|
* Returns true if the block is emitting indirect/weak redstone power on the specified side. If isBlockNormalCube
|
|
|
|
|
* returns true, standard redstone propagation rules will apply instead and this will not be called. Args: World, X,
|
|
|
|
|
* Y, Z, side. Note that the side is reversed - eg it is 1 (up) when checking the bottom of the block.
|
2015-01-07 19:50:18 -05:00
|
|
|
*/
|
|
|
|
|
@Override
|
|
|
|
|
public int isProvidingWeakPower(IBlockAccess par1IBlockAccess, int par2, int par3, int par4, int par5) {
|
|
|
|
|
return 15;
|
|
|
|
|
}
|
2014-04-21 19:13:15 +01:00
|
|
|
|
|
|
|
|
}
|