base mod created
This commit is contained in:
@@ -0,0 +1,29 @@
|
||||
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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user