2020-11-13 19:44:57 -05:00
|
|
|
package wayoftime.bloodmagic.common.block;
|
|
|
|
|
|
|
|
import net.minecraft.block.Block;
|
|
|
|
import net.minecraft.block.BlockState;
|
|
|
|
import net.minecraft.util.math.BlockPos;
|
|
|
|
import net.minecraft.world.World;
|
2020-11-23 21:03:19 -05:00
|
|
|
import wayoftime.bloodmagic.api.compat.IIncensePath;
|
2020-11-13 19:44:57 -05:00
|
|
|
|
|
|
|
public class BlockPath extends Block implements IIncensePath
|
|
|
|
{
|
|
|
|
protected final int pathLevel;
|
|
|
|
|
|
|
|
public BlockPath(int pathLevel, Properties properties)
|
|
|
|
{
|
|
|
|
super(properties);
|
|
|
|
this.pathLevel = pathLevel;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public int getLevelOfPath(World world, BlockPos pos, BlockState state)
|
|
|
|
{
|
|
|
|
return pathLevel;
|
|
|
|
}
|
|
|
|
}
|