29 lines
807 B
Java
29 lines
807 B
Java
package net.minecraft.block;
|
|
|
|
import net.minecraft.block.material.MapColor;
|
|
import net.minecraft.block.material.Material;
|
|
import net.minecraft.block.state.IBlockState;
|
|
import net.minecraft.util.EnumFacing;
|
|
import net.minecraft.util.math.BlockPos;
|
|
import net.minecraft.world.IBlockAccess;
|
|
|
|
public class BlockCompressedPowered extends Block
|
|
{
|
|
public BlockCompressedPowered(Material materialIn, MapColor color)
|
|
{
|
|
super(materialIn, color);
|
|
}
|
|
|
|
/**
|
|
* Can this block provide power. Only wire currently seems to have this change based on its state.
|
|
*/
|
|
public boolean canProvidePower(IBlockState state)
|
|
{
|
|
return true;
|
|
}
|
|
|
|
public int getWeakPower(IBlockState blockState, IBlockAccess blockAccess, BlockPos pos, EnumFacing side)
|
|
{
|
|
return 15;
|
|
}
|
|
} |