Archived
0
This repository has been archived on 2024-01-17. You can view files and clone it, but cannot push or open issues or pull requests.
Files
mc-1.12.2/server/src/main/java/net/minecraft/block/BlockCompressedPowered.java
2022-03-24 02:49:43 +03:00

35 lines
1.1 KiB
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.
* @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;
}
}