Archived
0

import code

This commit is contained in:
2021-05-03 23:17:44 +03:00
commit afe1cbcf6f
9452 changed files with 692254 additions and 0 deletions

View File

@@ -0,0 +1,34 @@
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.
* @deprecated call via {@link IBlockState#canProvidePower()} whenever possible. Implementing/overriding is fine.
*/
public boolean canProvidePower(IBlockState state)
{
return true;
}
/**
* @deprecated call via {@link IBlockState#getWeakPower(IBlockAccess,BlockPos,EnumFacing)} whenever possible.
* Implementing/overriding is fine.
*/
public int getWeakPower(IBlockState blockState, IBlockAccess blockAccess, BlockPos pos, EnumFacing side)
{
return 15;
}
}